lib/LocalSite.cfg
, add this web's URL to {ExtensionsRepositories}
:
Foswiki.org=(http://foswiki.org/Extensions/,http://foswiki.org/pub/Extensions/);Local=(http://365847.689093.cn/Extensions/Archived/,http://365847.689093.cn/pub/Extensions/Archived/)
apt-get install gs-gpl gs-fonts php5-cli cabextracter
wget http://ftp.de.debian.org/debian/pool/contrib/m/msttcorefonts/ttf-mscorefonts-installer_2.7_all.deb dpkg -i ttf-mscorefonts-installer*.debNow set the values throught configure:
{Plugins}{ToPDFPlugin}{FontsPath} = /usr/share/fonts/type1/gsfonts/
{Plugins}{ToPDFPlugin}{TffFontsPath} = /usr/share/fonts/truetype/msttcorefonts
Option | Default | Description |
---|---|---|
DefaultEncoding | iso-8859-1 | normaly your Foswiki encoding |
BaseUrl | foswiki.org | what is the URL of the page. Important! Its needed to define what can be fetched locally and what is remote |
GhostscriptPath | /usr/bin/gs | path to Ghostscript |
FontsPath | /usr/share/fonts/default/ghostscript/ | path to your fonts reporsitory |
PrintTemplate | pattern | template to use for rendering the topic with, before creating the PDF |
RenderImages | 1 | render and show images |
RenderForms | 0 | render forms |
RenderLinks | 1 | render links and make them clickable |
PageWidth | 755 | width of the page, important if linebreaks should be exact |
MediaType | "A4" | Media format |
DateFormat | "d.m.y" | date format to use when filling in header/footer |
CreateTOC | 0 | Create TOC ( not the toc of Foswiki ) |
%TOPDFBUTTON%
which would be shown as %TOPDFBUTTON%
Option | Default | Description |
---|---|---|
web | current web | web, where the topic is located, which should get converted |
topic | current topic | topic to be converted |
label | how should the button be named |
Plugin Author: | Foswiki:Main.MayerEugen |
Copyright: | © 2009, Collaborganize www.collaborganize.com |
License: | GPL (GNU General Public License) |
Plugin Version: | 31 Jan 2009 (V1.6) |
Change History: | |
31 Jan 2009: | Added TOPDFBUTTONLINK which just returns the link. Mostly needed when skinning |
28 Jan 2009: | Fixed some path errors, updated deps docs and added a Debian howto |
24 Jan 2009: | MANIFEST fixed. Right now the pub/System/ToPDFPlugin/html2pdf/topdf.php needs to be customized for each install. |
07 Jan 2009: | * Fixed the Manifest which has skipping the pub/System/ToPDFPlugin folder * Added Macro for the button |
04 Dez 2008: | Fixed all bugs with Foswiki, also using restHandler now, instead of /bin/topdf. All data is fetched locally now. Working footer and header |
01 Dez 2008: | Ported to Foswiki and made for auto-build. Simplified configuration a lot and added new configuration abilities like template, renderForms, renderImages. Everything availble thorugh configure script now. Header and Footer are Foswiki-Topics now. Fixed some bugs with images and encoding. |
01 Jun 2008: | Initial version |
Foswiki Dependency: | |
CPAN Dependencies: | HTTP::Cookies::Find,Encode,Encode::Encoding,File::Basename,URI::Escape,HTML::TreeBuilder |
Other Dependencies: | htmltopdf(included in the package) |
Perl Version: | 5.005 |
Add-on Home: | http://foswiki.org/Extensions/ToPDFPlugin |
Feedback: | http://foswiki.org/Extensions/ToPDFPluginDev |
Appraisal: | http://foswiki.org/Extensions/ToPDFPluginAppraisal |
ExtensionClassification | Exporting, Printing and Publishing |
ExtensionType | PluginPackage |
Compatibility | |
ImageUrl | |
DemoUrl | http:// |
SupportUrl | ToPDFPlugin |
DevelopedInSVN | Yes |
ModificationPolicy | PleaseFeelFreeToModify |
I | Attachment | Action | Size | Date | Who | Comment |
---|---|---|---|---|---|---|
md5 | ToPDFPlugin.md5 | manage | 156 bytes | 02 Feb 2009 - 21:51 | EugenMayer | |
tgz | ToPDFPlugin.tgz | manage | 1003 K | 02 Feb 2009 - 21:49 | EugenMayer | |
zip | ToPDFPlugin.zip | manage | 1 MB | 02 Feb 2009 - 21:47 | EugenMayer | |
EXT | ToPDFPlugin_installer | manage | 55 K | 02 Feb 2009 - 21:50 | EugenMayer |