External images inside OpenOffice/LibreOffice document are not resolved when converted to PDF

Issue

  • Upload to Document Library a new OpenOffice document with external link to image.
  • Export the document to PDF.
  • The document is converted to PDF but the image is blank.

Environment

  • Liferay DXP 7.0, 7.1, 7.2 with OpenOffice installed and running as external service.

Resolution

  • Go to ${USER_HOME}/.configs/libreoffice or  ${USER_HOME}/.configs/openoffice then look for registrymodifications.xcu file in this folder or one folder below.
  • Inside registrymodifications.xcu, locate the properties:
    <item oor:path="/org.openoffice.Inet/Settings"><prop oor:name="ooInetFTPProxyName" oor:op="fuse"><value></value></prop></item>
    <item oor:path="/org.openoffice.Inet/Settings"><prop oor:name="ooInetFTPProxyPort" oor:op="fuse"><value></value></prop></item>
    <item oor:path="/org.openoffice.Inet/Settings"><prop oor:name="ooInetHTTPProxyName" oor:op="fuse"><value></value></prop></item>
    <item oor:path="/org.openoffice.Inet/Settings"><prop oor:name="ooInetHTTPProxyPort" oor:op="fuse"><value></value></prop></item>
    <item oor:path="/org.openoffice.Inet/Settings"><prop oor:name="ooInetHTTPSProxyName" oor:op="fuse"><value></value></prop></item>
    <item oor:path="/org.openoffice.Inet/Settings"><prop oor:name="ooInetHTTPSProxyPort" oor:op="fuse"><value></value></prop></item>
    <item oor:path="/org.openoffice.Inet/Settings"><prop oor:name="ooInetNoProxy" oor:op="fuse"><value></value></prop></item>
    <item oor:path="/org.openoffice.Inet/Settings"><prop oor:name="ooInetProxyType" oor:op="fuse"><value>0</value></prop></item>
  • Depending on your proxy configuration the value of ooInetProxyType has to be changed.
    • System Proxy Configuration:<value>1</value>.
    • Manual Proxy Configuration:<value>2</value>.
      • The other properties listed above must align with your proxy configuration.
    • No proxy Configuration: <value>0</value>.
这篇文章有帮助吗?
1 人中有 0 人觉得有帮助