Blank page output when using PXCV_DrawPageToDC with Canon Generic Plus LIPSLX driver

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
yu.shimizu
User
Posts: 4
Joined: Tue Jul 15, 2025 1:00 pm

Blank page output when using PXCV_DrawPageToDC with Canon Generic Plus LIPSLX driver

Post by yu.shimizu »

Hello,

We are using PDF-XChange SDK (PDFXEditSimple DLL) in our C# Windows Service
application to print PDF files programmatically. We are experiencing an issue
where printed output comes out as blank pages with a specific printer driver.

Environment:
- SDK: PDFXEditSimple.x86.dll (via P/Invoke)
- OS: Windows (x86 service process)
- Printer Driver: Canon Generic Plus LIPSLX
- PDF: Label layout PDF (A4 size)

Printing Method:
We use System.Drawing.Printing.PrintDocument with the OnPrintPage event handler.
In the handler, we call PXCV_DrawPageToDC to render the PDF page to the
printer's device context (HDC).

Code summary:

Code: Select all

// Render parameters
crp.Flags = (int)PXV_CommonRenderParametersFlags.pxvrpf_UseVectorRenderer; // 0x0004
crp.RenderTarget = PXCV_RenderMode.pxvrm_Printing; // 1
crp.WholePageRect = // calculated scaled RECT

// Render to printer DC
IntPtr hDC = e.Graphics.GetHdc();
PXCV_DrawPageToDC(hDoc, pageNum, hDC, ref crp);
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 12856
Joined: Wed Jan 03, 2018 6:52 pm

Re: Blank page output when using PXCV_DrawPageToDC with Canon Generic Plus LIPSLX driver

Post by Daniel - PDF-XChange »

Hello, yu.shimizu

Thank you for the report, I have raised this topic with the dev team and will either return once I hear from them, or one of the Devs may reply directly.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
[email protected]