Here comes XML.

You can use FO. Formating Objects.

Visit apache.org.

XML files can be displayed in PDF format.

Raj

>From: "Rowe, Kenneth" <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>        Servlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: PDF Manipulation
>Date: Mon, 14 May 2001 12:37:40 -0400
>
>Mark,
>
>Adobe has a class called the FDF tookit that you can use.
>
>You have to add it to the classpath.  They have a couple of examples on
>their web site.
>
>The command to set a value is:
>doc.SetValue("A157","NEW BRUNSWICK",false);
>
>The "A157" is a named field.
>"New Brunswick" is the value.
>false is a flag.
>
>// define
>import com.adobe.fdf.*;
>
>
>// initialize
>     private FDFTK THE_FDFTK;
>
>
>          public void init(ServletConfig config) throws ServletException{
>             super.init(config);
>
>        THE_FDFTK = new FDFTK();
>        THE_FDFTK.FDFTKInit();
>
>
>
>
>then you do something like this:
>
>    public void toPost (HttpServletRequest req, HttpServletResponse res)
>         throws ServletException, IOException {
>         try {
>         FDFDoc doc = new FDFDoc();
>         doc.SetFile("http://localhost/SF86Form.pdf";);
>         doc.SetValue("A157","NEW BRUNSWICK",false);
>
>
>         } catch (FDFException e) {
>           /*PrintWriter toClient = res.getWriter();
>      toClient.println("Caught FDF exception");
>           toClient.println(e.toString());
>           toClient.close();
>           */
>         }
>
>
>
>-----Orig
>inal Message-----
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Monday, May 14, 2001 11:22 AM
>To: [EMAIL PROTECTED]%internet
>Subject: PDF Manipulation
>
>
>Yeah, I back - in a way (in digest mode); the J2EE list sucks.  ;-)
>
>Anyway, I've got a problem that, from a thorough review of the ARCHIVES :-)
>I know has been addressed by Nic and others over the past couple of years,
>but none directly to my issue.
>
>I have one solution to a problem domain that requires Java to dynamically
>create PDFs from an online form.  In this particular case, these are legal
>forms displayed as a PDF template that an attorney fills out, and on
>submit/print the data is concurrently stored in a database and transformed
>into a PDF document for printing.  As part of this solution, a query to the
>database will also result in the dynamic creation of a PDF for
>display/print/modification.  I've seen no solution whatsoever that can
>dynamically manipulate PDFs (user input changing data), and specifically,
>no
>Java solution.  And, of course, my idea is a servlet or servlet group that
>would be doing this.
>
>It's hard for me to imagine that server-side dynamic manipulation of PDFs
>has not been an issue before, so somebody clue me in.  One of my colleagues
>says he thought he saw a free/shareware servlet that did this at jars.com,
>but I can't find it.
>
>Thanks, and cheers!
>Mark
>
>(yeah, I missed you, too, *sniff, snif*)
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>___________________________________________________________________________
>To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
>of the message "signoff SERVLET-INTEREST".
>
>Archives: http://archives.java.sun.com/archives/servlet-interest.html
>Resources: http://java.sun.com/products/servlet/external-resources.html
>LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to