Details
-
New Feature
-
Resolution: Fixed
-
Major
-
13.10.1
-
None
Description
Develop some Javascript to bridge XWiki and the Browser's print feature, when clicking on the Export to PDF button in XWiki's UI:
- Add a loading animation
- Compute the print preview URL based on the PDF options (
XWIKI-19267) - Inject a hidden iframe into the current page pointing it to the print URL
- Wait for the iframe to load and also for the JavaScript within the iframe to be ready (
XWIKI-19266) - Remove the loading animation
- Call iframe.contentWindow.print()
- The user is free to either download the PDF or send it to a printer
- Also adapt CSS for printing so that links are displayed more nicely than the default (by default Chrome displays the link text + the link URL next to it)
Attachments
Issue Links
- causes
-
XWIKI-22044 Add back ability to export pages from a CLI
- Open
- depends on
-
XWIKI-19266 Add support for detecting when the XWiki UI and content are fully loaded
- Closed