Custom paint graphics

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.
Thomas44
User
Posts: 1
Joined: Tue Apr 28, 2026 7:38 am

Custom paint graphics

Post by Thomas44 »

Hi,

I’m currently evaluating your product and would like to know if it’s possible to implement custom drawing of graphics elements : System.drawing.graphics like GraphicsPath,drawPath,drawstring,DrawLine,DrawArc,etc

the AxPXV_Control1.Paint event doesn't work

Could you point me to the relevant documentation or let me know if this is supported?

Thank you,
Thomas
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 12937
Joined: Wed Jan 03, 2018 6:52 pm

Re: Custom paint graphics

Post by Daniel - PDF-XChange »

Hello, Thomas44

Thank you for the inquiry, I am not a developer myself, so unfortunately I cannot personally answer your quesiton. I have escalated this to our Dev Team for review, however incase it helps you find a solution before they can reply, our SDK manuals are available here: https://help.pdf-xchange.com/

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]
zarkogajic
User
Posts: 1549
Joined: Thu Sep 05, 2019 12:35 pm

Re: Custom paint graphics

Post by zarkogajic »

Hi Thomas,


Can you explain a bit what you are trying to accomplish ?

-žarko
[not an official support, just a developer using SDK]
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2491
Joined: Thu Jun 30, 2005 4:11 pm

Re: Custom paint graphics

Post by Vasyl - PDF-XChange »

Hi Thomas,

Shortly: you need to intercept the e_Render UI-event for a certain UI-object (our PDF Editor is represented by a hierarchy of special UI-objects) and then, in your corresponding event-handler, cast the Event.Param2 to the IUIX_RenderContext object. Then use its methods to paint a content...

HTH.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.