Legacy Knowledge Base
Published Jul. 2, 2025

Cannot export Wiki to PDF using LibreOffice

Written By

Amit Tiwari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

Steps to reproduce:
1) Have OpenOffice installed on the machine where Liferay DXP is running.
2) Start headless OpenOffice using this command

soffice --headless --accept="socket,host=127.0.0.1,port=8100;urp;" --nofirststartwizard

3) Start Liferay DXP
4) Enable OpenOffice conversion in Control Panel → Server Administration → External Services (on master it was moved to System Settings)
5) Place a Wiki portlet on a page and add a Wiki page.
6) Have a page with the Asset Publisher portlet
7) Configure the Asset Published to show Wiki pages and in Display Settings enable conversion to PDF.
8) Click on the Wiki page to see the details. There should be a hyperlink PDF.
9) Click on the hyperlink PDF and watch Liferay's log file.
Expected Results: No error, successful conversion
Actual Results: Error in logs, no conversion:

2021-06-17 17:45:13,646 WARN [MVCPortlet:312] No render mappings found for MVC render command name "/wiki/export_page" for portlet com_liferay_wiki_web_portlet_WikiPortlet
2021-06-17 17:45:13,649 ERROR [MVCPortlet:592] null is not a valid include

Environment

  • Liferay DXP 7.0

Resolution

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base