Macro [%filename] customizeable?

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
guebert
User
Posts: 151
Joined: Sun Apr 06, 2008 7:05 pm

Macro [%filename] customizeable?

Post by guebert »

Hallo!

I need to add a short name to several files like A, B, C, D, ... or 1, 2, 3, ...

I name the files like this

A - mail from xyz.pdf
B - plan of xyz.pdf

Now I use bates numbering over all files and can use the macro [%filename]. But unfortunately it seems to be impossible to customize this macro like [%filename:1] or [%filename:1-3]. Any chance to get this implemented?

(BTW, is it possible to add a solid background to the bates number? When there is a dark area in the PDF it would be good to have a (maybe) semi-transparent background in white for better readability.)

Michael
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6835
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Macro [%filename] customizeable?

Post by Paul - Tracker Supp »

Hi Michael,

you should be able to use :

Code: Select all

%[FileName]:%[Bates]
for this, Note that the colon is outside the square bracket and the default is two preceeding zeros:
image1.png
If you change that to:

Code: Select all

%[FileName]:%[Bates:1]
you would get only one digit in the number:
image.png
Is that what you are looking for?
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
guebert
User
Posts: 151
Joined: Sun Apr 06, 2008 7:05 pm

Re: Macro [%filename] customizeable?

Post by guebert »

Paul,

no, that's not the solution for my issue.

I have "001 - This is the first file.pdf", "002 - This is the second file.pdf" and want to have the Text in the documents like this:

"001 - This is the first file.pdf" --> "001:1", "001:2", etc
"002 - This is the second file.pdf" --> "002:6", etc

and so on. Your code "%[FileName]:%[Bates:1]" leads to

"001 - This is the first file.pdf" --> "001 - This is the first file.pdf:1", "001 - This is the first file.pdf:2", etc
"002 - This is the second file.pdf" --> "002 - This is the second file.pdf:6", etc

Any chance to get this result?

Michael
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6835
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Macro [%filename] customizeable?

Post by Paul - Tracker Supp »

Hi Michael,

sorry, it seems I do misunderstand, and maybe I still don't properly understand the desired outcome.

I think you are saying you want to strip everything from the file name except the first three characters (001) and apply that with a colon the the Bate's number. thus the description
"001 - This is the first file.pdf" --> "001:1", "001:2", "001:n"

The on the second document you again want to pull the first three characters then add Bates numbers, and it appears you want to continuing the numbering on this next document where it left off on 001. Is that right?

Regards the first part, there is no way to split that document name this way unfortunately, the entire file name is the only option.

Regards continuing the numbering on document 002 where document 001 left off, the default Bates numbering for multiple files should facilitate that, yes.

I think the closest you are going to get to your desired result is going to be more like:

"001 - This is the first file.pdf" --> "001 - This is the first file:1", "001 - This is the first file:2", " - This is the first file:n" where n is the number of pages in this document
"002 - This is the second file.pdf" --> "002 - This is the second file:n+1", "002 - This is the second file:n+2", "002 - This is the second file:n+m" where m is the number of pages in the second document.

So while you can continue Bates numbering across multiple files, you cannot pull just parts of the file name.

I hope that better addresses your question.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
guebert
User
Posts: 151
Joined: Sun Apr 06, 2008 7:05 pm

Re: Macro [%filename] customizeable?

Post by guebert »

Paul,

now you addressed my issue. ;-)

So may I suggest to implement this feature to add customization to this macro [%filename] like mentioned here https://help.pdf-xchange.com/pdfxe9/

%[<Macro Name>:<Parameter>]


Other possible solution:
Is it possible to get ONE number per file for bates numbering?
So I want Nr 1 in the first file in the list, Nr 2 in the second file, etc?

For special use cases I need letter numeration like first file - A, second file B, ...
is this possible?

Michael
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6835
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Macro [%filename] customizeable?

Post by Paul - Tracker Supp »

Hi Michael,

good that we are making headway!

Regards your suggestion, %[<Macro Name>:<Parameter>] what would you propose passing as a parameter? I suspect this may be considered too "niche" for the average user, though I can definitely float the idea and see what comes.
Other possible solution:
Is it possible to get ONE number per file for bates numbering?
So I want Nr 1 in the first file in the list, Nr 2 in the second file, etc?

For special use cases I need letter numeration like first file - A, second file B, ...
is this possible?
Unfortunately I do not believe this is possible. Again, I will ask the dev team for input as to whether any of this may be implemented, but I cannot guarantee that it will eventuate.

regards
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
guebert
User
Posts: 151
Joined: Sun Apr 06, 2008 7:05 pm

Re: Macro [%filename] customizeable?

Post by guebert »

Paul,

I suggest to make it as mentioned here

https://help.pdf-xchange.com/pdfxe9/

'<integer>' specifies the minimum number of digits used. This value can be any positive integer from 1 to 12 - for example %[Page:4] starts the page numbering as "0001, 0002, 0003...".

So [%filename:1-4] will take the first four characters from the left

[%filename:4-6] will take the fourth, fifth and sixth

Michael
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6835
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Macro [%filename] customizeable?

Post by Paul - Tracker Supp »

Hi Michael,

on discussing this with the development team we have agreed to make this feature. While not for external use, referring to RT#5818: Feature request :: Editor :: Add param to [%FileName] macro to extract part of name in correspondence with us will allow any support staff member to get you a status report.

We do not have an ETA for delivery, this will be at the discretion of the development team leader.

I hope that helps.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
guebert
User
Posts: 151
Joined: Sun Apr 06, 2008 7:05 pm

Re: Macro [%filename] customizeable?

Post by guebert »

Paul,

many thanks for this good news!

Michael
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6835
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Macro [%filename] customizeable?

Post by Paul - Tracker Supp »

My pleasure Michael.

It is easy to be the bearer of GOOD news... ;-)
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6835
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Macro [%filename] customizeable?

Post by Paul - Tracker Supp »

Hi Michael,

just a heads up that the ticket RT#5818: Feature request :: Editor :: Add param to [%FileName] macro to extract part of name was marked as resolved today.

This means the change will be in the next build, currently slated for mid Feb.

I hope that helps.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
guebert
User
Posts: 151
Joined: Sun Apr 06, 2008 7:05 pm

Re: Macro [%filename] customizeable?

Post by guebert »

Paul,

thank you very much, once more!

Michael
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6835
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Macro [%filename] customizeable?

Post by Paul - Tracker Supp »

:)
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
guebert
User
Posts: 151
Joined: Sun Apr 06, 2008 7:05 pm

Re: Macro [%filename] customizeable?

Post by guebert »

Paul,

may I ask for some more details? I just read out thread again and we discussed several solutions. How will it be able to address parts of the filename?

Michael
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6835
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Macro [%filename] customizeable?

Post by Paul - Tracker Supp »

Hi Michael,

I am not sure what they did so I asked for an explanation to pass on.

I'll post here what I get.

:-)
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Post Reply