Re: Show pdf
Hi, BenthamLEE. I wonder whether the PDF SDK you mentioned above allows PDF conversion process http://www.pqscan.com/convert-pdf/ . If so, I want to check its free trial package first. Thanks in advance. Best regards, Arron - Best Regards, Arron | Image Processing SDK | Next Tomorrow is Another Day. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Show-pdf-tp4403849p4671799.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Show pdf
Hi Javier, Check org.apache.wicket.util.resource.AbstractResourceStream org.apache.wicket.request.handler.resource.ResourceStreamRequestHandler Best regards, Michal Wegrzyn -Original Message- From: Javier Leyba [mailto:xle...@gmail.com] Sent: Monday, February 20, 2012 12:59 To: users@wicket.apache.org Subject: Show pdf Hi I did a page that will upload a file to a folder. Another application will convert the file to pdf and left it in a different folder where my web app will pick it up and show it. How can I show that pdf? I have checked many tutorials, even in wicket how-to, but all of them are using DynamicWebResource or some other classes that seems were deprecated on Wicket 1.5. Thanks in advance! Regards -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Show pdf
Hi, I think the easiest is to use ResourceLink or DownloadLink. Otherwise using ByteArrayResource should be almost the same as DynamicWebResource from 1.4. From: Javier Leyba xle...@gmail.com To: users@wicket.apache.org Sent: Monday, 20 February 2012, 12:59 Subject: Show pdf Hi I did a page that will upload a file to a folder. Another application will convert the file to pdf and left it in a different folder where my web app will pick it up and show it. How can I show that pdf? I have checked many tutorials, even in wicket how-to, but all of them are using DynamicWebResource or some other classes that seems were deprecated on Wicket 1.5. Thanks in advance! Regards -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Show pdf
Hi Thanks for your replies. However, I am totally new with Wicket and my development was done following examples and tutorials. I really have no idea how to implement the recommended classes. Could you please show some sample code or provide a link to samples? Regards J On Mon, Feb 20, 2012 at 1:25 PM, Martin Grigorov martingrigo...@yahoo.com wrote: Hi, I think the easiest is to use ResourceLink or DownloadLink. Otherwise using ByteArrayResource should be almost the same as DynamicWebResource from 1.4. From: Javier Leyba xle...@gmail.com To: users@wicket.apache.org Sent: Monday, 20 February 2012, 12:59 Subject: Show pdf Hi I did a page that will upload a file to a folder. Another application will convert the file to pdf and left it in a different folder where my web app will pick it up and show it. How can I show that pdf? I have checked many tutorials, even in wicket how-to, but all of them are using DynamicWebResource or some other classes that seems were deprecated on Wicket 1.5. Thanks in advance! Regards -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Show pdf
add(new DownloadLink(someId, the/path/to/the.pdf)); This is the simplest way. From: Javier Leyba xle...@gmail.com To: users@wicket.apache.org; Martin Grigorov martingrigo...@yahoo.com Sent: Monday, 20 February 2012, 13:38 Subject: Re: Show pdf Hi Thanks for your replies. However, I am totally new with Wicket and my development was done following examples and tutorials. I really have no idea how to implement the recommended classes. Could you please show some sample code or provide a link to samples? Regards J On Mon, Feb 20, 2012 at 1:25 PM, Martin Grigorov martingrigo...@yahoo.com wrote: Hi, I think the easiest is to use ResourceLink or DownloadLink. Otherwise using ByteArrayResource should be almost the same as DynamicWebResource from 1.4. From: Javier Leyba xle...@gmail.com To: users@wicket.apache.org Sent: Monday, 20 February 2012, 12:59 Subject: Show pdf Hi I did a page that will upload a file to a folder. Another application will convert the file to pdf and left it in a different folder where my web app will pick it up and show it. How can I show that pdf? I have checked many tutorials, even in wicket how-to, but all of them are using DynamicWebResource or some other classes that seems were deprecated on Wicket 1.5. Thanks in advance! Regards -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Show pdf
Hi Thanks, it worked!! However, how can I do it if after upload my file I want to show the pdf without force the user to click on link? Regards J On Mon, Feb 20, 2012 at 1:46 PM, Martin Grigorov martingrigo...@yahoo.com wrote: add(new DownloadLink(someId, the/path/to/the.pdf)); This is the simplest way. From: Javier Leyba xle...@gmail.com To: users@wicket.apache.org; Martin Grigorov martingrigo...@yahoo.com Sent: Monday, 20 February 2012, 13:38 Subject: Re: Show pdf Hi Thanks for your replies. However, I am totally new with Wicket and my development was done following examples and tutorials. I really have no idea how to implement the recommended classes. Could you please show some sample code or provide a link to samples? Regards J On Mon, Feb 20, 2012 at 1:25 PM, Martin Grigorov martingrigo...@yahoo.com wrote: Hi, I think the easiest is to use ResourceLink or DownloadLink. Otherwise using ByteArrayResource should be almost the same as DynamicWebResource from 1.4. From: Javier Leyba xle...@gmail.com To: users@wicket.apache.org Sent: Monday, 20 February 2012, 12:59 Subject: Show pdf Hi I did a page that will upload a file to a folder. Another application will convert the file to pdf and left it in a different folder where my web app will pick it up and show it. How can I show that pdf? I have checked many tutorials, even in wicket how-to, but all of them are using DynamicWebResource or some other classes that seems were deprecated on Wicket 1.5. Thanks in advance! Regards -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Show pdf
See DownloadLink does it: https://github.com/apache/wicket/blob/wicket-1.5.x/wicket-core/src/main/java/org/apache/wicket/markup/html/link/DownloadLink.java#L159 On Mon, Feb 20, 2012 at 2:46 PM, Javier Leyba xle...@gmail.com wrote: Hi Thanks, it worked!! However, how can I do it if after upload my file I want to show the pdf without force the user to click on link? Regards J On Mon, Feb 20, 2012 at 1:46 PM, Martin Grigorov martingrigo...@yahoo.com wrote: add(new DownloadLink(someId, the/path/to/the.pdf)); This is the simplest way. From: Javier Leyba xle...@gmail.com To: users@wicket.apache.org; Martin Grigorov martingrigo...@yahoo.com Sent: Monday, 20 February 2012, 13:38 Subject: Re: Show pdf Hi Thanks for your replies. However, I am totally new with Wicket and my development was done following examples and tutorials. I really have no idea how to implement the recommended classes. Could you please show some sample code or provide a link to samples? Regards J On Mon, Feb 20, 2012 at 1:25 PM, Martin Grigorov martingrigo...@yahoo.com wrote: Hi, I think the easiest is to use ResourceLink or DownloadLink. Otherwise using ByteArrayResource should be almost the same as DynamicWebResource from 1.4. From: Javier Leyba xle...@gmail.com To: users@wicket.apache.org Sent: Monday, 20 February 2012, 12:59 Subject: Show pdf Hi I did a page that will upload a file to a folder. Another application will convert the file to pdf and left it in a different folder where my web app will pick it up and show it. How can I show that pdf? I have checked many tutorials, even in wicket how-to, but all of them are using DynamicWebResource or some other classes that seems were deprecated on Wicket 1.5. Thanks in advance! Regards -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org