PXCV_DrawPageToDC and Printer driver
Posted: Mon Sep 10, 2012 6:11 am
We have clients with malformed PDF files that they need to stamp with our software. We convert their original files, by printing the documents to a PDF-XChange Driver Printer so they can be stamped.
Steps
1. Create a PDF Driver
2. Create a Printer DC
3. Open malformed document.
4. Loop through each page
4a. Get Document page dimensions
4b. Set PDF driver page dimensions
4c. Use PCXV_DrawPageToDc to Printer DC (WholePage and DrawRect are the same as the page)
5. Close Document
6. Close Printer
The output is fine if the input file pages are 8.5 x 11. if the input file pages are 11 x 8.5 (Landscape) the output page size is correct but the information is shrunk in the middle of the page.
I have attached an Original and the Converted documents.
This may be an issue with the PCXV Viewer SDK but i don't know what forum would be best for this question.
Steps
1. Create a PDF Driver
2. Create a Printer DC
3. Open malformed document.
4. Loop through each page
4a. Get Document page dimensions
4b. Set PDF driver page dimensions
4c. Use PCXV_DrawPageToDc to Printer DC (WholePage and DrawRect are the same as the page)
5. Close Document
6. Close Printer
The output is fine if the input file pages are 8.5 x 11. if the input file pages are 11 x 8.5 (Landscape) the output page size is correct but the information is shrunk in the middle of the page.
I have attached an Original and the Converted documents.
This may be an issue with the PCXV Viewer SDK but i don't know what forum would be best for this question.