Hi

now i have put the dll file on the write place. I have
written following codes in a servlet's doGet()

FDFDoc doc = new FDFDoc();
doc.SetFile("http://localhost/SF86Form.pdf";);
doc.SetValue("A157","NEW BRUNSWICK",false);


this is executing fine. pls tell me to how will i send
data of pdf file from a sevlet to client browser.

with regards

Sharad Mohan






--- "Lindsay, William (BIS)"
<[EMAIL PROTECTED]> wrote:
> Is the directory where the Windows Toolkit DLL is
> located defined in the PATH ?
>
> A good site for PDF FDF etc... is
> http://www.pdfzone.com
>
> Bill
>
> -----Original Message-----
> From: sharad mohan
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 19, 2001 5:53 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Display PDF thru Servelt.
>
>
> i was try do but there are following errors. pls
> tell
> me how to solve this.
>
> Internal Servlet Error:
>
> java.lang.UnsatisfiedLinkError: no jFdfTk in
> java.library.path
>         at
>
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
>         at
> java.lang.Runtime.loadLibrary0(Runtime.java:749)
>         at
> java.lang.System.loadLibrary(System.java:820)
>         at com.adobe.fdf.FDFTK.(FDFTK.java:10)
>         at MyAdobe.init(MyAdobe.java:15)
>         at
>
org.apache.tomcat.core.ServletWrapper.doInit(ServletWrapper.java:317)
>         at
>
org.apache.tomcat.core.Handler.init(Handler.java:215)
>         at
>
org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:296)
>         at
>
org.apache.tomcat.core.Handler.service(Handler.java:254)
>         at
>
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>         at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
>         at
>
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>         at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
>         at
>
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>         at
>
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>         at java.lang.Thread.run(Thread.java:484)
>
>
>
> and one more thing is after writing following lines
> how i will send this to client.
>
> FDFDoc doc = new FDFDoc();
> doc.SetFile("<http://localhost/SF86Form.pdf>");
> doc.SetValue("A157","NEW BRUNSWICK",false);
>
> Thanks
>
> Sharad
>
>
>
> --- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> > Adobe has a class called the FDF toolkit that you
> > can use  (Sun uses it for
> > the J2SE 1.3 and JSDK 2.3 documentation).
> >
> > 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();
> >   */
> > }
> >
> > (From an email from Kenneth Rowe)
> > Cheers!
> > Mark
> >
> >
> > ----- Original Message -----
> > From: "G S Sundar" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, June 15, 2001 1:36 AM
> > Subject: Display PDF thru Servelt.
> >
> >
> > > Hello All,
> > > How do i display the .PDF file using servlet.
> When
> > i click my "Show
> > Document"
> > > button it should display the specific .PDF in
> > browser. I didn't get any
> > result
> > > in servlet-interest archive. Even in google i
> > didn't get satisfactory
> > answer.
> > > Can some one please help in this regard.
> > >
> > > Thanx in Advance
> > > G S Sundaram
> > >
> > >
> >
>
___________________________________________________________________________
> > > 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
>
>
> __________________________________________________
> Do You Yahoo!?
> Spot the hottest trends in music, movies, and more.
> http://buzz.yahoo.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
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED]
> and
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.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