Extension talk:ElectronPdfService

About this board

Proton Installation Guide

1
DesignerThan (talkcontribs)

Has anyone a good guide for me to setup Proton and the Extension? Thank's for the help.

Reply to "Proton Installation Guide"

Unable to install ElectronPDFService

2
143.97.2.35 (talkcontribs)

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.

Thiemo Kreuz (WMDE) (talkcontribs)

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.

Reply to "Unable to install ElectronPDFService"

Incomplete PDF of "Tor (anonymity network)"

2
MisterSanderson (talkcontribs)

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!

MisterSanderson (talkcontribs)
Reply to "Incomplete PDF of "Tor (anonymity network)""

Low scale installation

2
Erentar2002 (talkcontribs)

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.

Thiemo Kreuz (WMDE) (talkcontribs)

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.

Reply to "Low scale installation"

I am getting this error "No known handler associated with operationId generatePDF"

6
Hoefsldyla (talkcontribs)

Just installed ElectronPdfService

Thiemo Kreuz (WMDE) (talkcontribs)

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?

Hoefsldyla (talkcontribs)

I now believe the error is coming from RESTBase when PdfService tries to acces "page/pdf/*"

Hoefsldyla (talkcontribs)

The generatePDF function is in pathToRestbase/v1/pdf.js

Thiemo Kreuz (WMDE) (talkcontribs)

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.

Hoefsldyla (talkcontribs)

No the it is not literally "pathToRestbase" and yes i have $wgElectronPdfServiceRESTbaseURL set accordingly. It might be a problem with RESTBase

Reply to "I am getting this error "No known handler associated with operationId generatePDF""
Cavila (talkcontribs)

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

Christoph Jauera (WMDE) (talkcontribs)

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

Reply to "Update"
Summary by Christoph Jauera (WMDE)

To adjusted styles of the print/PDF version of a wiki you can add css to the MediaWiki:Print.css page.

Mosmas (talkcontribs)

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)

Christoph Jauera (WMDE) (talkcontribs)
Mosmas (talkcontribs)

This works fine (I testet it with font-family)! Thanks and greets from Germany, --Mosmas (talk) 12:52, 2 March 2018 (UTC)

Ubuntu Server 16.04.3 LTS

1
Camxct (talkcontribs)

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.

Reply to "Ubuntu Server 16.04.3 LTS"
Kghbln (talkcontribs)

Does this extension require the RESTbase to be served via https for a wiki using https?

Christoph Jauera (WMDE) (talkcontribs)

Hi @Kghbln

if this is still relevant for you: From looking roughly into the code I would assume that this does not matter.

Kghbln (talkcontribs)

Thanks for your reply! I will give it another shot soon.

Reply to "RESTbase"

very useless extension

1
93.38.0.180 (talkcontribs)

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...

Reply to "very useless extension"
There are no older topics