Summary: | Support non standard Libreoffice Embedded files | ||
---|---|---|---|
Product: | [Applications] okular | Reporter: | Peter Maiwald <peter.maiwald> |
Component: | general | Assignee: | Okular developers <okular-devel> |
Status: | RESOLVED NOT A BUG | ||
Severity: | wishlist | CC: | aacid, nate, oliver.sander, yurchor |
Priority: | NOR | ||
Version: | 20.12.3 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
Hybrid PDF with Libreoffice Draw
Screenshot of different readers show no attachments in the test file |
Description
Peter Maiwald
2021-04-28 10:55:15 UTC
Please attach such a file. What Oliver said :) Created attachment 138087 [details]
Hybrid PDF with Libreoffice Draw
Sample Hybrid Pdf
As far as I can see there's no attachment in that file. What makes you think there is one? (In reply to Albert Astals Cid from comment #4) > As far as I can see there's no attachment in that file. > > What makes you think there is one? Open it in Libreoffice Draw. There is the pdf and the Libreoffice Draw in this File. But nobody can see this in Okular. Created attachment 138108 [details]
Screenshot of different readers show no attachments in the test file
Adobe Reader, mupdf, Foxit Reader, and PDF-XChange Editor show no attachments either.
LibreOffice embeds src documents in a rather nonstandard way (then again, at the time the feature was added there was no standard way TTBOMK) - it gets added as AdditionalStreams dict in the document trailer. FWIW, code is here: https://git.libreoffice.org/core/+/refs/heads/master/vcl/source/gdi/pdfwriter_impl.cxx#5402 (due to the established install base, hard to change how this is written; then again _adding_ PDF-A/3 conformant SOURCE embedding should prolly be done at some stage. See also https://bugs.documentfoundation.org/show_bug.cgi?id=66580) This is FYI, I have no view on whether supporting a non-standard (albeit perhaps moderately wide-spread) custom embedding is in scope for Okular. How can I see that I can edit this pdf file and with which program? (In reply to Peter Maiwald from comment #8) > How can I see that I can edit this pdf file and with which program? As it follows from Comment 7, you can safely edit the main layer in LO Draw or Inkscape and you can safely edit annotations in Okular, Evince, Foxit Reader, or Adobe Reader. They are in the different streams of data. @thb I don't understand what you mean with "no standard way of adding documents", pdf has had document embedding since PDF 1.3 (Embedded file streams). Personally I don't see the point on supporting non standard files, we already have too much of the standard we don't support because of lack of time to implement it, spending time implementing support for non standard files seems wrong to me. I have created a bug report at Libreoffice: https://bugs.documentfoundation.org/show_bug.cgi?id=142051 Reading https://bugs.documentfoundation.org/show_bug.cgi?id=66580 (an old duplicate of your bug report), it seems quite clear that the LO folks are unhappy about their nonstandard way of embedding odt files into pdf files, and would rather see that changed. It is therefore extremely unlikely that Okular will ever implement support for the current LibreOffice way of embedding documents. Any developer effort is much better spent making LibreOffice standard-compatible. I will therefore close this bug report. Thanks for your interest in Okular! |