Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - returning full name from save as
  FAQ FAQ  Forum Search   Register Register  Login Login

Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

returning full name from save as

 Post Reply Post Reply Page  <12
Author
aandi View Drop Down
Senior Member
Senior Member


Joined: 07 Jul 2011
Points: 18358
Post Options Post Options   Quote aandi Quote  Post ReplyReply Direct Link To This Post Posted: 21 Apr 2014 at 11:41am
It's always best to say if anything in a reply doesn't make sense because we'll assume otherwise
that it did. and run from there. There's no shame in needing to learn. It's the best bit!

This is the link to the online developer help. (If it's too slow, let us know, it can be downloaded).
http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true

To get to the JavaScript reference navigate to
JavaScript > JavaScript for Acrobat API reference

The specific methods for doc are listed in
JavaScript > JavaScript for Acrobat API reference > JavaScript API > Doc

Back to Top
statman View Drop Down
New Member
New Member
Avatar

Joined: 20 Apr 2014
Location: Sellersburg
Points: 7
Post Options Post Options   Quote statman Quote  Post ReplyReply Direct Link To This Post Posted: 27 Apr 2014 at 11:36pm

Here is what I have been working on for too long. What this does is execute the creation of a pdf form fill from within ms access filling fields from fields in access. Then saves the pdf as a predefined name from a field in access so I can view the pdf from a hyperlink within my access.



Private Sub cmdPDF_Click()

Dim acroApp As Object
Dim acroDoc As Object
Dim pdfDoc As Object
Dim jso As Object
Dim PDSaveIncremental As Variant
Dim strFile As String
Dim File_Name As String
Dim strFile2 As String

'Fillable PDF filename and location
strFile = CurrentProject.path & "\" & "BuildingTemplate.pdf"
strFile2 = CurrentProject.path & "\" & (Me.File_Name)

'Check for the PDF
If Dir(strFile) = "" Then
    MsgBox "This demo requires the PDF form BuldingTemplate.pdf.", vbInformation, "Missing PDF"
    
Else

    'Create Acrobat object
    Set acroApp = CreateObject("AcroExch.App")
    Set acroDoc = CreateObject("AcroExch.AVDoc")
    
    'Open PDF form
    If acroDoc.Open(strFile, "") Then
        Set pdfDoc = acroDoc.GetPDDoc()
    
        'Added by theDBguy
        '8/25/2013
        'Form fields
        Set jso = pdfDoc.getJSObject
        jso.getfield("Location").Value = Me.Title.Value
        jso.getfield("Permit_Number").Value = Me.Permit_Number.Value
       
           'Save changes to the PDF document
       
       jso.SaveAs (strFile2)
                            
        'Close the PDF; the True parameter prevents the Save As dialog from showing
        acroDoc.Close (False)
       
        'View the PDF file
      
       
    End If

    Set acroApp = Nothing
    Set acroDoc = Nothing
    Set pdfDoc = Nothing

End If

Kenneth J Alexander
Municipal Works
Sellersburg IN
Ken
Back to Top
gkaiseril View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Location: USA
Points: 4111
Post Options Post Options   Quote gkaiseril Quote  Post ReplyReply Direct Link To This Post Posted: 28 Apr 2014 at 12:14am
TheAcrobat SDK site
and Acrobat JavaScript site.

Edited by gkaiseril - 28 Apr 2014 at 12:18am
Back to Top
aandi View Drop Down
Senior Member
Senior Member


Joined: 07 Jul 2011
Points: 18358
Post Options Post Options   Quote aandi Quote  Post ReplyReply Direct Link To This Post Posted: 28 Apr 2014 at 10:30am
I see your code, but I don't see a question. Did you find the method/property names in the document as I suggested?
Back to Top
 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.047 seconds.