The %[FileName] placeholder does not work if there is more than one file in the input  SOLVED

This Forum is for the use of End Users requiring help and assistance for Tracker Software's PDF-Tools.

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Stefan - PDF-XChange

User avatar
Jensen Head
User
Posts: 862
Joined: Mon Sep 13, 2021 8:12 am

The %[FileName] placeholder does not work if there is more than one file in the input

Post by Jensen Head »

In this case, the file name becomes "New Document From Images". I often use the context menu in File Explorer to execute a saved screenshot processing sequence. My screenshots are saved under automatically assigned names like "Screen Shot 2025-05-20 at 20.49.54.png".

Is there a way to change the name of the saved PDF file that is created from more than one image to something more related to the input files? For example, "Screen Shot 2025-05-20 at 20.49.54, etc" (if "Screen Shot 2025-05-20 at 20.49.54.png" was the first file in the input list) or "New Document From Images 2025-05-20 20.49.54" (if "Screen Shot 2025-05-20 at 20.49.54.png" had the latest date-time stamp of all the input files).
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: The %[FileName] placeholder does not work if there is more than one file in the input

Post by Stefan - PDF-XChange »

Hello Jensen Head,

Yes - %[FileName] is useful when you have a single file name to work with, and currently as you have noticed does not take the first file name when working with multi files input. I will pass this one to the devs for consideration as well!

p.s. A ticket has been created for this reported issue:
#7517: Tools: The %[FileName] placeholder does not work if there is more than one file in the input

Kind regards,
Stefan
User avatar
Jensen Head
User
Posts: 862
Joined: Mon Sep 13, 2021 8:12 am

Re: The %[FileName] placeholder does not work if there is more than one file in the input  SOLVED

Post by Jensen Head »

Jensen Head wrote: Wed May 21, 2025 10:46 am"Screen Shot 2025-05-20 at 20.49.54, etc" (if "Screen Shot 2025-05-20 at 20.49.54.png" was the first file in the input list)
Done. Thank You!
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 12520
Joined: Wed Jan 03, 2018 6:52 pm

The %[FileName] placeholder does not work if there is more than one file in the input

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com