IPXC_Document::DeferedDigitalSign Method

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

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.
Post Reply
Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

IPXC_Document::DeferedDigitalSign Method

Post by Tom Princen »

When I look at the online help it states that there is a return value.

https://sdkhelp.pdf-xchange.com/vie ... igitalSign

But when I import the core api dll in visual studio c# it says its a void function???

[DispId(1610743904)]
void DeferedDigitalSign(ref _CERT_CONTEXT pCert, uint nFlags, uint nPageIdx, ref PXC_Rect pRect, string sReason, string sLocation, string sContactInfo, string sImageFile);

So how do i know if the procedure was successful?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: IPXC_Document::DeferedDigitalSign Method

Post by Sasha - Tracker Dev Team »

Hello Tom,

That's the C# wrapper. The C++ uses HRESULT to return the value. In the C# you will need to use the try-catch block to handle exceptions.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Tom Princen
User
Posts: 83
Joined: Wed Mar 25, 2015 10:15 am

Re: IPXC_Document::DeferedDigitalSign Method

Post by Tom Princen »

And is there a way to catch the error code?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: IPXC_Document::DeferedDigitalSign Method

Post by Sasha - Tracker Dev Team »

Of course - read the try-catch explanation on the msdn:
https://msdn.microsoft.com/en-us/library/0yd65esw.aspx
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply