Has anyone a good guide for me to setup Proton and the Extension? Thank's for the help.
Extension talk:ElectronPdfService
I did not understand the instruction of the electron service and the steps of the configuration :
Install and configure an Electron Service exposed over a RESTBase API endpoint.
Also I am using Linux ,Could anyone please guide proper steps for Linux.
I'm afraid we are unable to provide support for Electron, as it is an external library. You should follow the links in the installation section.
Hi! I tried twice to generate a PDF out of w:en:Tor (anonymity network), but it stops on the section "Usage" (the first one), with just 5 pages. The original article is much bigger!
Created a bug report on https://phabricator.wikimedia.org/T246328 .
tldr: is it possible to run electronpdfservice standalone without the REST server?
I have a local hosted wiki on my laptop for school purposes, i was wandering would it be possible to run this service as a standalone as i do not need the features of REST and do not have resources to run it. Need a pdf solution.
Technically, this extension here is not providing a REST service. All it really does is redirecting the user to a URL, which might be a REST endpoint. We are using the software provided at https://github.com/msokk/electron-render-service, but we can't help with that.
In case the only "PDF solution" you need is to have individual pages exported as PDF, you can use your web browsers "print to PDF" feature. All modern browsers do this, and MediaWiki takes care that the resulting PDFs look good.
Just installed ElectronPdfService
Thanks for the report. But I'm afraid we need much more, much more precise information. Neither searching for "No known handler associated", nor "operationId", nor "generatePDF" reveals anything. Either a mistake happened when you transcribed the error message you have seen, or the message is from a subsystem I'm not aware of. What exactly did you do? How exactly did you installed the extension? What was the URL you used? Which function did you tried to activate when the error occurred?
I now believe the error is coming from RESTBase when PdfService tries to acces "page/pdf/*"
The generatePDF function is in pathToRestbase/v1/pdf.js
Does it literally say "pathToRestbase"? This sounds like your configuration might be incomplete. There is one setting in the extension you might want to check or change via your LocalSettings.php: $wgElectronPdfServiceRESTbaseURL = '/api/rest_v1/page/pdf/';
In case it is an issue with the Electron Service itself. I'm afraid we can't help you here, as the MediaWiki extension only provides a thin interface to this service.
No the it is not literally "pathToRestbase" and yes i have $wgElectronPdfServiceRESTbaseURL set accordingly. It might be a problem with RESTBase
I'm not sure how this will impact the future of this extension, but news has it that the Wikimedia Foundation has given up on Electron and established a (renewed) partnership with PediaPress: Reading/Web/PDF Functionality
Hey @Cavila
thanks for that update, I forwarded the info to our team so we can further watch the development.
Have a nice weekend :-), best,
Christoph
Is it possible to format the pdf output through CSS (or somehow else)? E. g. change the serif font to sans-serif or change the appearance of <pre> paragraphs? --Mosmas (talk) 10:10, 2 March 2018 (UTC)
Hey @Mosmas, you can add special CSS rules to the general print layout of you wiki on the MediaWiki:Print.css page of the wiki. ( e.g. https://en.wikipedia.org/wiki/MediaWiki:Print.css ). The CSS there should also affect the layout of the ElectronPDF output.
See as well Manual:Interface/Stylesheets
Hope that works for you, best
Christoph
I added what the $wgElectronPdfServiceRESTbaseURL variable should be set to to run this on version of Ubuntu. At least from what I found while I struggled to get it setup locally.
Does this extension require the RESTbase to be served via https for a wiki using https?
Hi @Kghbln
if this is still relevant for you: From looking roughly into the code I would assume that this does not matter.
Thanks for your reply! I will give it another shot soon.
This extension is very very useless. It needs to install a lot of useless softwares (and very complicated to configure without a spep by step guide) and the result is the same if you click on "printable version" and then print as a pdf with your browser. Crazy stuff...
There are no older topics