Tab title/filename when opening from URL
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
Tab title/filename when opening from URL
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`?
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`?
- Paul - Tracker Supp
- Site Admin
- Posts: 6901
- Joined: Wed Mar 25, 2009 10:37 pm
- Location: Chemainus, Canada
- Contact:
Re: Tab title/filename when opening from URL
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.
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.
Best regards
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
Re: Tab title/filename when opening from URL
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
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
- TrackerSupp-Daniel
- Site Admin
- Posts: 8606
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Tab title/filename when opening from URL
We try our best!
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
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
Re: Tab title/filename when opening from URL
Hi,
any news on RT#4848: Feature Request :: Editor :: Use the " 'Content-Disposition' response header" to derive file names for "Open from URL"? Are you still considering this improvement?
Best,
soremo
any news on RT#4848: Feature Request :: Editor :: Use the " 'Content-Disposition' response header" to derive file names for "Open from URL"? Are you still considering this improvement?
Best,
soremo
- TrackerSupp-Daniel
- Site Admin
- Posts: 8606
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Tab title/filename when opening from URL
Hello Soremo,
This ticket has been newly opened, and has not seen any further updates since. Thankfully that means that the issue has not been rejected, but it is still in the "consideration" phase, instead of the development phase.
kind regards,
This ticket has been newly opened, and has not seen any further updates since. Thankfully that means that the issue has not been rejected, but it is still in the "consideration" phase, instead of the development phase.
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
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
Re: Tab title/filename when opening from URL
Hi there,
can you give me a short status update on RT#4848?
Best,
soremo
can you give me a short status update on RT#4848?
Best,
soremo
- TrackerSupp-Daniel
- Site Admin
- Posts: 8606
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Tab title/filename when opening from URL
Hi, soremo
Since the last update, a developer and work item number have been assigned to this item, with that said it is currently considered a low priority as there are more pressing topics that need addressing. I am afraid that at the moment there is nothing I can do to increase the priority of its development for you.
Kind regards,
Since the last update, a developer and work item number have been assigned to this item, with that said it is currently considered a low priority as there are more pressing topics that need addressing. I am afraid that at the moment there is nothing I can do to increase the priority of its development for you.
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
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
Re: Tab title/filename when opening from URL
Hi, support team
Any update on RT#4848?
It is really annoying that if one loads a PDF in PDF-XChange Editor from an URL ending with a generic resource name and possibly also having URL parameters, such as https://www.example.com/pdf-document?num=123456, for example, the filename (and tab title) of the opened PDF is considered to be "pdf-document?num=123456.pdf" even if the correct filename of the PDF is included in the "Content-Disposition" header received in respose to requesting the URL.
Kind regards,
soremo
Any update on RT#4848?
It is really annoying that if one loads a PDF in PDF-XChange Editor from an URL ending with a generic resource name and possibly also having URL parameters, such as https://www.example.com/pdf-document?num=123456, for example, the filename (and tab title) of the opened PDF is considered to be "pdf-document?num=123456.pdf" even if the correct filename of the PDF is included in the "Content-Disposition" header received in respose to requesting the URL.
Kind regards,
soremo
- TrackerSupp-Daniel
- Site Admin
- Posts: 8606
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Tab title/filename when opening from URL
Hello, soremo
It seems that it status has not changes since I last looked at the ticket directly. I have reached out to the Dev team for any input they can offer on the status of this. If there is any additional news, I post here in the next few days.
Kind regards,
It seems that it status has not changes since I last looked at the ticket directly. I have reached out to the Dev team for any input they can offer on the status of this. If there is any additional news, I post here in the next few days.
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
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
Re: Tab title/filename when opening from URL
Hi, support team,
I was very happy to find "Added the ability to use the 'Content-Disposition' response header to derive file names for the 'Open from URL' feature. (T# 4848)" in the release notes to build 10.0.0.370 of PDF-XChange Editor! However, I can see no difference in how filenames are derived from the 'Content-Disposition' header when a PDF is opened from an URL.
For example, if I select 'Open from URL' and enter the following URL
https://getsamplefiles.com/download/pdf/sample-1.pdf?foo=bar
the corresponding PDF file is downloaded and opened in a new tab the title of which is "sample-1.pdf?foo=bar". If I want to save this file to disk, the filename suggested in the save dialog is "sample-1.pdf foo=bar.pdf". However, the 'Content-Disposition' response header received upon downloading the PDF is 'attachment; filename=sample-1.pdf'. I would expect that deriving the filename from this header would lead to "sample-1.pdf".
Could you please have a further look into this?
Best regards,
I was very happy to find "Added the ability to use the 'Content-Disposition' response header to derive file names for the 'Open from URL' feature. (T# 4848)" in the release notes to build 10.0.0.370 of PDF-XChange Editor! However, I can see no difference in how filenames are derived from the 'Content-Disposition' header when a PDF is opened from an URL.
For example, if I select 'Open from URL' and enter the following URL
https://getsamplefiles.com/download/pdf/sample-1.pdf?foo=bar
the corresponding PDF file is downloaded and opened in a new tab the title of which is "sample-1.pdf?foo=bar". If I want to save this file to disk, the filename suggested in the save dialog is "sample-1.pdf foo=bar.pdf". However, the 'Content-Disposition' response header received upon downloading the PDF is 'attachment; filename=sample-1.pdf'. I would expect that deriving the filename from this header would lead to "sample-1.pdf".
Could you please have a further look into this?
Best regards,
- Dimitar - Tracker Supp
- Site Admin
- Posts: 1797
- Joined: Mon Jan 15, 2018 9:01 am
Re: Tab title/filename when opening from URL
Hi soremo,
We are glad to hear this.
Thank you for reporting this issue to us.
I will contact our development team to fix this.
Regards.
I was very happy to find "Added the ability to use the 'Content-Disposition' response header to derive file names for the 'Open from URL' feature. (T# 4848)" in the release notes to build 10.0.0.370 of PDF-XChange Editor!
We are glad to hear this.
Thank you for reporting this issue to us.
I will contact our development team to fix this.
Regards.