Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adobe PDF Printer question

Status
Not open for further replies.

zarkon4

MIS
Dec 16, 2003
641
US
I am using vb to print a pdf using the adobe pdf printer.
It always prompts me for a filename. I have figured out that if can set up the pdf port to a specific filename, but
the filename would change depending on the document. How do I specify the filename without prompting.
 
I figured it out, or rather found a work around.

I created a printer called PSFile, setup the port as a local port pointing to "C:\TEMP\psfile.ps"

In my vb app I referenced Acrobat distiller.

and used the filetopdf method from it.

Example:

Dim objAdobe as ACRODISTXLib.PdfDistiller6

printer.print "This is a Test."
printer.enddoc
set objadobe = New ACRODISTXLib.PdfDistiller6
objadobe.FileToPdf "C:\Temp\psfile.ps","C:\dir\File.pdf",""
set objadobe=nothing


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top