Hi, Just use PdfStream::GetFilteredCopy(). PoDoFo will apply all required filters and get you and uncompressed buffer.
Cheers,
Dominik
Am Mittwoch 15 September 2010 schrieb Marcelo Pita:
> Dominik,
>
> And for uncompressing FlateDecode?
>
> I have a PDF file with some objects defined with FlateDecode compression. I
> don't know if the filter is applied to particular objects inside PDF or the
> whole PDF.
>
> Thank you,
> Marcelo Pita
>
> On Wed, Sep 15, 2010 at 4:30 AM, Dominik Seichter <[email protected]>wrote:
> > Hi Emad,
> >
> > See, the call below to set the image data and apply a set of compression
> > filters at the same time:
> > PdfImage::SetImageData( unsigned int nWidth, unsigned int nHeight,
> > unsigned int nBitsPerComponent, PdfInputStream* pStream,
> > const TVecFilters & vecFilters );
> >
> > Just use a vecFilters like this to get FlateCompression:
> >
> > TVecFilters vecFlate;
> > vecFlate.push_back( ePdfFilter_FlateDecode );
> >
> > You can use a PdfMemoryInputStream to supply the image data from a byte
> > array
> > in memory.
> >
> > Cheers,
> > Dominik
> >
> > Am Mittwoch 15 September 2010 schrieb Emad Steitieh:
> > > Hi,
> > >
> > > Where can I find an example on how to store PdfImage data with Flate
> > > compression? I saw there is PdfMemStream::FlateCompress, but not sure
> >
> > when
> >
> > > or how to use it. Please give me an example. I am currently using
> > > PdfImage::SetImageDataRow to set the image data and I am being able to
> > > view it in the PDF but it is not compressed and the resulting PDF is
> > > large.
> > >
> > > Best Regards,
> > > Emad Steitieh
> >
> > -------------------------------------------------------------------------
> >--
> >
> > > --- Start uncovering the many advantages of virtual appliances
> > > and start using them to simplify application deployment and
> > > accelerate your shift to cloud computing.
> > > http://p.sf.net/sfu/novell-sfdev2dev
> > > _______________________________________________
> > > Podofo-users mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/podofo-users
> >
> > --
> > **********************************************************************
> > Dominik Seichter - [email protected]
> > KRename - http://www.krename.net - Powerful batch renamer for KDE
> > KBarcode - http://www.kbarcode.net - Barcode and label printing
> > PoDoFo - http://podofo.sf.net - PDF generation and parsing library
> > SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for
> > KDE Alan - http://alan.sf.net - A Turing Machine in Java
> > **********************************************************************
> >
> >
> > -------------------------------------------------------------------------
> >----- Start uncovering the many advantages of virtual appliances
> > and start using them to simplify application deployment and
> > accelerate your shift to cloud computing.
> > http://p.sf.net/sfu/novell-sfdev2dev
> > _______________________________________________
> > Podofo-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/podofo-users
>
--
**********************************************************************
Dominik Seichter - [email protected]
KRename - http://www.krename.net - Powerful batch renamer for KDE
KBarcode - http://www.kbarcode.net - Barcode and label printing
PoDoFo - http://podofo.sf.net - PDF generation and parsing library
SchafKopf - http://schafkopf.berlios.de - Schafkopf, a card game, for KDE
Alan - http://alan.sf.net - A Turing Machine in Java
**********************************************************************
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ Podofo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/podofo-users
