Problem with setting the page size

About the programming interface for the virtual PDF printer driver.

Moderator: jr

Post Reply
aka_Falsh
Posts: 2
Joined: Wed Jan 30, 2013 5:26 pm

Problem with setting the page size

Post by aka_Falsh »

I am trying to print the document to PDF using the PDF API. I am using GDI for printing. Maximum page size I can set is 129 inch because of GDI restrictions. The parameter dmPaperSize from DEVMODE structure is type of short with maximum value 32000, that equals 129inch. However when I am trying to print the document by hands (File->Print) and set the maximum page size there. As a result it gives me 1000 inch page size. What should I do to make 1000 inch size programaticaly?
Post Reply