Change default stamp path

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
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Change default stamp path

Post by lidds »

At the moment PDFXChange looks at the following directory for the stamp palettes:

C:\Users\<username>\AppData\Roaming\Tracker Software\PDFXEditor.SDK\Stamps

Is there a way to modify the location of the directory that is used via code?

Thanks

Simon
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Change default stamp path

Post by Vasyl-Tracker Dev Team »

Hi Simon.

Currently the Editor looking for stamps in 3 locations:

AppPath (readonly for users):
"c:\Program Files\Tracker Software\PDF Editor\Stamps\"

UserPath:
c:\Users\<username>\AppData\Roaming\Tracker Software\PDFXEditor.SDK\Stamps

SharedPath (readonly for users) via GroupPolicy-value in the registry:
HKLM\Software\Policies\Tracker Software\PDFXEditor\3.0\Misc
"t.SharedStampsFolder" : string

===

Via code you can change the AppPath and UserPath by:

IPXV_Inst::SetStdFolder(PXV_StdFolder_Stamps, myAppPath, false);
IPXV_Inst::SetStdFolder(PXV_StdFolder_Stamps, myUserPath, true);

- but it is important to do it before calling the IPXV_Inst::Init(). In our FullDemo sample project you may see how to use customized IPXV_Inst::Init() even before instantiating the Editor's ActiveX Control object on the form.

Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change default stamp path

Post by lidds »

Thanks for the quick response.

However, is there a way to specify a completely different path? The reason why I ask is that my application has stamps per project which are saved on a network path. When a user logs into my application it copies the stamps for the project they logged into to there local user profile path. The issue that I have is if the user has two different projects open these will have different stamps. Therefore I would like to modify the path to have a sub directory for each project.

Thanks

Simon
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Change default stamp path

Post by Vasyl-Tracker Dev Team »

The SetStdFolder changes the path globally, once per runtime. So, if you have opened two different projects simultaneously in one runtime and you want to see different stamps in the context of each project - then using of SetStdFolder is not suitable for you, unfortunately.
And seems currently is impossible to get per-project customization of stamps in the case when different projects can be opened in the same app-process. But when you have process-per-project model - then SetStdFolder is the good solution for you...
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
Tom-frox
User
Posts: 1
Joined: Thu Oct 19, 2023 1:47 pm

Re: Change default stamp path

Post by Tom-frox »

Vasyl-Tracker Dev Team wrote: Tue Mar 21, 2023 6:14 pm SharedPath (readonly for users) via GroupPolicy-value in the registry:
HKLM\Software\Policies\Tracker Software\PDFXEditor\3.0\Misc
"t.SharedStampsFolder" : string
After 20 years: Is this still correct? The variant does not work for me.
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Change default stamp path

Post by Vasyl-Tracker Dev Team »

Hi Tom.

The GroupPolicy-value in the registry:
HKLM\Software\Policies\Tracker Software\PDFXEditor\3.0\Misc: t.SharedStampsFolder

- it works only for EndUser-Editor app, not for the Editor-SDK. With SDK you need to use the SetStdFolder-method instead.

Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
lidds
User
Posts: 510
Joined: Sat May 16, 2009 1:55 pm

Re: Change default stamp path

Post by lidds »

Thanks for your help. I have this working now

Simon
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17810
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Change default stamp path

Post by Tracker Supp-Stefan »

:)
Post Reply