Open PDF toolbar button

This forum is for all Flare issues related to the HTML5, WebHelp, WebHelp Plus, and Adobe Air Targets
Post Reply
ksoltys
Propeller Head
Posts: 73
Joined: Mon Oct 20, 2008 5:38 pm

Open PDF toolbar button

Post by ksoltys »

In my current WebWorks Help projects, I have a toolbar button that the user can click to open a PDF version of the help. The developers like this because they don't have to add a separate Help menu item for the PDF.

I'd like to set this up in my WebHelp projects. How do I do it?
RickHenkel
Propeller Head
Posts: 22
Joined: Thu Jul 19, 2007 12:18 pm
Contact:

Re: Open PDF toolbar button

Post by RickHenkel »

I have a PDF button on my toolbar that has an OnClick value of "window.open('../Content/Resources/Scripts/PDFVersion.html','mywindow')."

That PDFVersion.html file then has an automatic re-direction to go to the PDF file.

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<title>PDF Version</title>
	<meta http-equiv="REFRESH" content="0;url=../../../../FileName.pdf">
   <style>
			p
			{
				font-family: Arial, sans-serif;
				font-size: 10pt;
				color: black;
			}
	</style>
</HEAD>
<BODY>
	<p>Please wait . . .</p>
</BODY>
</HTML>
ksoltys
Propeller Head
Posts: 73
Joined: Mon Oct 20, 2008 5:38 pm

Re: Open PDF toolbar button

Post by ksoltys »

Thanks, Rick! That looks straightforward enough.

Regards
Ketih
Post Reply