Reading Web has a hard requirement to support a PDF Table of contents with page numbers for any new PDF generation service that will replace OCG in the [[ https://www.mediawiki.org/wiki/Extension:Collection | collection extension ]].
Currently 2 options are being evaluated:
wkhtmltopdf has support for the ToC feature required by product, while Electron does not. One aspect that has not been quantified is how difficult it would be to implement the PDF ToC feature into Electron.
As Electron is already available in an [[ https://www.mediawiki.org/wiki/Extension:ElectronPdfService | extension ]], it would be good to quantify this effort before selecting a different solution.
Some questions to answer:
1. What is the time estimate involved in adding these features to Electron by wrapping the service?
2. In addition to evaluating the effort of adding these features by wrapping electron, it also important to evaluate extending Electron itself. The reason being is that we may have an issue with needing to generate 2 PDFs.
3. Do we really need to render twice to get the PDF?
4. If so, is generating 2 PDFs that much of an issue? Performance wise, complexity wise?