From: Bill Ensley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 29, 2005 10:17 AM
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