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.

Sat May 31, 2014 7:11 pm

How can I set the document resolution when I create a new PDF? What I'm trying to do is create a page of small UPC labels. To do this, I need a document that's ~300ppi. It looks like the default is 72ppi? 612 pixels horizontal resolution isn't enough.

Can I do this with Spire?

ChrisInSeattle
 
Posts: 1
Joined: Sat May 31, 2014 7:06 pm

Mon Jun 02, 2014 7:44 am

Hello,

Sorry for late reply as weekend.
Thanks for you feedback, when you create the new pdf, you can set its width and height.
Code: Select all
PdfDocument doc = new PdfDocument();
doc.PageSettings.Width = ..;

If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Jun 05, 2014 9:46 am

Hello,

Has the issue been resolved? Could you please give us some feedback if convenience?

If there are any questions, welcome to get it back to us.

Thanks,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.PDF