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, Sean - Tracker, Chris - Tracker Supp, 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 » Mon Jan 23, 2017 10:24 am

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

http://sdkhelp.tracker-software.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?

User avatar
Sasha - Tracker Dev Team
User
Posts: 4220
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: IPXC_Document::DeferedDigitalSign Method

Post by Sasha - Tracker Dev Team » Mon Jan 23, 2017 10:28 am

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
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 » Mon Jan 23, 2017 10:32 am

And is there a way to catch the error code?

User avatar
Sasha - Tracker Dev Team
User
Posts: 4220
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: IPXC_Document::DeferedDigitalSign Method

Post by Sasha - Tracker Dev Team » Mon Jan 23, 2017 1:38 pm

Of course - read the try-catch explanation on the msdn:
https://msdn.microsoft.com/en-us/library/0yd65esw.aspx
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply