Hi,

Is it possible to store pdf files created by pdffet on Google docs.
I'm creating a gae application which is integrated with google apps
for your domain(google docs, calendar, google mail, etc.) It will be
installed through google app market place. I want to write some
reports to google docs so user don't have to login to my system each
time they need a report and they can email, share etc. how they want
and they won't use my gae resources. Report will be created at some
point of the application by clicking a button which can't be pressed
anytime its something like end of a book, user clicks the end book
button and report is created. To edit the same book thet is ended
there are some other actions needed etc. so users can't press this
button anytime they want. It seems like creating a report and saving
to google docs of the users domain better for gae resource usage. I
came to a point where I couldn't find any articles or examples how
pdfjet on gae/j works and next step can the pdf generated be saved to
google docs. The file doesn't have to be PDF but I couldn't find any
examples on this issue, it can be a google docs format for example. I
need some tables and some graphs as most reports need.

I create a file using google data api;
DocumentListEntry newEntry = new PdfEntry();

Then I create a pdf from an outputstream, which I'm not sure if this
is correct but I read that its possible to create pdf files with
streams using pdfjet.
OutputStream os = new ByteArrayOutputStream();
PDF pdf = new PDF(os);

I enter the contents of the pdf which is about 100 lines which I
didn't write here, its an example from pdfjet webpage.

I then need to set the file to be uploaded; First argument of set file
accepts File which I can't able to figure out. Is it possible to
convert stream to a file and set here? Or maybe is there any other
solution.
newEntry.setFile(xxxxxx, "application/pdf");

Best regards and thanks.

-- 
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