Article View: adobe.acrobat.sdk
Article #37Re: How to print to PDF without a print dialog box
From: David H. Lipman
Date: Fri, 13 Nov 2009 02:24
Date: Fri, 13 Nov 2009 02:24
49 lines
3373 bytes
3373 bytes
From: "Dale Fox" <dale.ng11@foxcustomsoftware.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
Technical Details
Message-ID:
<hdig1e04rk@news3.newsguy.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news3References:
<4AFCA538.2010701@foxcustomsoftware.com>Show Full Headers
Complete Article Headers
X-Google-Thread: dbdca6ad55,4879aaf06554d0d9
X-Google-Attributes: giddbdca6ad55,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!extra.newsguy.com!newsp.newsguy.com!news3
From: "David H. Lipman" <DLipman~nospam~@Verizon.Net>
Newsgroups: adobe.acrobat.sdk,adobe.acrobat.windows
Subject: Re: How to print to PDF without a print dialog box
Date: Thu, 12 Nov 2009 21:24:42 -0500
Organization: DHL
Lines: 51
Message-ID: <hdig1e04rk@news3.newsguy.com>
References: <4AFCA538.2010701@foxcustomsoftware.com>
NNTP-Posting-Host: p9f2e925b6996e00cf383e27c836900f95da2ea01705e3eb7.newsdawg.com
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-Face: #!*YlHW<3BNQH,W(*HlLHp!!3C^o,W53`lH?w!P/BI9U&X#l41]a]{(_lFi9uvKIhejF;N7"3{((o^}#4TsAASuyib+4gO;T`p'iU-gC?0Lj'1MyYrhAWCVxHKD~0Jqt9=du~_{E+uqoYt4O$L?M:a>s4@)NMgJjld$%3QOzA[8
X-Comment-To: Dale Fox
FL-Build: Fidolook 2007 (HV) 6.0.6000.97 - 24/12/2008 20:32:05
X-Debug: On