Change paper width and length using DocumentProperties not working

Post here any questions/suggestions you have about novaPDF SDK or novaPDF OEM.
sniles
Posts: 4
Joined: Tue Feb 11, 2014 1:36 am

Change paper width and length using DocumentProperties not working

Postby sniles » Thu Oct 04, 2018 3:42 pm

We are trying to upgrade our use of novaPDF from 7 to the latest. We use the DocumentProperties call to change the dmPaperWidth and dmPaperLength. It’s returning a result/return code 1 (OK), but then when I check the printer’s settings in the structure it returns, the values didn’t change as requested (and the PDF that is output does not have the correct dimensions). It also fails to change the dmPaperSize value, but it *DOES* change the dmOrientation (our change flags are DM_PAPERSIZE|DM_ORIENTATION|DM_PAPERLENGTH|DM_PAPERWIDTH;).

When I go back to using novaPDF 7, it works correctly: DocumentProperties changes all 4 values, and the output is correct.

Additional information:

Tried on multiple Windows 7 and Windows 10 (both 64 bit) systems. Same results. NovaPDF 7 works correctly on those same systems.

Application is 32 bit.

Tried starting the program with "run as administrator". Same results.

Softland
Posts: 186
Joined: Wed Dec 16, 2009 10:48 am
Location: Cluj-Napoca, Romania
Contact:

Re: Change paper width and length using DocumentProperties not working

Postby Softland » Fri Dec 07, 2018 9:25 am

Please email us at support@novapdf.com as we'll need more details.


Return to “Developer Tools”