Jump to content


Submitter

SUPPORT TOPIC File Information

  • Submitted: Nov 17 2009 04:49 PM
  • Last Updated: Nov 29 2009 06:59 AM
  • File Size: 263.33K
  • Views: 1292
  • Downloads: 313

Previous Versions

  • 17 Nov 2009 Download PDF writer

Download PDF writer

- - - - -



/************
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.
There are 2 optional configurations:
  • $image [0] || [1] (Default 1) : A switch to show an icon or a text link to get the PDF.
  • $linkMessage = "Export to PDF";
In addition, there are many ways you can lay out the page - I will not be providing support for this - it's up to you.
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]






  • 248 Total Files
  • 19 Total Categories
  • 50 Total Authors
  • 131,653 Total Downloads
  • TripTracker Gallery Latest File
  • Dean Latest Submitter