PDF isn't a streamable read format – it is a random-access format, which 
requires that some set of objects be kept around in memory.  (the size and 
amount of the objects actually varies based on the age and quality of the PDF 
being read).

Leonard
(NOTE: you can stream WRITE a PDF, but not read)

From: Robert Webb <r...@spatial.net.au<mailto:r...@spatial.net.au>>
Date: Sunday, April 28, 2013 8:27 PM
To: 
"podofo-users@lists.sourceforge.net<mailto:podofo-users@lists.sourceforge.net>" 
<podofo-users@lists.sourceforge.net<mailto:podofo-users@lists.sourceforge.net>>
Subject: Re: [Podofo-users] PoDoFo allocating too much memory

Hi Enric,

Thanks for the reply.  I just wish PdfStreamedDocument could be used for 
reading too.  As it stands it looks like PoDoFo may not be able to do the job 
except for the smallest of PDF documents.

Is anyone aware of any other free C/C++ library for reading PDFs?  I can’t find 
one.

PoDoFo would have this section of the market cornered if they provided this 
ability.  I don’t want PoDoFo to allocate much memory while reading, I just 
want the data streamed through.  Then I can just worry about my own allocation.

Thanks,
Rob.

From: Enric Granda [mailto:enric.gra...@safelayer.com]
Sent: Wednesday, 24 April 2013 7:23 PM
To: 
podofo-users@lists.sourceforge.net<mailto:podofo-users@lists.sourceforge.net>
Subject: Re: [Podofo-users] PoDoFo allocating too much memory

Maybe the answer of Dominik to another question few days ago can also answer 
your question:
http://sourceforge.net/mailarchive/forum.php?thread_name=CAOEXkaxVmqzoQ0z38M3VfY72uWqOOYHe103M3smE9sa8Zx6Kqw%40mail.gmail.com&forum_name=podofo-users
The summary can be: "PoDoFo is oriented towards working with the object level 
structure of a PDF, it has to keep lots of stuff in memory"


Regards,
 Enric

"Robert Webb" <r...@spatial.net.au<mailto:r...@spatial.net.au>> wrote on 
24/04/2013 08:16:39:

> From: "Robert Webb" <r...@spatial.net.au<mailto:r...@spatial.net.au>>
> To: 
> <podofo-users@lists.sourceforge.net<mailto:podofo-users@lists.sourceforge.net>>,
> Date: 24/04/2013 08:50
> Subject: [Podofo-users] PoDoFo allocating too much memory
>
> Hi,
>
> I'm using PoDoFo to read a PDF, and it's crashing due to allocating too
> much memory.
> I know about PdfStreamedDocument, but it seems this is only for writing
> PDFs, not reading them.
> So we are forced to use PdfMemDocument.
>
> We are using 0.9.  I see 0.9.2 is out, but it requires OpenSSL and I
> haven't tried it yet.
> I can't see a list of what's changed because the ChangeLog file just
> says to look at the SVN log, which I can't find.
> Is 0.9.2 likely to be any better at allocating less space?  I'm guessing
> not.
>
> We are using this on mobile devices, via Marmalade (a cross-platform SDK
> for mobile devices), so memory is tight.
>
> Do you have any suggestions for stopping PoDoFo from allocating so much
> memory when reading?
>
> I couldn't find an alternative library for reading PDFs into our app.
> Most open source libraries are just focused on writing.
>
> Thanks,
> Rob.
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Podofo-users mailing list
> Podofo-users@lists.sourceforge.net<mailto:Podofo-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to