Tab title/filename when opening from URL

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

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

Post Reply
soremo
User
Posts: 11
Joined: Thu Apr 04, 2019 8:34 am

Tab title/filename when opening from URL

Post by soremo » Mon Jul 15, 2019 10:07 am

It's great that PDF-XChange Editor is able to directly open URLs. I use this feature a lot to load PDFs that are stored in a private database and accessible through a server via http.

Apparently PDF-XChange Editor uses the last part of the URL entered by the user as the title for the tab that opens after loading. This title then is also used as the default filename when saving the loaded document as a local file. However, the last part of the URL does not necessarily correspond to the actual title/filename of the loaded document.

Let's say the database can be queried by requesting an URL such as "https://www.example.com/pdfdatabase/search/searchstring"; the server then responds to such a request by http redirection to the search result located at "https://www.example.com/pdfdatabase/document.pdf". This PDF document is then loaded by PDF-XChange Editor into a new tab the title of which, however, is not "document" or "document.pdf" as one would expect, but "searchstring". Furthermore, even without any redirection, an URL may refer to a PDF document by other means than by its filename, for example by an ID, so that an URL such as "https://www.example.com/pdfdatabase/some_id" may return a PDF document the original filename of which is "document.pdf", but the tab title becomes "some_id" instead.

Therefore I'd like to suggest deriving the tab title (and default filename for saving) from the filename indicated by the server's 'Content-Disposition' response header. This way, the server can define which filename to use. If the 'Content-Disposition' header is not set, the title/filename could still be derived from the last part of the URL, though preferably not from the URL entered by the user, but from the URL from which the PDF file has acutally been loaded, so as to correctly handle redirections.

What do you think`?

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

Re: Tab title/filename when opening from URL

Post by Paul - Tracker Supp » Mon Jul 15, 2019 3:05 pm

Hi soremo,

I think that is a great suggestion. I have raised a formal feature request around this. While internal only, if you refer to RT#4848: Feature Request :: Editor :: Use the " 'Content-Disposition' response header" to derive file names for "Open from URL" in communications with us, any staff member can get you a status update.

I hope that helps.
_________________
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards

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

soremo
User
Posts: 11
Joined: Thu Apr 04, 2019 8:34 am

Re: Tab title/filename when opening from URL

Post by soremo » Mon Jul 15, 2019 3:26 pm

Hi Paul,

thanks for your quick reply and for considering my suggestion. The responsiveness of the entire support team is really incredible. That for sure is part of the reason that PDF-XChange Editor, though being a great piece of software already, still keeps improving.

Best
soremo

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2273
Joined: Wed Jan 03, 2018 6:52 pm

Re: Tab title/filename when opening from URL

Post by TrackerSupp-Daniel » Mon Jul 15, 2019 7:17 pm

We try our best! :D
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

Post Reply