Show pdf in form

Questions and answers on developing, deploying and using plugins and JavaBeans

Show pdf in form

Postby pentamsi » Mon Dec 17, 2012 7:45 pm

Are any plugin, option, bean or something than you can use to show PDF in the form, like the images? i'm downlaod the servoyguy_pdf_pro and see the pdf_output but anything i see can use it. Any can help me, is this posible?
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Show pdf in form

Postby Adelo Herrero » Tue Dec 18, 2012 9:44 am

Hello:
I think there was an example with the jPedal library, but I not find it. Perhaps someone has and can upload it.

Greetings.
Adelo Herrero
Adelo Herrero
 
Posts: 103
Joined: Sat Jul 25, 2009 9:24 pm
Location: Requena (Valencia) España

Re: Show pdf in form

Postby bgrognet1355826661 » Tue Dec 18, 2012 12:44 pm

Alternative to Jpedal library
In a form you can use a ServoyBrowser Bean, for instance named zone_html
I check force native option
AllowDownload
in Properties

In your script you can display your pdf preview this way
elements.zone_html.navigateTo(mypath);
Attachments
sample.jpg
sample.jpg (25.31 KiB) Viewed 7694 times
bgrognet1355826661
 
Posts: 1
Joined: Tue Dec 18, 2012 12:31 pm

Re: Show pdf in form

Postby pentamsi » Tue Dec 18, 2012 2:39 pm

And where is this ServoyBrowser Bean?
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Show pdf in form

Postby ptalbot » Tue Dec 18, 2012 2:55 pm

It's part of the BrowserSuite, on ServoyForge of course :)
https://www.servoyforge.net/projects/browsersuite
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Show pdf in form

Postby pentamsi » Tue Dec 18, 2012 3:30 pm

And it's necesar to install all the files if I only want the browser?
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Show pdf in form

Postby ptalbot » Tue Dec 18, 2012 4:15 pm

I'm afraid so. The dependencies are big but all used (except for XulRunner which is optional but still needs to be installed in Developer/Server), XULRunner will not be downloaded by clients if you set the browsersuite.useXULRunner server plugin property to false.
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: Show pdf in form

Postby pentamsi » Wed Dec 19, 2012 7:13 pm

Okey, seems it work fine, but for other side, see that consume a lot of recurses.

And to work in web, how can i do?
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Show pdf in form

Postby mboegem » Thu Dec 20, 2012 2:05 pm

pentamsi wrote:And to work in web, how can i do?


Just use HTML in an element on your form.
be aware: you're dealing with the browser capabilities here...
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1758
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Show pdf in form

Postby pentamsi » Thu Dec 20, 2012 2:20 pm

and what element i need to put the pdf inside? embed?
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain

Re: Show pdf in form

Postby ROCLASI » Fri Dec 21, 2012 12:41 pm

Here is a (Servoy v5.2) module that shows some of the capabilities of the JPedal bean. Do note that this is Smart-client ONLY.
You can download the OpenSource version of the JPedal bean here.

mod_pdfviewer.servoy
(11.66 KiB) Downloaded 269 times

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Show pdf in form

Postby ProRM » Fri Dec 21, 2012 6:32 pm

Hi,

You can also try Google Viewer (https://docs.google.com/viewer) that works the same way as if you want to show a google documents in your Servoy form, using iframe inside an html area. It only works with weblcient.

Regards,
User avatar
ProRM
 
Posts: 107
Joined: Thu Sep 18, 2008 10:24 pm
Location: Uruguay

Re: Show pdf in form

Postby pentamsi » Thu Dec 27, 2012 12:14 pm

But with the Google Viewer only works the pdf alowwed in the web, and not in the server.
Image
User avatar
pentamsi
 
Posts: 335
Joined: Thu Nov 03, 2011 2:20 pm
Location: Barcelona, Spain


Return to Plugins and Beans

Who is online

Users browsing this forum: No registered users and 1 guest