How to print to PDF without a print dialog box

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

  1. #1

    Default How to print to PDF without a print dialog box

    I need to print to the "Adobe PDF" print driver and have the PDF file
    created without user interaction. The purpose is to have a programming
    language print a series of reports to PDF files automatically.
    So I need a way to suppress the print dialog box that normally appears
    when you print to the "Adobe PDF" print driver and also to specify a
    destination name. Note that the destination name does not need to be
    unique to each file; if I can have all PDFs that are generated go to the
    same destination folder and filename that is fine.

    We have Adobe Distiller 7.0, Adobe Acrobat 7.0 Professional and Adobe
    Designer 7.0. The print driver is called "Adobe PDF".

    I thought the joboptions file might handle this, but there is no option
    for filename.

    I thought the following registry keys could do this, but they seem to
    control only the default destination folder, rather than allowing a
    folder and filename.
    HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Distiller\7.0\DefaultPDFOutput
    HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl

    I tried setting the following attributes within the programming
    language. The print did then proceed without displaying the print
    dialog box, but the resulting PDF files are unusable; Acrobat reports
    them as corrupted when I try to open them.
    - FileName (sets path and name for the file to be created by the printer)
    - DocumentName (sets name to be displayed in the Printer status dialog
    that lists the files being printed on the printer)
    - PrinterName (sets the name of the Windows printer to print to)

    Note that setting these three attributes does allow printing to succeed
    with Amyuni PDF print driver. (We are going away from Amyuni due to
    instability issues.)


    Any hints would be appreciated.

    Thanks.



    Dale
    Dale Guest

  2. Similar Questions and Discussions

    1. Print PDF in asp w/o print dialog
      Hi, I have searched my forum for an answer. But I still want to confirm with reality. is it possible to print PDF w/o the print dialog to show...
    2. Funkiness in print dialog box
      When I go to print a document, I hit command-P, and up jumps the print dialog box. I select the printer I want to use, and go from the "Copies &...
    3. Illustrator 10 Print Space settings in Print Dialog
      Howdy all; I've got a peculiar situation that I haven't found an answer to yet. On my laptop PC (Windows XP Home) when I go to print a document...
    4. Bypass Print Dialog
      Hi all, I'm building a ticketing system for a minor league baseball team and of course it will utilize a ticket printer. I was wondering if there...
    5. How can I open the print dialog
      you could add a print-button - let it go "server side" to display what you want to print, and register some java to print the form... then direct...
  3. #2

    Default Re: How to print to PDF without a print dialog box

    From: "Dale Fox" <com>

    | I need to print to the "Adobe PDF" print driver and have the PDF file
    | created without user interaction. The purpose is to have a programming
    | language print a series of reports to PDF files automatically.
    | So I need a way to suppress the print dialog box that normally appears
    | when you print to the "Adobe PDF" print driver and also to specify a
    | destination name. Note that the destination name does not need to be
    | unique to each file; if I can have all PDFs that are generated go to the
    | same destination folder and filename that is fine.

    | We have Adobe Distiller 7.0, Adobe Acrobat 7.0 Professional and Adobe
    | Designer 7.0. The print driver is called "Adobe PDF".

    | I thought the joboptions file might handle this, but there is no option
    | for filename.

    | I thought the following registry keys could do this, but they seem to
    | control only the default destination folder, rather than allowing a
    | folder and filename.
    | HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Acrobat Distiller\7.0\DefaultPDFOutput
    | HKEY_CURRENT_USER\Software\Adobe\Acrobat Distiller\PrinterJobControl

    | I tried setting the following attributes within the programming
    | language. The print did then proceed without displaying the print
    | dialog box, but the resulting PDF files are unusable; Acrobat reports
    | them as corrupted when I try to open them.
    | - FileName (sets path and name for the file to be created by the printer)
    | - DocumentName (sets name to be displayed in the Printer status dialog
    | that lists the files being printed on the printer)
    | - PrinterName (sets the name of the Windows printer to print to)

    | Note that setting these three attributes does allow printing to succeed
    | with Amyuni PDF print driver. (We are going away from Amyuni due to
    | instability issues.)


    | Any hints would be appreciated.

    | Thanks.
    | Dale

    Batch print PDF's via OLE automation, DDE command line parameters
    http://support.adobe.com/devsup/devsup.nsf/docs/51412.htm

    --
    Dave
    http://www.claymania.com/removal-trojan-adware.html
    Multi-AV - http://www.pctipp.ch/downloads/dl/35905.asp


    David 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