🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.acrobat.sdk
2 messages
2 total messages Started by Dale Fox Fri, 13 Nov 2009 00:15
How to print to PDF without a print dialog box
#36
Author: Dale Fox
Date: Fri, 13 Nov 2009 00:15
42 lines
2836 bytes
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
Re: How to print to PDF without a print dialog box
#37
Author: David H. Lipman
Date: Fri, 13 Nov 2009 02:24
49 lines
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 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads