New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for choosing between SVG-based and image-based PDF export per diagram #102
Comments
One solution that @oanalavinia and I discussed is to add a new boolean property |
Note that for IE11 only SVG-based PDF export will be available. This means that both |
… per diagram xwikisas#102 * added exportUsingSVG class property so that the user can export the desired format, defaulting to svg * upload png version of the diagram at save step
… per diagram xwikisas#102 * refactoring
As a conclusion, to choose between SVG-based and image-based XWiki PDF export, a diagram must be edited in object mode for modifying exportUsingSVG property. |
We recently dropped image-based PDF diagram export (when exporting a wiki page to PDF) in favor of SVG-based PDF export. While this has improved the PDF export quality in general, there are still some issues coming from the fact that we use Apache FOP for server-side PDF export which doesn't support HTML inside SVG (foreign objects) and the layout is not all the time 100% the same as what you see in the browser.
Image based PDF export on the other hand is not interactive (you can't click on the links for instance) and the quality depends on the image resolution, but at least you have the guarantee that it will look the same.
Best would be to have support for both options (SVG and image based PDF export) and to let the user decide which one to use.
The text was updated successfully, but these errors were encountered: