I want to generate PDF files ...

This is a read only forum. It contains the most frequently asked questions about Amyuni products and licensing.
Post Reply
Dany
Amyuni Team
Posts: 113
Joined: Wed Sep 11 2002
Location: Montreal.
Contact:

I want to generate PDF files ...

Post by Dany »

and print them to a specific paper bin. How can I do this?

If you have specified the paper bin to which you want print the file when creating your document, you can generate the PDF files using the PDF Converter. This will keep the format of the PDF file, and open this file and print it using the PDF Creator that will read this format and direct the printing to the specified tray.

If you didn’t specify the paper tray before generating the PDF file, you can still open this file using the PDF Creator and set the specific paper bin to which you want to print your document by using the following VB code:

Option Explicit
'Public WithEvents PDFcreator As ACPDFCreactiveX.PDFCreactiveX
Dim pdf As New ACPDFCREACTIVEX.PDFCreactiveX

Private Sub Command2_Click()

With pdf
'Open a pdf file
.Open "C:\Temp\Test2.pdf", ""

' If you want to print page 1 to upper bin and page 2 to lower bin:
.ObjectAttribute("Pages[1]", "PaperBin") = 1 ' print page 1 to bin 1
.ObjectAttribute("Pages[2]", "PaperBin") = 2 ' print page 2 to bin 2

'Print the file to the printer
.Print "HP LaserJet 6L", False

'Save the pdf file
.Save "Test.pdf", 2
End With

Set pdf = Nothing
End Sub
Post Reply