Page 1 of 1
Override Stamp Folder
Posted: Thu Dec 07, 2017 1:59 pm
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?
Re: Override Stamp Folder
Posted: Sat Dec 09, 2017 10:27 am
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
Re: Override Stamp Folder
Posted: Fri Mar 09, 2018 1:00 am
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:
Am I missing something?
Thanks
Re: Override Stamp Folder
Posted: Sat Mar 10, 2018 7:35 am
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
Re: Override Stamp Folder
Posted: Tue Mar 13, 2018 10:56 pm
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;
}
Re: Override Stamp Folder
Posted: Wed Mar 14, 2018 7:14 am
by Sasha - Tracker Dev Team