Ask Your Question

Writer PDF-exports lose orientation of linked Photos

asked 2020-05-25 06:15:19 +0200

Jack2359 gravatar image

updated 2020-05-26 01:44:37 +0200

I have a Libreoffice Writer document that contains lots of clickable links to photos on my hard drive (links created via the path statement in an 'insert link>document' dialogue).

Apparently, the orientation of pictures is managed in exif metadata. If you take a landscape photo, then the origin (pixel 0,0) is designated 'top-left' by default. If you turn your camera around and take a photo of a tall thin object, modern cameras will set the exif metadata so that 0,0 is now designated as 'bottom left' (meaning that the photo gets displayed in Portrait orientation). Also, if you took the picture on an older camera (without awareness of its oprentation), then transferred your photo to a computer, then used the computer's operating system to rotate it from (the default) Landscape to (your desired) Portrait orientation, then this is achieved by the computer changing the exif field for pixel 0,0 from 'top left' to 'bottom left'. So far, so good.

When I open my Portrait photos by clicking the links from my Libreoffice Writer document, they open in Portrait (as they should). However, when I export the Writer document to PDF, the Portrait photos get opened in Landscape (unwantedly 'unrotated' through 90 degrees).

It seems like the 'export to PDF' process is stripping the exif metadata about orientation (whether the 0,0 pixel is (top left vs. bottom left)).

Is there some setting I am missing in the 'Export to PDF' dialog or is this a bug?


p.s. Note that these are not photos _embedded_ in the document, they are hyperlinks to files on my PC, which open [REDACTED in Windows REDACTED] in new tabs in my PDF reader (Sumatra) when cntl-clicked. The actual file open fine in Windows and Writer, just not in the PDF export.


Version: (x64) Build ID: 747b5d0ebf89f41c860ec2a39efd7cb15b54f2d8 CPU threads: 8; OS: Windows 10.0 Build 18363; UI render: GL; VCL: win; Locale: en-GB (en_GB); UI-Language: en-GB Calc: threaded

Windows 10 home (latest) 64bit

edit retag flag offensive close merge delete



If the photos "open in Windows when cntl-clicked" the issue is with the program wich open that photos, not LibreOffice. Or LibreOffice is your default photo-viewer? Can you edit your question and clarify that. Thanks.

LeroyG gravatar imageLeroyG ( 2020-05-25 16:43:27 +0200 )edit

I have edited it - I had remembed them being opened in Windows Photos app, but actually when they are launched from the links in the pdf, they are opened in a new tab in the pdf viewer (Sumatra). I have now grabbed some other pdf readers and I don't get the same problem with those, so yes, I guess the problem is with Sumatra and not the Libreoffice 'export-to-pdf' process. Case closed. thanks

Jack2359 gravatar imageJack2359 ( 2020-05-26 01:48:33 +0200 )edit

1 Answer

Sort by » oldest newest most voted

answered 2020-05-26 01:54:34 +0200

LeroyG gravatar image

The issue is with the program wich open that photos, not LibreOffice.

@Jack2359, you can mark the answer as correct in the circle to the left.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-05-25 06:15:19 +0200

Seen: 68 times

Last updated: May 26 '20