Dominik
I agree that this is a very strange case, but it certainly does exist. I have
been looking at GetFilteredCopy exhaustively. It applies all filters as it uses
CreateFilterList on the image object. How can I remove the Flate decode filter,
but retain the DCT decode? The way I have 'something' working at the moment is
to use GetFilteredCopy but then I end up with the whole image as a 'flat file'
and I then need to start applying lots if rules to extract the image data to
make it possible to display it as a bitmap. Any guidance on this process will
also be appreciated. Need to use width, height, bitspersampe and possibly
colourspace info then to get the raster data.
Anton
From: Dominik Seichter [mailto:domseich...@googlemail.com]
Sent: 09 August 2016 18:34
To: Anton Heymann <anton.heym...@cad-essence.com>
Cc: podofo-users@lists.sourceforge.net
Subject: Re: [Podofo-users] PDF Rendering - Multiple Filters on a Image
Hi Anton,
It is a bit strange that they did apply the flate decode and the DCT filter.
Usually there is not much use in ZIP compressing a JPEG image ....
Well, to your question: In this case you would have to apply the flate decode
filter only (take a look on the implementation of PdfStream::GetFilteredCopy).
You do not have to apply the DCTDecode filter, as DCTDecode just means JPEG
compression. I.e. you can just store ther raw data of the stream as a file and
you will get a JPEG file. This is exactly what ImageExtractor is doing.
Best regards,
Dominik
On Tue, Aug 9, 2016 at 12:17 PM, Anton Heymann <anton.heym...@cad-essence.com
<mailto:anton.heym...@cad-essence.com> > wrote:
I need to import images from a PDF where the images have been encoded with
multiple filters. The images are all DCTEncoded (JPEG) I use
TVecFilters Filters = PdfFilterFactory::CreateFilterList(pRoot);
To get a list of the filters on this image object. How do I extract the actual
JPEG image, with the Filters set as follows
ePdfFilter_FlateDecode
ePdfFilter_DCTDecode
Have been studing ImageExtractor::ExtractImage but cannot see how this is
resolved.
Thanks
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net <mailto:Podofo-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/podofo-users
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users