Printing Duplex

The PDF Creator .NET Library enables you to create secure PDF documents on the fly and to view, print and process existing PDF documents. If you have any questions about PDF Creator .Net, please post them here.
Post Reply
timmed
Posts: 4
Joined: Fri Nov 10 2006

Printing Duplex

Post by timmed »

Hello.

Using trial version of PDF Creator .Net in visual studio 2003. I'm trying to print an existing 2 page PDF file in duplex mode. I can see the duplex property in the PageFormat object, but this appears to be read-only. I can set it, but it has no effect.

Does anyone have a sample of this code? Here's my code:

Dim PDFCreator As acPDFCreatorLib
Dim doc As Amyuni.PDFCreator.IacDocument
Dim FS As FileStream
Dim fmt As Amyuni.PDFCreator.IacPageFormat
Dim page As Amyuni.PDFCreator.IacPage

PDFCreator = New acPDFCreatorLib
PDFCreator.Initialize()
PDFCreator.SetLicenseKey("Evaluation Version", "07EFCDAB01000100C71...28E778780009EE2F79")

doc = New Amyuni.PDFCreator.IacDocument

FS = New System.IO.FileStream("c:\temp\foobarduplex.pdf", FileMode.Open, FileAccess.Read)

doc.Open(FS, "")

doc.ScaleToPrinter = Amyuni.PDFCreator.IacScaleType.acScaleBoth
doc.Print("\\portland\pdx1q25", False)
Post Reply