![]() |
|
|
|
#1 |
|
I use the iText library to create a pdf file. However, i have no idea how to
pass the pdf file, like jpg using baseEncoding64 in xml. Is it feasible? Thnaks timothy ma and constance lee |
|
|
|
|
#2 |
|
Posts: n/a
|
timothy ma and constance lee wrote:
> pass the pdf file, like jpg using baseEncoding64 in xml. Is it feasible? There are various proposals under development now for shipping binary data "alongside" XML data, for use in SOAP and similar protocols. But that's really a protocol-level idea rather than an XML idea. To pack a PDF file into an XML document you'd have to convert it into a form that's legal XML, such as base-64 encoding. Another alternative, of course, would be to ship something other than PDF and render it into PDF on the receiving end -- for example, transfer the data as XML, then run it through an XSLT stylesheet to get XSL-FO markup, and then running that through an FO renderer such as FOP which can generate PDFs. Whether that makes sense or not depends on what you're trying to accomplish. -- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail! | System architexture and kinetic poetry |
|