Put the
idocument.Open();
right after the
writer.PDFXConformance = PdfWriter.PDFA1B;
By the way, why are you using a StreamWriter? PDF is binary.
Final note: you are not subscribed, Nabble IS NOT the iText mailing list.
Paulo
On Mon, Jul 9, 2012 at 10:03 AM, Abedellatif Hussein
wrote:
> Hi
Hi, I am trying to generate an Image only pdf/a file using "iTextSharp v
5.3.0" from a jpg source.
the code works fine when using JAVA iText library. everything works fine
except when I try to embed the ICC color profile I get this exception
"Object reference not set to an instance of an object.