Spire.PDFViewer is a powerful PDF Viewer component for .NET. It allows developers to load PDF document from stream, file and byte array.

Tue Apr 05, 2022 9:56 am

Hello,

I tested "Print PDF Documents" and noticed that the printed PDF was listed at a smaller size.
Can it print at normal size?
If I print it from Acrobat Reader by ticking "Actual size", the size at which it is printed is good. And if I print from "Print PDF Documents" it is printed on a smaller scale.

Sincerely,
Bogdan

cyclyman
 
Posts: 1
Joined: Thu Mar 31, 2022 9:54 pm

Wed Apr 06, 2022 2:36 am

Hello,

Thank you for your inquiry.
Please use the following code to achieve your needs.
Code: Select all
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(inputFile);
//Print the actual size of the file
pdf.PrintSettings.SelectSinglePageLayout(PdfSinglePageScalingMode.ActualSize, true);
pdf.Print();

If there is any question, please feel free to write back.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Mon Apr 11, 2022 8:39 am

Hello,

Hope you are doing well!
How is your issue going? Did the code we provided work for you? Any feedback will be greatly appreciated.

Sincerely,
Annika
E-iceblue support team
User avatar

Annika.Zhou
 
Posts: 1643
Joined: Wed Apr 07, 2021 2:50 am

Return to Spire.PDFViewer