Need to have print /save to pdf feature on each page in Help

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
hranga81
Propeller Head
Posts: 35
Joined: Tue Mar 20, 2012 11:17 pm

Need to have print /save to pdf feature on each page in Help

Post by hranga81 »

Hi,

Is it possible to have Save as PDF functionality in each page or topic of the Web Help?

Please find the image attached for more clarity.
SaveAsPDFmadcapForum.png
If I need to have this functionality, where do I code for the same?

Thanks,
Harini
You do not have the required permissions to view the files attached to this post.
ChoccieMuffin
Senior Propellus Maximus
Posts: 2650
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Need to have print /save to pdf feature on each page in Help

Post by ChoccieMuffin »

Don't know about the PDF bit, but a user can print a page of the help file. However, when you do so the printout uses the PRINT medium rather than whatever medium you've used for the help.

I'll let people much more expert than me to answer the other one.
Started as a newbie with Flare 6.1, now using Flare 2024r2.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: Need to have print /save to pdf feature on each page in Help

Post by RamonS »

One option would be to generate PDFs for each topic and make that button a link to the applicable file. Aside from that, you'd either need some server side processing or do it client side using JavaScript. See here: https://github.com/MrRio/jsPDF
Thomas Tregner
Propeller Head
Posts: 56
Joined: Mon Apr 05, 2010 6:51 pm
Location: Charleston
Contact:

Re: Need to have print /save to pdf feature on each page in Help

Post by Thomas Tregner »

RamonS wrote:One option would be to generate PDFs for each topic and make that button a link to the applicable file. Aside from that, you'd either need some server side processing or do it client side using JavaScript. See here: https://github.com/MrRio/jsPDF
Interesting idea. If there are many topics, I think the trick would be to:
  • Programatically create a target for each topic in a TOC
  • Group those in a batch target or to programatically generate madbuild.exe commands for each single topic target
  • Programatically insert links to the PDF into each topic or use a script to generate the link based on the currently viewed topic
Is this a common requirement? Would a plug-in for this be useful?
RamonS
Senior Propellus Maximus
Posts: 4293
Joined: Thu Feb 02, 2006 9:29 am
Location: The Electric City

Re: Need to have print /save to pdf feature on each page in Help

Post by RamonS »

A plugin that does the conversion client side would be beneficial...otherwise you need to drag twice the amount of files around after a build. Although I'm not a fan of client side anything for performance reasons the impact in this case may be small enough to be irrelevant.
Thomas Tregner
Propeller Head
Posts: 56
Joined: Mon Apr 05, 2010 6:51 pm
Location: Charleston
Contact:

Re: Need to have print /save to pdf feature on each page in Help

Post by Thomas Tregner »

RamonS wrote:...otherwise you need to drag twice the amount of files around after a build.
I hear you there. I think there are pros and cons to approaches. I've seen this requirement more than once. But I'm personally satisfied with the print button.
Post Reply