The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

11deki11 (1) [Avatar] Offline
Hey please help me.

try {

PdfWriter.GetInstance(document, new FileStream(@"D:TrenutnoJ2K.pdf", FileMode.Create));

Image j2k = Image.GetInstance(@"C: empa.j2k"); // Dont work
Image jpg = Image.GetInstance(@"C: emp1.jpg"); // Work


why this not work Image j2k = Image.GetInstance(@"C: empa.j2k");
blowagie (284) [Avatar] Offline
Re: How to create PDF file using J2K (iTextsharp) C#
1. This is not the place to ask questions anymore as explained in the top post of the forum:
2. JPEG 2000 is supported since October 5, 2007; maybe you're using an older version of iText(Sharp).

Note: the file with extension jpg is probably just JPEG, but j2k is a JPEG 2000 file.

Please post your question on the appropriate place including the image if this doesn't answer your question: