Question then, Are you subclassing the iText parser with your own Handler?
 
If not, then you will need to to handle the special tags needed for an embedded image.
 
I will follow this up with some code.
 
-bill


From: Landon B. Chelf [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 01, 2005 5:55 AM
To: Bill Ensley
Subject: RE: [iText-questions] XML Image Base64

Bill,

 

Well I think we will try Hexadecimal for now so I would greatly appreciate your code that already handles that.

 

Sincerely,

Landon Chelf

IT Supervisor

Star Robbins & Company

 


From: Bill Ensley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 29, 2005 1:17 PM
To: Landon B. Chelf
Subject: RE: [iText-questions] XML Image Base64

 

You'll need to create your own parser that can convert the BASE64 back into java bytes or jpeg, or whatever format it is in.

 

I do this now and it works well.

 

I would forward on code, but I use hexedecimal instead of BASE64.  If you decide to make the switch, let me know and I

will post code.

 

-Bill Ensley

Bear Printing

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Landon B. Chelf
Sent: Tuesday, November 29, 2005 9:18 AM
To: [email protected]
Subject: [iText-questions] XML Image Base64

Hello,

 

I’m working with iTextdotNet and can understand the java versions of code so any examples I can probably get working in csharp just fine.  Now on to the problem.  I need to figure out how to use the <image/> tag in an xml file to store and properly insert a base64 encoded image so that I can store the image data in the xml template.  For example I have the following xml file:

 

<itext>

            <paragraph>My Example</paragraph>

            <image>BASE64 DATA HERE</image>

</itext>

 

I want to be able to use the PDFWriter to go straight from XML to PDF.  I can do all the normal functions but this has me stumped since have to include the image in the XML for this project.

 

Thanks in advance for any help.

 

Landon

Reply via email to