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

asked 2019-07-02 12:23:42 +0200

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

edit retag flag offensive close merge delete

Comments

1

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?
Mike Kaganski gravatar imageMike Kaganski ( 2019-07-02 13:07:57 +0200 )edit

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.
Harchytekt gravatar imageHarchytekt ( 2019-07-02 13:41:56 +0200 )edit
1

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.

Mike Kaganski gravatar imageMike Kaganski ( 2019-07-02 13:45:09 +0200 )edit

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

Harchytekt gravatar imageHarchytekt ( 2019-07-02 14:00:34 +0200 )edit

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

Mike Kaganski gravatar imageMike Kaganski ( 2019-07-02 14:07:02 +0200 )edit

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

Harchytekt gravatar imageHarchytekt ( 2019-07-02 14:11:45 +0200 )edit

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

Harchytekt gravatar imageHarchytekt ( 2019-07-02 14:36:01 +0200 )edit