"Save to PDF" feature

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/4/2009 3:15:13 AM
Gravatar
Total Posts 18

"Save to PDF" feature

Hello,

I am developer of  http://www.web2pdfconvert.com service and would like to develop "Save web page to PDF" free add-on for mojoPortal.
Maybe someone could point me where to start?  SDF?

Regards,
Tomas

9/4/2009 6:03:56 AM
Gravatar
Total Posts 18439

Re: "Save to PDF" feature

Hi,

Your service is impressive, it does a pretty good job making the pdf from web pages.

I think the integration point would be at the layout.master file of a skin, this way its on every page of the site. How best to integrate it I'm not sure. I mean you could implement a webcontrol that inherits from <asp:Hyperlink and add your js to it, but then users would have to register the tag prefix to use your control in layout.master. I think the easiest is just instructions how to paste in either your javascript widget or a direct link like this into the layout.master file of a skin:

<a href="javascript:void(location.href='http://www.web2pdfconvert.com/?u='+escape(location.href))">Save As PDF</a>

I like this better than loading external js for your button. An img could be used in the link easy enough as well.

Best,

Joe

9/4/2009 6:45:19 AM
Gravatar
Total Posts 18

Re: "Save to PDF" feature

Joe, thank you for your suggestion. Now I am concern about what is the best place to introduce my service for mojoPortal users? Do you have any add-on web page where I could submit information?

9/4/2009 8:03:20 AM
Gravatar
Total Posts 18439

Re: "Save to PDF" feature

I have created a new page here for you to create a tutorial. I've added you to a role with edit permission on that article. You will need to sign out and then sign in again to get your new role, then you should see an edit link there and wil be able to edit the article.

Best,

Joe

9/4/2009 8:41:47 AM
Gravatar
Total Posts 18

Re: "Save to PDF" feature

Joe, that's great! I will write detailed documentation next week and post it.

9/8/2009 9:05:25 AM
Gravatar
Total Posts 4

Re: "Save to PDF" feature

Hi

I am new to mojo Portal, but have been testing it for a site that I am hoping to be building in the not too distant future.

One of the requirements for this site is an "on the fly pdf creation". What I am hoping for is that the user creates a new content including title and description. I then want them to be able to select from a list of templates (basically different header and footer with the placeholders for the title and description), which they then are able to create the pdf on the fly.

Is this how you see your module working?

thanks

Kevin

9/8/2009 9:50:33 AM
Gravatar
Total Posts 18

Re: "Save to PDF" feature

I am not sure that I have understood your requirement correctly. What our service do is convert web page to PDF. You can add JavaScript code  to mojoPortal or any other web page and web page visitor will be able to get copy of web page where JavaScript is embedded in PDF format by clicking on PDF button.
PDF button is loaded from our server with JavaScript, when user click on button, JavaScript pass web page URL to our converter and our conversion engine download web page and convert it to PDF. 

You can get "Save page as PDF" button JavaScript code from our web site at http://www.web2pdfconvert.com and put it into layout.master file. 

12/18/2009 3:39:44 PM
Gravatar
Total Posts 1

Re: "Save to PDF" feature

Dear Joe,

Can you please tell me in which layout.master page i should change? as you know there are lot of layout.master files in mojoportal i m new to mojoportal so please tell me in which layout.master file i should change.

Thanks please reply i m waiting for your response.

12/21/2009 9:33:10 AM
Gravatar
Total Posts 51

Re: "Save to PDF" feature

Hi there -

You have to modify the layout.master file in whichever skin you are using for your site.  Specifically, from the root you'll have to go into /data/Sites/1(or whichever installation you want to change)/skins/(*your_skin*)/layout.master

hope it helps, good luck!

You must sign in to post in the forums. This thread is closed to new posts.