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
**********************************************************************

Attachment: 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

Reply via email to