Export PDF using Remote Chrome

Last modified by Ilie Andriuta on 2024/01/31 17:40

Home Export Home Run Test

Steps to reproduce

Preconditions:
- Chrome browser is installed on the test machine
- Have a page with an imported office document already created.

  1. Start headless Chrome following the instructions from https://extensions.xwiki.org/xwiki/bin/view/Extension/PDF%20Export%20Application/#HHeadlessChromeonLocalhost, for Windows may be better to use (paste in a Terminal, e.g. Command Prompt or Windows Terminal): chrome --headless --disable-gpu --remote-debugging-port=9222 --remote-allow-origins=http://localhost:9222
  2. Go to Administer Wiki > Content > PDF Export
  3. From "Generator" select 'Remote Chrome'
  4. Set Chrome Host to "localhost"
  5. Set Chrome Remote Debugging Port to the port you used (e.g. 9222)
  6. Set XWiki URI to "localhost"
  7. Click 'Save' and check that the Generator status is "Available" on the top, under "Status"
  8. Go to the page imported with Office
  9. Click 'More Actions > Export > PDF (make sure the page is ticked)
  10. Click 'Export' > 'Export'

Expected results

The page is exported successfully with its content rendered like the original wiki page.

Results

per page of Page
Jira Issue
Warning
The environment prevents the table from loading data.
 
Page

Get Connected