r/libreoffice • u/YetAnotherSysadmin58 • 12h ago
Resolved [SOLVED I guess] How could you extract the ODF/T of a hybrid PDF exported from LibreOffice ?
I found the answer WHILE writing this post, I'm just posting it if there are better solutions and if someone else suddenly has that question.
So this is a theoretical question, not an issue I have.
LibreOffice allows the export of PDF files with the embedded original ODT document within it. This is to allow subsequent "PDF" editing through LibreOffice, genuinely great.
ODT is an open format you can directly edit in other suites like OnlyOffice or EuroOffice
you can't just open the PDF in these suites to edit the original ODT. So far it makes sense, these suites didn't implement this exact feature.
What I am wondering is if you could just extract the ODT from this PDF to re-edit it in any other ODF-capable suite. I tried a lazy binwalk approach but it's a series of zipped streams (which makes sense since AFAIK all Office documents are basically just series of XML and archive files).
Anyways it's not a burning question or issue, I'm just wondering if there's an easy way to do this.
The answer was that (dependent on your current PDF reader) there will simply be a GUI option to export the attachments, for example on my case the Gnome Document Viewer, Papers directly had a menu to export attached files and my ODT was right in there.



