https://bugs.documentfoundation.org/show_bug.cgi?id=152661

--- Comment #9 from Tomaz Vajngerl <qui...@gmail.com> ---
Thinking a bit about it I don't think this is that hard to implement. We don't
really need to mess with the PDF structure - all we really need is to extract
all the images from the PDF (easily done with PDFium I think), make sure to
preserve the image name (various solutions) and reconstruct the ODF document
before reading in the filter, then normally open the document. 

When saving the hybrid PDF, we save the ODF normally, but just skip saving the
images.

There are some issues like making sure we don't re-compress the images when
saving them to PDF (disable that option with hybrid PDF) and that the images
are all compatible, if not we would duplicate them or something else. 

This probably wouldn't work for fonts as PDF subsets the fonts, and normally
the fonts also aren't included into ODF. For a max compatibility option we
could however embed the whole font into PDF and do a similar thing like with
images also for fonts.

I like this idea, because smaller the overhead of hybrid PDF the more likely it
is the user will use it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to