[appengine-java] Re: PDF Files
Hi: You can't let GAE/J Blobstore API serve the blob for you. You have to read the blob content and serve by yourself. This approach reduces to normal/regular pdf file download which is trivial. On 7月19日, 下午10時36分, chrischelmi michelvo...@gmail.com wrote: You are right conor, i set the content to application/pdf and i cand display it. but my problem is that in some browsers and OS(Mac) ,the pdf is not displyed, the download starts automatically with a default name, i want to have control on the name given to the file before it is downloaded On Jul 18, 6:44 pm, Conor Power iamco...@gmail.com wrote: it doesn't sound like you need to generate the PDF using a library if it's stored as a blob ... can't you just set the content type to be application/pdf and stream the blog contents? your servlet just needs the key or some mapping to look up the blob. otherwise, i wrote a summary of my experiences with PDF generation a while ago: http://conorjpower.com/2010/01/11/pdf-generation-in-java/ C On Sun, Jul 18, 2010 at 5:12 AM, Khor Yong Hao fyh...@gmail.com wrote: Your Problem is not using iText to generate PDF content and download it, but is able to allow user upload their own PDF and providing download, right? On Thu, Jul 15, 2010 at 3:25 PM, dovm dovm...@gmail.com wrote: Hi, Check this one http://www.pdfjet.com/java/index.html They claim to support Google App Engine =Dov On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote: But it says that on Will it play in App Engine That its incompatible: iText Version(s): ? Status: INCOMPATIBLE * iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed athttp:// sourceforge.net/tracker/?func=detailatid=365255aid=2810312g On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: PDF Files
yes exatky On Jul 18, 1:12 pm, Khor Yong Hao fyh...@gmail.com wrote: Your Problem is not using iText to generate PDF content and download it, but is able to allow user upload their own PDF and providing download, right? On Thu, Jul 15, 2010 at 3:25 PM, dovm dovm...@gmail.com wrote: Hi, Check this one http://www.pdfjet.com/java/index.html They claim to support Google App Engine =Dov On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote: But it says that on Will it play in App Engine That its incompatible: iText Version(s): ? Status: INCOMPATIBLE * iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed athttp:// sourceforge.net/tracker/?func=detailatid=365255aid=2810312g On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: PDF Files
You are right conor, i set the content to application/pdf and i cand display it. but my problem is that in some browsers and OS(Mac) ,the pdf is not displyed, the download starts automatically with a default name, i want to have control on the name given to the file before it is downloaded On Jul 18, 6:44 pm, Conor Power iamco...@gmail.com wrote: it doesn't sound like you need to generate the PDF using a library if it's stored as a blob ... can't you just set the content type to be application/pdf and stream the blog contents? your servlet just needs the key or some mapping to look up the blob. otherwise, i wrote a summary of my experiences with PDF generation a while ago: http://conorjpower.com/2010/01/11/pdf-generation-in-java/ C On Sun, Jul 18, 2010 at 5:12 AM, Khor Yong Hao fyh...@gmail.com wrote: Your Problem is not using iText to generate PDF content and download it, but is able to allow user upload their own PDF and providing download, right? On Thu, Jul 15, 2010 at 3:25 PM, dovm dovm...@gmail.com wrote: Hi, Check this one http://www.pdfjet.com/java/index.html They claim to support Google App Engine =Dov On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote: But it says that on Will it play in App Engine That its incompatible: iText Version(s): ? Status: INCOMPATIBLE * iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed athttp:// sourceforge.net/tracker/?func=detailatid=365255aid=2810312g On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: PDF Files
Your Problem is not using iText to generate PDF content and download it, but is able to allow user upload their own PDF and providing download, right? On Thu, Jul 15, 2010 at 3:25 PM, dovm dovm...@gmail.com wrote: Hi, Check this one http://www.pdfjet.com/java/index.html They claim to support Google App Engine =Dov On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote: But it says that on Will it play in App Engine That its incompatible: iText Version(s): ? Status: INCOMPATIBLE * iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed athttp:// sourceforge.net/tracker/?func=detailatid=365255aid=2810312g On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: PDF Files
it doesn't sound like you need to generate the PDF using a library if it's stored as a blob ... can't you just set the content type to be application/pdf and stream the blog contents? your servlet just needs the key or some mapping to look up the blob. otherwise, i wrote a summary of my experiences with PDF generation a while ago: http://conorjpower.com/2010/01/11/pdf-generation-in-java/ C On Sun, Jul 18, 2010 at 5:12 AM, Khor Yong Hao fyh...@gmail.com wrote: Your Problem is not using iText to generate PDF content and download it, but is able to allow user upload their own PDF and providing download, right? On Thu, Jul 15, 2010 at 3:25 PM, dovm dovm...@gmail.com wrote: Hi, Check this one http://www.pdfjet.com/java/index.html They claim to support Google App Engine =Dov On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote: But it says that on Will it play in App Engine That its incompatible: iText Version(s): ? Status: INCOMPATIBLE * iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed athttp:// sourceforge.net/tracker/?func=detailatid=365255aid=2810312g On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: PDF Files
The patch seems to be incompatible with IText license, as you can read in comments at http://sourceforge.net/tracker/?func=detailaid=2810312group_id=15255atid=365255 PDFJet has both a free limited version and a paid one, which adds functions like tables formatting and pagination. I used the free version succesfully for simple tasks. It lacks complexity (like handling layout) but you can use the basic API to build such advanced features. Looks like IText can work on GAE also without the patch if you limit the functionalities you use. Such limitations make IText very similar to PDFJet with respect to API flexibility and level of abstraction, since advanced Itext features are the ones using AWT, so I decided to go directly with PDFJet for my project. Regards Lorenzo On Jul 15, 5:35 pm, Shyam Visamsetty shyamsunder...@gmail.com wrote: See this link for more details. http://blog.rubypdf.com/2009/12/17/how-to-run-itext-on-google-app-eng... May be we should update the Will it play on App Engine page. Thanks, Shyam Visamsetty On Jul 15, 12:25 am, dovm dovm...@gmail.com wrote: Hi, Check this onehttp://www.pdfjet.com/java/index.html They claim to support Google App Engine =Dov On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote: But it says that on Will it play in App Engine That its incompatible: iText Version(s): ? Status: INCOMPATIBLE * iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed athttp://sourceforge.net/tracker/?func=detailatid=365255aid=2810312g On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: PDF Files
Hi, Check this one http://www.pdfjet.com/java/index.html They claim to support Google App Engine =Dov On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote: But it says that on Will it play in App Engine That its incompatible: iText Version(s): ? Status: INCOMPATIBLE * iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed athttp://sourceforge.net/tracker/?func=detailatid=365255aid=2810312g On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: PDF Files
Yes, it says that iText does not work on AppEngine. But, it works for me. I was able to generate a pdf using that on AppEngine. PDFjet is good.. but i think it is not free. Thanks, Shyam. On Jul 15, 12:25 am, dovm dovm...@gmail.com wrote: Hi, Check this onehttp://www.pdfjet.com/java/index.html They claim to support Google App Engine =Dov On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote: But it says that on Will it play in App Engine That its incompatible: iText Version(s): ? Status: INCOMPATIBLE * iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed athttp://sourceforge.net/tracker/?func=detailatid=365255aid=2810312g On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: PDF Files
See this link for more details. http://blog.rubypdf.com/2009/12/17/how-to-run-itext-on-google-app-engine/ May be we should update the Will it play on App Engine page. Thanks, Shyam Visamsetty On Jul 15, 12:25 am, dovm dovm...@gmail.com wrote: Hi, Check this onehttp://www.pdfjet.com/java/index.html They claim to support Google App Engine =Dov On Jul 15, 7:57 am, Daniel vedm...@gmail.com wrote: But it says that on Will it play in App Engine That its incompatible: iText Version(s): ? Status: INCOMPATIBLE * iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed athttp://sourceforge.net/tracker/?func=detailatid=365255aid=2810312g On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: PDF Files
Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: PDF Files
But it says that on Will it play in App Engine That its incompatible: iText Version(s): ? Status: INCOMPATIBLE * iText relies on several classes not in the JRE class whitelist including java.awt.Color and java.nio.MappedByteBuffer. A bug has been filed at http://sourceforge.net/tracker/?func=detailatid=365255aid=2810312group_id=15255. On Jul 15, 7:51 am, Shyam Visamsetty shyamsunder...@gmail.com wrote: Chris, Did you want to generate a PDF File on the GAE? If yes, you can use the iText library for generating the pdfs on the app engine. You can have a servlet to download the PDF file you generated. Thanks, Shyam Visamsetty On Jul 14, 1:36 pm, chrischelmi michelvo...@gmail.com wrote: Helle every body, I am working on a Google App Engine Project that consists of uploading PDF files and displaying it after. I use a Blob to store the PDF file i want to do a process to download this PDF file by giving the a specifics name. Is there a way to generaye PDF files with GAE? i have a process to display the PDF but i want to download it direcly from an URL. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.