I have a pdf file that prints correctly when I use the doc.Print() function. The PDF file is attached.
Dim doc As New Spire.Pdf.PdfDocument
doc.LoadFromFile("c:\test\WLN-5000-0110-08-23-26L Rev B.pdf")
doc.PrintSettings.PrinterName = "HPPRINTER01"
doc.Print()
If I print the file from a generated PCL file, the PDF is larger than expected and cuts off part of the printout.
Dim doc As New Spire.Pdf.PdfDocument
doc.LoadFromFile("c:\test\WLN-5000-0110-08-23-26L Rev B.pdf")
doc.PrintSettings.SelectSinglePageLayout(Spire.Pdf.Print.PdfSinglePageScalingMode.ShrinkOversized, True, 90)
doc.SaveToFile($"c:\test\Drawing.pcl", Spire.Pdf.FileFormat.PCL)
I have tried different methods to print the file to the printer. Below is an example
lpr -S 10.1.10.101 -P PCL c:\test\Drawing.pcl
I am using the latest version.
What am I missing that is causing the PDF to not print correctly on the doc.SaveToFile?