File Submitter: Cris D.
File Submitted: 18 Nov 2009
File Updated: 29 Nov 2009
File Category: 3rd Party Integration
/************
PDFWriter V1.0
Use: A snippet to export etomite pages as PDF
Cris D 2009-11-17
Etomite 1.1
based on the FreePDF class http://fpdf.com
*****/
Installation instructions:
- Unzip the contents of this zip archive.
- Create a folder called "pdf" in the root of your site.
- Upload the fpdf.php file to this folder.
- Upload the folders "images" and "font" to this site also.
- Now you should have:
siteroot > pdf > fpdf.php siteroot > pdf > images > logo.gif siteroot > pdf > images> pdficon.jpg siteroot > pdf > font > [contents of font folder]
The other files and folders in the fpdf16 are for reference only
and it contains many really good tutorials and samples of how to use it.
- Copy the contents of the pdfwriter.txt file and save it as a snippet in your etomite snippet library.
- Call the snippet in a page or in your site template.
- $image [0] || [1] (Default 1) : A switch to show an icon or a text link to get the PDF.
- $linkMessage = "Export to PDF";
There's enouogh help included in the tutorials and samples for you to work this out yourself.
Enjoy.
[updated snippet documentation to clarify the uploaded file structure]
Click here to download this file
Edited by Cris D., 29 November 2009 - 06:59 AM.












