Comments exported in margin are clipped in PDF export

Hi there LibreOffice community!!

I am experiencing a regression in LibreOffice where comments exported in the margin using the ExportNotesInMargin PDF export option are clipped on the right edge (I have added an image example in this feed) . I have done it manually and in code and both do not work. Currently in my code I am taking a docx and using this argument below to export it as a pdf with comments in margins.

--convert-to pdf:writer_pdf_Export:{ "ExportNotes":{"type":"boolean","value":"false"}, "ExportNotesInMargin":{"type":"boolean","value":"true"} }

I have seen BUG TICKET and was wondering if this

  • Has been fixed in the newer versions (if so point me to the version please)?
  • There is a work around/fix for this if not?

Currently LibreOffice 7.6.7.2 version works but LibreOffice 24.8.5.2 onwards doesnt seem to be working.

Thank you in advance!!

Drag the comments bar to be narrower. For my test, 60 mm wide exported OK (default is set to 80 mm). The setting appears to be persistent, so a one-off adjustment for all documents.
SetCommentBarTo60mm

2 Likes

Thanks for the response!!

Yes; that bug is a duplicate of tdf#163194, which is fixed in upcoming 26.2.1.
As to workaround: set DisplayWidthFactor in expert configuration to 1.8 (which will make the screen size of the comment area narrow on HiDPI screens, but it is the value that is correct for export).

2 Likes

Oh thats great!! Thanks heaps i will wait for that release