Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Sun Dec 27, 2020 2:13 am

i need to change the dpi setting as i am printing using receipt printer, how do i change the dpi to 150

schang123
 
Posts: 2
Joined: Wed Dec 23, 2020 1:39 pm

Mon Dec 28, 2020 6:58 am

Hello,

Thanks for your inquiry and sorry for the late reply as weekend.
Sorry to tell you that our Spire.PDF doesn’t support setting the resolution directly to 150. But we support setting the resolution to these patterns: Draft, Low, Medium, High. Below is the corresponding code for your reference.
If you have any other questions, please feel free to contact us.
Code: Select all
            PdfDocument pdf = new PdfDocument();
            pdf.LoadFromFile("test.pdf");
            pdf.PrintSettings.PrinterResolutionKind = PdfPrinterResolutionKind.High;
            pdf.Print();


Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF