Page MenuHomePhabricator

Predictable URL for "Download as PDF"
Closed, DeclinedPublicFeature

Description

Author: MB2613

Description:
Could you create predictable URLs for generating PDFs of Wikipedia articles?

The reason this would be helpful is that it would allow me to create a collection of articles in Adobe Acrobat using the "Create PDF from Web Page" feature in that software. That feature is able to work from a list of URLs to create a single PDF file with multiple webpages in it. But I can't give Acrobat such a list for Wikipedia's "Download as PDF" feature because there is (as far as I know) no predictable URL that accesses that feature.

For example, for the article:

http://en.wikipedia.org/wiki/Subject

the PDF URL could be something like:

http://en.wikipedia.org/wiki/DownloadPDF/Subject

Another way to accomplish what I'm asking for could be to allow "Book creator" to work from a provided list instead of requiring me to manually click on the link for each article to be included.

Thank you.


Version: master
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=44186

Details

Reference
bz62592

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:04 AM
bzimport added a project: Collection.
bzimport set Reference to bz62592.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for filing this bug. I suspect it depends on bug 44186.
Moreover, I read "Acrobat" and I faint... it's easier to get help if you ask to support free software. Doesn't any of http://pdfreaders.org have a similar feature, so that everyone can test what you mean? Thanks.

MB2613 wrote:

I don't see how this depends on 44186. Lots of pages are created dynamically when called and don't exist until then. The issue here is providing a predictable URL for the creation of a pdf of an article.

This request does not depend on anything about Acrobat or other pdf software. I only mentioned Acrobat in order to explain the reason for the request.

By the way, speaking of Acrobat, the reason this request came up is because something broke in the relationship between Wikipedia and Acrobat. I used to be able to archive Wikipedia articles as pdfs in Acrobat by using "Create PDF from Web Page" on the article URL. But that stopped working, which is reported as bug 62558.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:13 AM
Aklapper removed a subscriber: wikibugs-l-list.

As of today, I believe the path would be:

/index.php?title=Special:DownloadAsPdf&page=<pagename>&action=show-download-screen

for the download page generator

and

/api/rest_v1/page/pdf/<pagename>

for the downloaded pdf

I'll close this ticket as it refers to a combination of old Collection extension and most likely the electron-render renderer. Right now we use https://www.mediawiki.org/wiki/Proton to generate PDFs and links.

To retrieve a PDF you need to send a GET request to https://<PROJECT>/api/rest_v1/page/pdf/<TITLE>, for example: https://en.wikipedia.org/api/rest_v1/page/pdf/Book