Go Back   Velocity Reviews > Newsgroups > XML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

XML - re: pdf file

 
Thread Tools Search this Thread
Old 09-17-2006, 10:06 PM   #1
Default re: pdf file


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
  Reply With Quote
Old 09-18-2006, 03:16 AM   #2
Joe Kesselman
 
Posts: n/a
Default Re: pdf file

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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump