Dear Sir,

I am using iTextSharp.dll (Ver 5.3.5) for rendering PDF Page in to image.
But I am facing an issue that pdf document contains the images of type JBIG2 
and when I read the pdf documents which returns the bytes

int xrefIdx = ((PRIndirectReference)obj).Number;
                PdfObject pdfObj = pdf.GetPdfObject(xrefIdx);
                PdfStream str = (PdfStream)(pdfObj);
                byte[] bytes = PdfReader.GetStreamBytesRaw((PRStream)str);


System.Drawing.Image img2 = System.Drawing.Image.FromStream(new 
MemoryStream(bytes));

And I am facing issue as parameter is in valid.

Please help in regard to this issue.

Vinod Chand Gaddam
AgreeYa Solutions
+91-9582366707  Cell
vinod.ch...@agreeya.com<mailto:vinod.ch...@agreeya.com>

[cid:image001.png@01CE604F.29A057A0]

B-38 C/2, Sector-57, Gautam Budh Nagar, Noida - 201 301
+91-120-4394444  Fax
www.agreeya.com<http://www.agreeya.com/>

[cid:image010.jpg@01CE6050.1AFAB050]<http://www.facebook.com/pages/AgreeYa-Solutions-Global/122624837779642>[cid:image012.jpg@01CE6050.1AFAB050]<http://www.linkedin.com/company/agreeya-solutions>[cid:image013.jpg@01CE6050.1AFAB050]<http://twitter.com/#!/agreeyaglobal>

Global Headquarters: 605 Coolidge Drive, Folsom, CA 95630, USA   **New**


<<inline: image001.png>>

<<inline: image010.jpg>>

<<inline: image011.jpg>>

<<inline: image012.jpg>>

<<inline: image013.jpg>>

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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

Reply via email to