Page MenuHomePhabricator

Print As PDF of an old revision prints the current revision
Open, NormalPublic


When I open:

And select download as PDF, than the the single column mode will print instead:

which is (at this time) the current version.

Event Timeline

TheDJ created this task.Aug 4 2017, 8:29 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptAug 4 2017, 8:29 AM
Base added a subscriber: Base.Nov 27 2017, 2:37 AM
ovasileva triaged this task as Normal priority.Jun 4 2019, 1:09 PM
TheDJ added a comment.Jun 4 2019, 5:55 PM

Btw. Im pretty sure this wont get prioritized anytime soon, but maybe we should provide a warning text on Special:ElectronPdf ? “Its currently not possible to create pdfs of old revisions, here is the download for the current revision ?

Still an issue today. Which is probably Proton. I guess.

No proton is the renderer, it doesn't determine what gets rendered. That is mostly a Collection extension problem + infra.

Tgr edited projects, added Proton, Electron-PDFs; removed Collection.Jul 18 2019, 9:54 AM
Tgr added a subscriber: Tgr.

The Proton service doesn't offer a way of specifying the revision currently, that's T213369: Make it possible to render a specific article revision with Proton. (Volunteers welcome! Low priority but should be fairly easy.)

ElectronPdfRenderer (which confusingly used to expose Proton in MediaWiki and is even more confusingly tracked under Electron-PDFs - that should probably be fixed) should probably hide the "Download as PDF" link on old revisions, for now (and should specify the revision once the dependency gets fixed).

Collection is only used for "Create a book", not "Download as PDF" (and doesn't offer any actual rendering, just passes the data to PediaPress). It also doesn't support old revisions AFAIK, but that depends on PediaPress capabilities so it's probably harder to change.