Hello

In App Engine, You can't write a file to the file system. Otherwise
the save method can't be used in GAE.
Use this code to send the pdf to the navigator :

pdf.wrap();

String fileName = "Example_03.pdf";

resp.setContentType("application/pdf");
resp.setHeader("Content-Disposition", "attachment; filename=\"" +
fileName + "\"");
ServletOutputStream outs = resp.getOutputStream();
pdf.getData().writeTo(outs);

Or to save to the datastore :
new Blob(pdf.getData().toByteArray());

Bests Regards

Patrice

On Apr 20, 4:18 am, jeno <[email protected]> wrote:
> Hi François ,
>
> Thanks for your help. I have used PDFjet (PDFJet.jar  version 2.72)
> PDF class missing save method
> So i cant call pdf.save("d.pdf") method.
>
> Cheers
> jeno
>
> On Apr 19, 6:48 pm, François Masurel <[email protected]> wrote:
>
>
>
>
>
> > Hi Jeno,
>
> > You can try the PDFjet Open Source Edition 
> > :http://pdfjet.com/os/edition.html
>
> > François
>
> > On 19 avr, 01:55, jeno <[email protected]> wrote:
>
> > > Hi Guys,
>
> > > Anyone know open source java  pdf engine for GAE.
>
> > > Thanks
> > > Jeno
>
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google App Engine for Java" group.
> > > To post to this group, send email to 
> > > [email protected].
> > > To unsubscribe from this group, send email to 
> > > [email protected].
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Google App Engine for Java" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to 
> > [email protected].
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine for Java" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/google-appengine-java?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to