Override Stamp Folder

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, 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
RMan
User
Posts: 221
Joined: Tue Jul 02, 2013 10:06 pm

Override Stamp Folder

Post by RMan »

Is there a way we can override the Stamps folder location so if the user has your end user PDF-XChange Editor installed we don't mess up the stamps they use with that?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Override Stamp Folder

Post by Sasha - Tracker Dev Team »

Hello RMan,

Use this method:
https://sdkhelp.pdf-xchange.com/vi ... tStdFolder
With the PXV_StdFolder_Stamps folder ID.
Note that this method should be used on the early stage - for example after you have initialized the IPXV_Inst.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
dconner
User
Posts: 28
Joined: Fri Feb 07, 2014 10:27 pm

Re: Override Stamp Folder

Post by dconner »

Hi All,

I've tried and tried to set the stamps folder, however, it just won't take. I'm calling this method:

Code: Select all

				pdfx.Inst.SetStdFolder(PXV_StdFolderID.PXV_StdFolder_Stamps, folder, true);
Here in the forum it says to call after Init but here in the documentation it says to call it before:

https://sdkhelp.pdf-xchange.com/vi ... tStdFolder

Either way (before or after) I could not get it to work. I'm using:

Code: Select all

pdfx.SetLicKey(key);
Am I missing something?

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

Re: Override Stamp Folder

Post by Sasha - Tracker Dev Team »

Hello dconner,

The IPXV_Inst instance itself should be created and initialized before the IPXV_Control if you are using one and then the Shutdown method should be used on form closing/destructor.
Then try doing it as the Wiki remark advises and see whether it will work for you.
More info here:
https://sdkhelp.pdf-xchange.com/vi ... _Inst_Init
https://sdkhelp.pdf-xchange.com/view/PXV:CoClasses

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
dconner
User
Posts: 28
Joined: Fri Feb 07, 2014 10:27 pm

Re: Override Stamp Folder

Post by dconner »

Yep! That did it. Thanks for your speedy reply.

Code: Select all

                PDFEditorWrapper.PDFCtrl.SetStampsFolder(@"");
                PDFEditorWrapper.PDFCtrl.Init(licKey);

                InitializeComponent();

                pdfctrl.InitIDS();
and here is my SetStampsFolder() method:

Code: Select all

		public static bool SetStampsFolder(string folder)
		{
			try
			{
                PDFXEdit.PXV_Inst Inst = new PDFXEdit.PXV_Inst();
                Inst.SetStdFolder(PXV_StdFolderID.PXV_StdFolder_Stamps, folder, true);
                Inst = null;
            }
            catch
			{
				return false;
			}
			return true;
		}
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Override Stamp Folder

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply