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

--- Comment #27 from Tomaz Vajngerl <[email protected]> ---
 (In reply to Dave Gilbert from comment #25)
> Two thoughts about the use of trailers:
>   a) Without a trailer, I don't understand how a hybrid loader is supposed
> to understand that a PDF embedded file is actually a hybrid PDF rather than
> just a PDF that happens to have an attached; A PDF could have loads of
> embedded files and none of them actually represent the same contents as the
> PDF (e.g. maybe include raw data spreadsheets or something with an
> explanatory PDF).

Using a filename convention "Original.od*" and making sure it's a compatible
document. Or in PDF 2.0 - the embedded file that is  /AFRelationship is
/Source.   

>   b) caolanm's performance hack  - 'detectHasAdditionalStreams' from ~2023 -
> sniffs the trailer at the end of the file to make a quick detection about
> whether it might be a hybrid.  So if the use of the trailer disappears you
> lose that performance trick.

Well, that's unfortunate but reading the xref entry and checking the objects
for an embedded file is also fast and can spare you from loading the whole PDF.

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

Reply via email to