Hi,
I want to print a PDF document that has 12 pages. I downloaded the examples from GitHub and used the printing example (I changed a few things in the example code). But I only get the first 4 pages printed. Is this due to any limitations in the trial version?
Her is my code (VB.NET):
Dim pdfv As New Aspose.Pdf.Facades.PdfViewer()
pdfv.AutoRotate = True
Dim pgs As New System.Drawing.Printing.PageSettings()
Dim prin As New System.Drawing.Printing.PrinterSettings()
pdfv.BindPdf(“D:\test.pdf”)
prin.PrinterName = “FreePDF”
prin.DefaultPageSettings.PaperSize = New System.Drawing.Printing.PaperSize(“A4”, 827, 1169)
prin.Copies = 2
prin.Collate = True
prin.PrintRange = PrintRange.AllPages
pgs.Margins = New System.Drawing.Printing.Margins(0, 0, 0, 0)
pgs.PaperSize = prin.DefaultPageSettings.PaperSize
pdfv.PrintDocumentWithSettings(pgs, prin)
pdfv.Close()
Regards,
Aline