User defined Sequential Numbers or Any Texts for "Add text" in Bookmark

Forum for the PDF-XChange Editor - Free and Licensed Versions

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

Post Reply
netsonicyxf
User
Posts: 70
Joined: Sun Jul 01, 2012 2:19 pm

User defined Sequential Numbers or Any Texts for "Add text" in Bookmark

Post by netsonicyxf »

The cuurent Sequential Numbers has to start from number 1.
Is it possible to allow user to start from user defined number?
Or more generally, allow user to import an text file , with user defined text?
Last edited by netsonicyxf on Fri May 13, 2022 1:07 am, edited 2 times in total.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17910
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: User defined Sequential Numbers for "Add text" in Bookmark

Post by Tracker Supp-Stefan »

Hello netsonicyxf,

The counter stamps are controlled via JS, and e.g. the "Global" stamp (the one with the green circle around the number) makes a check - and if the global variable with the name "StampIndex" does not exist - it ges set before being used by the stamp itself.

So if you want to "force" this global index to any value manually - you can open the JS console in the Editor (Ctrl + J), and copy and paste this single line of code there:

Code: Select all

global.stampIndex = 7; //Change this value to your desired start number.
Then hit the green Run button in the JS console, and your "global "StampIndex would now be set to your desired value.

The image below shows the first two stamps I placed in a file after setting the start value to 107:
image.png
Kind regards,
Stefan
netsonicyxf
User
Posts: 70
Joined: Sun Jul 01, 2012 2:19 pm

Re: User defined Sequential Numbers for "Add text" in Bookmark

Post by netsonicyxf »

Hi Stefan,

Thank you for the tip.
But I'm talking about this number. Is this can also be changed by your method?
image.png
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17910
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: User defined Sequential Numbers or Any Texts for "Add text" in Bookmark

Post by Tracker Supp-Stefan »

Hello netsonicyxf,

The Sequential Number specifically can not be controlled:
"The Sequential Number macro inserts the sequential number of bookmarks, which is the sequential value of each bookmark in the context of the entire bookmarks tree."


However you will be able to control the "AutoNumber" variable with parameters, including setting a start value:
https://help.pdf-xchange.com/pdfxe ... er_ed.html

Kind regards,
Stefan
Post Reply