How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6

Ask a Question related to Adobe Acrobat Windows, Design and Development.

  1. #1

    Default How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6

    The below shows the VBA script. It ran fine as is with Acrobat 5.0 when I had "Acrobat PDFWriter". In the below script I replaced "Acrobat PDFWriter" whereever it showed up with "Adobe PDF". The script runs fine and it does bring up the Adobe PDF but then it asks me to manually input the name of the PDF file to create - instead of accepting the string as it did with PDFWriter. Thanks for your help. Peter
    --------------------------------------
    Function test()
    Format_and_print_reports "CRE Loans Report"
    End Function

    Sub Format_and_print_reports(rptName As String)
    Dim cob As Date
    cob = getCOB()

    Dim iniFileName$, outputFilename$
    iniFileName$ = getIniFileName$
    outputFilename$ = "G:\RISK\BRUCE\ADOBE\" & rptName & "_" & Format(cob, "mm_dd_yyyy") & ".pdf"
    SetPrivateProfileSetting iniFileName, 0, _
    "Adobe PDF", "PDFFileName", outputFilename$

    'Set_paper_size rptName, 5
    DoCmd.OpenReport rptName, acViewPreview
    Set Reports(rptName).Printer = getPrinter("Adobe PDF")
    Reports(rptName).Printer.PaperSize = acPRPSLetter
    Reports(rptName).Printer.Orientation = acPRORPortrait

    DoCmd.PrintOut
    DoCmd.Close acReport, rptName, acSaveNo
    SetPrivateProfileSetting iniFileName, 0, _
    "Adobe PDF", "PDFFileName", ""
    FileCopy outputFilename$, "Z:\" & Trim(rptName) & ".pdf"
    End Sub
    Peter_Qian@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Adobe Acrobat PDF Driver
      Hello, I am working at a Windows application made in Visual C++ which requires support for printing its documents to PDF. Is there any way to...
    2. creating PDF with the Adobe Printer Driver
      I am creating PDF-Files with a VB-Programm. How can i supress the "job print box" who tells the creation status. (PDF-Status: ...pdf wird erstellt...
    3. Applications/Adobe Acrobat 7.0Professional/Adobe Acrobat 7.0Professional.app/Contents/MacOS/Acroba
      Does anyone know what this means. I keep getting the following entry over and over in my "console.log" file: May 9 13:37:07 mycomuter...
    4. adobe pdf driver
      Hi, I'm trying to use the "adobe pdf" driver in Microsoft Business Solution Navision and in Visual Basic. My interest is to set the path/name of the...
    5. Adobe Acrobat (Full) 5.0.5 --> Adobe Reader 6.0.1
      We've got a nice Adobe Reader 6.0.1 install working here, with one problem: If Adobe Acrobat (a.k.a. "full" or "Adobe Writer") v5.0.5 is on the...
  3. #2

    Default Re: How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6

    The method you were using was described in the PDFWriter API. You now
    need to be using the Distiller API, but it's not a simple change.

    You first print to file with the Adobe PDF printer, using standard
    techniques (not Acrobat specific any more). This makes PostScript.

    Then the Distiller API is used to conver the PostScript to PDF.

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  4. #3

    Default Re: How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6

    Hi Aandi,

    Thanks for your help. Do you have a sample code to make this work or from where I can find related information?

    Peter Qian
    Peter_Qian@adobeforums.com Guest

  5. #4

    Default Re: How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6

    The Distiller API, like the PDFWriter API, is in the Acrobat SDK, so
    start there.

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  6. #5

    Default Re: How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6



    The Distiller API, like the PDFWriter API, is in the Acrobat SDK, so start
    there.





    Do you mean that serious? 198 USD on a year by year basic to have a look on the Distiller API, a description how should be included in the software documentation? Times has changed.

    I don't need it and don't used it, but have a look at this:
    <http://www.rdpslides.com/psfaq/FAQ00053.htm>

    Best regards, Reinhard Franke
    Reinhard_Franke@adobeforums.com Guest

  7. #6

    Default Re: How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6

    >Do you mean that serious?

    Is it not true?

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  8. #7

    Default Re: How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6



    Is it not true?




    Yes it is true, but very very expensive. And latest this come into view, if the SDK 5 is no longer available.

    Best regards, Reinhard

    PS: You may have a look at this discussion about Approval. Adobe should really start to think about their strategy.
    <http://forum.planetpdf.com/wb/default.asp?action=9&read=41152&fid=12>
    Reinhard_Franke@adobeforums.com Guest

  9. #8

    Default Re: How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6

    >Yes it is true

    Then would you suggest a different answer? Perhaps "give up, it's
    going to cost money?" That doesn't sound very useful.

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  10. #9

    Default Re: How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6

    I gave a different, hopefully useful answer (#4)

    Reinhard
    Reinhard_Franke@adobeforums.com Guest

  11. #10

    Default Re: How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6

    That's your privilege, but I always prefer - for developers - to refer
    to first generation documentation, not derived examples or
    presentations.

    Aandi Inston
    Aandi_Inston@adobeforums.com Guest

  12. #11

    Default Re: How to accept outputFilename with Adobe PDF driver in Adobe Acrobat 6



    but I always prefer ...




    I know. I only wanted to point out, that some information you get normaly with buying a software and we have up to now (based on SDK 5) in the future are not available (for a normal user). And you don't can really want, that I use "Sendkeys" for everything.

    Have a nice evening, Reinhard
    Reinhard_Franke@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139