Amazon products on Content Management Systems and PHP-MySQL

Wednesday, February 20, 2008

View Drupal page (or node) as pdf or download page as pdf module in drupal

Pdfview in Drupal is a module that generates simple PDF version of pages from Drupal nodes/pages. The nodes can contain images. It appears as a breadcrumb beside other items like email this page, printer-friendly version, etc., below each page, story, or node.

The 4.7 version supports UTF8 and relies on TCPDF. Older versions require FPDF from http://www.fpdf.org.

Steps:
1. Download pdfview module from drupal modules (http://drupal.org/project/pdfview), check corresponding version appropriate.

2. Extract (install) in site/modules directory... enable in administer > modules... apply necessary roles and permissions

3. Download another required third party extension, TCPDF (choose corresponding version for php of your webhost, either 4 or 5, currently)... extract this to site/modules/pdfview/ directory... rename to 'tcpdf'.

4. Double check with documentations for errors... useful thread here http://drupal.org/node/130779#comment-738033 ... using this thread post add the ff. to tcpdf/config/tcpdf_config.php:

5. That's it.. test it in your browser, enjoy!

Note: works fine for IE, however current Firefox version doesn't seem to support adobe features/add-ons... Please test with other browsers like Safari, Opera, etc. accordingly, thanks!

------------------------------------------
Drupal Group: http://groups.drupal.org/pdf

Tuesday, February 12, 2008

Printer friendly pages in drupal: customizing formatting options

To edit the fonts (fontsize, font style, etc) and other text properties (or html attributes and properties) of printable friendly page of drupal sites 4.7,

Go to:
- site/modules/print/
- open print.tpl.php
- edit accordingly

I thought editing site/misc/print.css is enough... can't seem to have it done the way i want it to be though... obviously, text font and other formatting should be done in print.tpl.php not (only in) print.css...

simply put... treat this php page with htm tags, attributes, etc. for the desired formatting of your printerfriendly drupal page.

------------------------------

Friday, February 8, 2008

"Make sure you have a working image toolkit installed and enabled" error in Drupal

Having installed image module for Drupal, I began having this error in admin pages:

"Make sure you have a working image toolkit installed and enabled"

it says "for more information see settings page"

Solution would be to enable the ImageMagick toolkit in the settings page (don't be surprised if this is not available in the drupal forum before):

Go to settings > image handling > enable imagemagick or gd2

afterwhich the image handling option will not be made available anymore (not viewable from the settings page)

See other suggestions here from the drupal forum
- http://drupal.org/node/60927

Drupal Products