• MODX.com

    3,420 downloads

pdfBridge

pdfBridge is an extra by jeroenkenters, first released on 2011-03-31.

Package Description

pdfBridge is a MODX Revolution plugin that converts Resources to PDF files using TCPDF (http://www.tcpdf.org/).

Usage/Installation Instructions

*** INSTALLATION ***

You can install this package through Package Management.

After installation your elements tree should show a new chunk and plugin.

*** CONFIGURATION ***

After installation you need to add the following TV to you website template(s):

Name: createPDF

Caption: Create PDF?

Input type: Checkbox

Input option values: yes==1

*** USAGE ***

Go to a resource, check the "Create PDF?" TV checkbox and click save. A PDF file should be generated at /assets/components/pdfbridge/

To remove the PDF simply uncheck the checkbox and save again.

*** CHANGE PDF DESIGN ***

Check the 'pdfTpl' chunk if you want to change the looks of the PDF. You can use some basic CSS to change colors and link underline for example.

*** EXTRA FEATURES ***

To store the number op pages in a TV, just add a text TV to your website template.

After that add the following Property to the plugin (edit plugin -> Properties tab):

Name: pdfNumPagesTV

Value: Name of the TV you just created

You can also change the name of the "Create PDF" checkbox TV with the following plugin Property:

Name: pdfTV

Value: Name of the checkbox TV

If you want to use another chunk as PDF template, add the following plugin Property (or resource TV with the same name):

Name: pdfTpl

Value: Name of the chunk serving as PDF template

If you want to remove images from the resource content (because it will give problems when they float for example) set this plugin property:

Name: removeImages

Value: 1

Since version 0.2 all the TV's are available to your PDF template. Add this property if you want to process them as well:

Name: processTVs

Value: 1

Details

Developer(s)
jeroenkenters
Released
2011-03-31
First seen
2011-03-31
License
GPLv2
Supported databases
Minimum MODX Requirement
2.0

pdfBridge Releases

Vendor Signature Released on
MODX.com 0.2-alpha 2011-03-31 (13 years ago)