User login

Adding third-party code to Agaric's core site repository: Print module's PDF functionality

Searched words: 
Printer-friendly pages Web page e-mail PDF Settings Portable Document Format file generation tool

At Administer › Site configuration › Printer-friendly pages, the PDF tab will tell you:

No PDF generation tool found! Please dowload a supported PHP PDF generation tool. Check this module's INSTALL.txt for more details.

5:15:53 PM Benjamin Melançon: one of the real benefits of the git "central" repository will be the handful of modules that need third-party software installed in them to function. Is there any special approach to this we should take (it's one of the reasons I liked the CVS approach, same as with Drupal, being able to CVS update the entire codebase and leave sites/all intact), or is it likely something we'll have to just re-do each time we update a module's code?
5:18:45 PM Stefan Freudenberg: Explain some more, please.
5:19:06 PM Benjamin Melançon: take the print module for instance
5:19:34 PM Benjamin Melançon: for printing to PDF support, you must:
5:19:39 PM Benjamin Melançon: 1. Download dompdf from http://sourceforge.net/projects/dompdf/
2. Extract the contents of the downloaded package into the print module
directory (usually sites/all/modules/print)
5:19:50 PM Benjamin Melançon: and a little configuration
5:20:27 PM Benjamin Melançon: that should go into the print module in drupal-6-agaric-core
5:20:50 PM Benjamin Melançon: so we do the extra installation required once (and upgrades once), and git takes care of it from there
5:21:04 PM Benjamin Melançon: TinyMCE and some other modules will have the same need
5:22:10 PM Benjamin Melançon: just checking if i should try anything special to allow drush updates without having to re-fetch the third party code-- but then such code should be checked for updates anyway
5:22:51 PM Benjamin Melançon: " 4. Grant write access to the lib/fonts directory to your webserver user." --- git/capistrano will pass those along, right?
5:23:11 PM Stefan Freudenberg: yes
5:24:02 PM Benjamin Melançon: also i'll want to make our first modifications to the ROBOTS.txt we keep there-- adding no-follow commands for /print urls
5:24:42 PM Benjamin Melançon: I guess maybe the issue here is we should document this somewhere, heh

Resolution

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Internal paths in single or double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or path. Paths to files in single or double quotes, written as "files:somefile.ext", for example, are replaced with the appropriate URL that can be used to download the file.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Syntax highlight code surrounded by the {syntaxhighlighter SPEC}...{/syntaxhighlighter} tags, where SPEC is a Syntaxhighlighter options string or "class="OPTIONS" title="the title".
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.