|
|
|
|||||
![]() |
On this page:
<!-- PDFSTART --> inserted here to avoid a blank page for the Foswiki TOC
GenPDFAddOnDemoChanged by WikiGuest on 01 Mar 2009 - 02:53 - r1
This is a sample document to show what can be achieved with the GenPDFAddOn Plugin. Here are some headings - note that <h1> level 1 headers always appear on a new page.
Level 1 HeadingLevel 2 HeadingLevel 3 HeadingLevel 4 HeadingLevel 5 HeadingLevel 6 HeadingFoswiki only goes this far![]() ![]()
FeaturesSome of the cool features are:
LimitationsThere are a few limitations, likeReally long lines of text in verbatim blocks will run off the edge of the page unless you break them. This is a limitation of htmldoc, not the plugin, so don't complain to me. There is nothing I can do about it but complain to the authors of htmldoc, which you could do anyway. Then again - how would you fix it?
Settings for this topicThis topic includes the following settings:
Title Topic<p> <br/> <br/> <br/></p> <img src="%PUBURL%/%WEB%/ProjectLogos/FoswikiRobot121x54a.gif" alt="Powered by Foswiki" width="121" height="54" align="left" /> <img src="%PUBURL%/%WEB%/ProjectLogos/FoswikiRobot81x119.gif" alt="Powered by Foswiki" width="81" height="119" align="right" /><br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <font size="7"><i>%GENPDFADDON_BANNER%</i></font><br/> <br/> <br/> <hr size="5" noshade> <font size="7">%WEB%.%GENPDFADDON_TITLE%</font><br/> <br/> <i>%FORMFIELD{"TopicHeadline" topic="%WEB%.%BASETOPIC%"}%</i><br/> <br/> <font size="3">%GENPDFADDON_SUBTITLE%</font> <hr noshade> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> <br/> | *DocumentClassification* | %FORMFIELD{"DocumentClassification" topic="%WEB%.%BASETOPIC%"}% | | *DocumentType* | %FORMFIELD{"DocumentType" topic="%WEB%.%BASETOPIC%"}% | <br/> <br/> <br/> Copyright © %DISPLAYTIME{"$year"}% Your Company<br/> All rights reserved This document contains Proprietary and Confidential information of Your Company, and is protected by copyright, trade secret and other state and federal laws. Its receipt or possession does not convey any rights to reproduce, disclose its contents, or to manufacture, use or sell anything it may describe. Reproduction, disclosure or use without specific written authorization of Your Company is strictly prohibited. <br/> Generated: %DISPLAYTIME%
Headers/Footers Topic<!-- HEADER LEFT "%BASETOPIC%" --> <!-- HEADER CENTER "%FORMFIELD{"DocumentClassification" topic="%WEB%.%BASETOPIC%"}%" --> <!-- HEADER RIGHT "© Your Company %WEB%" --> <!-- FOOTER LEFT "%REVINFO{"r1.$rev ­ $date ­ $wikiusername" web="%WEB%" topic="%BASETOPIC%"}%" --> <!-- FOOTER CENTER "" --> <!-- FOOTER RIGHT "$PAGE(1)" -->
Preferences* Foswiki.GenPDFAddOn Settings * Set GENPDFADDON_BANNER = Our Slogan %ORANGE%Rocks!!!%ENDCOLOR% * Set GENPDFADDON_TITLE = %BASETOPIC% * Set GENPDFADDON_SUBTITLE = %REVINFO{web="%WEB%" topic="%BASETOPIC%"}% * Set GENPDFADDON_TITLETOPIC = %SYSTEMWEB%.GenPDFExampleTitleTopic * Set GENPDFADDON_HEADERTOPIC = %SYSTEMWEB%.GenPDFExampleHeaderFooterTopic * Set GENPDFADDON_HEADFOOTFONT = helvetica-bold * Set GENPDFADDON_LOGOIMAGE = http://localhost/Foswiki/pub/Foswiki/ProjectLogos/FoswikiRobot46x50.gif * Set GENPDFADDON_FORMAT = pdf14 * Set GENPDFADDON_PERMISSIONS = print,no-copy * Set GENPDFADDON_ORIENTATION = portrait * Set GENPDFADDON_PAGESIZE = a4 * Set GENPDFADDON_SKIN = print.pattern * Set GENPDFADDON_TOCHEADER = l.. * Set GENPDFADDON_TOCFOOTER = ..i * Set GENPDFADDON_NUMBEREDTOC = True * Set GENPDFADDON_TOCLEVELS = 5 * Set GENPDFADDON_HEADERSHIFT = 0 * Set GENPDFADDON_MARGINS = top:20mm,left:80pt,right:1in,bottom:5cm * Set GENPDFADDON_WIDTH = 1060
Form fields% META:FORM{name="DocumentClassificationForm"}% % META:FIELD{name="DocumentClassification" title="DocumentClassification" value="CompanyConfidential"}% % META:FIELD{name="DocumentType" title="DocumentType" value="HowTo"}% % META:FIELD{name="TopicHeadline" title="TopicHeadline" value="A look at what the GenPDFAddOn plugin can do"}% % META:FIELD{name="KeyWords" title="KeyWords" value="PDF, plugin, acrobat"}% <!-- PDFSTOP --> inserted here to stop before the signature
-- WadeTurland? - 14 Jun 2005 Form definition 'DocumentClassificationForm' not found
Edit form
System.DocumentClassificationForm?
![]() |