Okay..
but in this case the PDF is cascade filetered..!
so i think first we have to Decode to CCITTFaxDecode and result to
ASCII85Decode .!
and the result stream is used for me to generate the Image.!
So how to get the relavant filter stream from the array.??i did not
find any way.??
and BTW i am using the same GEtStreamBytes() mehtod.!
case "/CCITTFaxDecode":
byte[] raw =
PdfReader.GetStreamBytes((PRStream)obj);
thanks
Satish
On 8/26/2011 3:17 PM, Balder VC wrote:
On 26/08/2011 11:11, Satish Kumar Dundigal wrote:
*d.Get(PdfName.FILTER).ToString() :*
Your calling toString on an array. The the Filter entry in the
dictionary is an array.
As you can see from
/Filter [
/ASCII85Decode
/CCITTFaxDecode
]
You can't expect to get the filternames out of that. You need to get
them from the array.
But why don't you use
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfReader.html#getStreamBytes(com.itextpdf.text.pdf.PRStream)
?
It should be enough to get the bytes from the image if you now the
stream and should apply the filters for you.
Regards
--
------------------------------------------------------------------------
redlab-log <http://www.redlab.be/blog/>
@redlabbe <http://twitter.com/redlabbe>
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php
------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management
Up to 160% more powerful than alternatives and 25% more efficient.
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php