document title or document file name

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

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

MedBooster
User
Posts: 1385
Joined: Mon Nov 15, 2021 8:38 pm

document title or document file name

Post by MedBooster »

is it possible to make document title or document file name always be the same?

Where do you see which is which? Just in the file explorer properties?
image.png
You do not have the required permissions to view the files attached to this post.
My wishlist https://forum.pdf-xchange.com/viewtopic.php?p=187394#p187394
Disable SPACE page navigation, fix kb shortcut for highlighting advanced search tool search field, bookmarks with numbers, toolbar small icon size, AltGr/Ctrl+Alt keyboard issues
User avatar
Radi - PDF-XChange
Site Admin
Posts: 619
Joined: Tue Mar 03, 2015 12:46 pm

Re: document title or document file name

Post by Radi - PDF-XChange »

Hello MedBooster,

The document title can be seen and modified from the document's properties - File -> Document Properties -> Description (Ctrl+D).

If you would like to change this, you will need to do so manually from the above menu. If you delete the title, the Editor will show the file name in the document tab even if Document title is selected in the options.

Regards,
Radi
User avatar
rakunavi
User
Posts: 1825
Joined: Sat Sep 11, 2021 5:04 am

Re: document title or document file name

Post by rakunavi »

Hi MedBooster,
MedBooster wrote: Sat Jan 07, 2023 9:04 pm is it possible to make document title or document file name always be the same?
It is a rather tricky method, but it may not be impossible to always set the file name to the document title, limited to opening from Explorer, by specifying JavaScript in the options when the application is launched.

For example, after creating the following script with the file name "startup.js", you could run the ftype command as an administrator and change the association as follows.

Code: Select all

var FileName = this.documentFileName.split(".");
if (this.info.Title != FileName[0]) this.info.Title = FileName[0];
guide.png

Code: Select all

ftype PDFXEdit.PDF="C:\Program Files\Tracker Software\PDF Editor\PDFXEdit.exe" /A "%1" /runjs "C:\Users\user\AppData\Roaming\Tracker Software\PDFXEditor\3.0\JavaScript\startup.js"
Best regards,
rakunavi
You do not have the required permissions to view the files attached to this post.
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7388
Joined: Wed Mar 25, 2009 10:37 pm

Re: document title or document file name

Post by Paul - PDF-XChange »

That's a neat approach.

You could make a button for it, too, such that if you find one where the names don't match, you just hit the button on the toolbar to run the script.
https://www.pdf-xchange.com/knowle ... the-Editor
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com