Is it possible to export a docx to pdf with its bookmark (server mode)?

I need to convert a docx to PDF in Alfresco (v5.2) using JodConverter.
The file contains only one bookmark but it is not there when exported as a PDF.
But, if I do it from Word, the PDF has the bookmark.
The LibreOffice version from Alfresco is 5.2

Trying to export a simple document with one bookmark and one hyperlink into PDF works here.

So - several questions here.

  • What specifically do you expect to see? I mean, do you expect to see a standalone bookmark, without any hyperlinks to it?
  • Did you try doing that in interactive mode using the software on that server? Does it work when exporting manually?
  • Does it work when doing that with an ODT? Is it some kind of DOCX support problem (possibly version-dependent)? Is the bookmark visible in Navigator when the document is opened on the server interactively?

Hi, thank you for your answer.

  • Yes, the source file contains only one bookmark and some text without hyperlink. So the PDF shouldn’t contain any hyperlink.
  • When I tried to launch Writer, I got this error: “[context=“user”] caught unexpected com.sun.star.ucb.ContentCreationException: Cannot create folder (invalid path): C:”
  • I tried with an ODT, but I had the same result.

If there’s no hyperlink, then LibreOffice does not create any controls to access bookmarks. The bookmark is presumably there, but - you can’t see it. But having a hyperlink, you may check that relevant bookmark is saved and working.

I added the hyperlink to the bookmark, but I still got the same result: no bookmark in the resulting PDF.

You mean that clicking the link, you are not moved to the bookmark position?

Sorry, you were right, it works! :slight_smile:
Thanks again for your help.

I have spoken with the user and what he needs is for the bookmark to be visible (in Adobe Acrobat Reader).