[poppler] Loading documents from GInputStream?
Leonard Rosenthol
leonardr at pdfsages.com
Mon May 12 03:55:49 PDT 2008
Right - the first thing you would need to do is support the reading &
proper processing of the "linearization tables" (the "web optimized"
parts of the PDF) which enable dynamic downloading in conjunction
with byte-serving features of HTTP 1.1.
Leonard
On May 12, 2008, at 6:08 AM, Albert Astals Cid wrote:
> A Dilluns 12 Maig 2008, Tommi Komulainen va escriure:
>> Hi,
>>
>> I'm investigating the possibility of loading poppler documents with
>> GInputStream and I'm wondering if there's already someone working on
>> it or have some ideas how to proceed? Quickly looking at Stream.h it
>> would appear to me that poppler isn't prepared to load files from
>> actual no seeking streams but rather expects to have all content
>> available when starting. Please correct me if I'm wrong.
>>
>> I'm coming to this from browser perspective. The idea would be to
>> begin displaying the PDF content as soon as possible, without having
>> to wait for the whole document to download before displaying the
>> title
>> page.
>>
>> Another option I'm considering would be to direct poppler into
>> loading
>> a temporary, incomplete, file and knowing the expected size of the
>> file deal with temporary EOF intelligently.
>>
>> Thoughts?
>
> The XRef of the file is at the end so you need all the file to be
> able to
> process it.
>
> Then there are that "web optimized" PDF files that have multiple
> XRef that
> form independent parts inside the PDF file so you can load a part
> of it as
> soon as you find the first XRef, poppler does not any sort of
> intelligent
> algorithm to work with partially downloaded streams.
>
> I think it would be a nice addition to have just not sure what kind
> of api
> we'd need.
>
> Ideas?
>
> As far as i know nobody is working on that.
>
> Albert
>
>
>>
>>
>> - Tommi
>> _______________________________________________
>> poppler mailing list
>> poppler at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/poppler
>
>
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler
>
More information about the poppler
mailing list