Page 1 of 1

Change paper width and length using DocumentProperties not working

Posted: Thu Oct 04, 2018 3:42 pm
by sniles
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.