Convert & combine files in PDF: assign the folder name to the result PDF file

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

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

Locked
RomainM
User
Posts: 1
Joined: Thu Nov 26, 2020 8:27 am

Convert & combine files in PDF: assign the folder name to the result PDF file

Post by RomainM »

Hello,

How do I assign a filename when I merge many files ?

I have 2 files that I would like to convert and combine in a PDF:
2020-11-27 18_41_10-Folder_name.png
So I used the following commands:
  • Choose Input Files
  • Convert pages to PDF
  • Merge Pages
  • Save Document
2020-11-27 18_36_24-.png

But the PDF created is automatically named "Document".
2020-11-27 18_40_53-Folder_name.png

I would like the name of this PDF to be automatized (and not to have to write it everytime):
- either the name of the folder from which the files are extracted from
- or, at least, the name of the first file.


In "Save document", I tried to use [%Folder Name], but it does not work (because this parameter gives the full path of the folder, whereas I only need the folder name !)

Is this possible to customize the name of the PDF file automatically ?

Thank you !
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8436
Joined: Wed Jan 03, 2018 6:52 pm

Re: Convert & combine files in PDF: assign the folder name to the result PDF file

Post by TrackerSupp-Daniel »

Hi, RomainM

The function you are looking for is %[FolderTitle], not %[FolderName]. With that said, currently in PDF-Tools it seems that this action is not always working as intended, and can often simply use "untitled" instead of the source folder name without pathing.

I have reported this bug to our Dev team for investigation, so hopefully we can have a proper resolution in the near future.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
fletch
User
Posts: 79
Joined: Wed Mar 11, 2020 2:53 am

Re: Convert & combine files in PDF: assign the folder name to the result PDF file

Post by fletch »

So that answers the question I had, since...

1. FolderTitle is not documented
2. FolderName is not in the UI

But I wish FolderName included the full path - EXCLUDING the drive designation. Then you could choose a destination path and use FolderName to layout the output paths in the same folder structure as the original.

So you could process say

C:\users\John\Documents\

Specify an output path of

D:\Documents

Then use %[FolderName]%[FileName]

It would then process all the files in all folders from the source path and place them in the same folder structure as the source except in D:\Documents

This would allow one to defeat the bug in the new "preserve original timestamp for file" feature that ONLY works if you have it create a file with a unique name OR in a different location. It will not just OCR an existing file and save the result TO the existing ORIGINAL file - while preserving the original timestamp.

Granted fixing the bug would be the preferred choice.

https://forum.pdf-xchange.com/viewtopic.php?f=70&t=35239&p=146453#p147674
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8436
Joined: Wed Jan 03, 2018 6:52 pm

Re: Convert & combine files in PDF: assign the folder name to the result PDF file

Post by TrackerSupp-Daniel »

Hi, fletch

Thank you for the feedback, unfortunately changing handling is not likely something we can do. Once we implement something like this, people have already created their own custom tools which they expect to work a certain way. When there is a bug we can resolve it and restore the original handling, but if we make a change, it will affect everyone after an update. Perhaps a new variable could be implemented, but I cannot make any promises on that front.

Resolving the bug is obviously the top priority here.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
fletch
User
Posts: 79
Joined: Wed Mar 11, 2020 2:53 am

Re: Convert & combine files in PDF: assign the folder name to the result PDF file

Post by fletch »

Totally agree, fixing the bug is the easiest approach. :D
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8436
Joined: Wed Jan 03, 2018 6:52 pm

Convert & combine files in PDF: assign the folder name to the result PDF file

Post by TrackerSupp-Daniel »

:)
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
ystella
User
Posts: 2
Joined: Tue Sep 15, 2015 2:03 am

Re: Convert & combine files in PDF: assign the folder name to the result PDF file

Post by ystella »

I am also facing the same problem. I would like to know when this bug would be fixed. Can my contact be added and notified when the resolution is available?
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8436
Joined: Wed Jan 03, 2018 6:52 pm

Re: Convert & combine files in PDF: assign the folder name to the result PDF file

Post by TrackerSupp-Daniel »

Hello, ystella

Sorry for the long delay in a reply, I wanted to let you know that this issue has been resolved in a previous build. If you have not already, you can update now to find this action is working as desired.

Kind regards,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

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