CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • PDF doesnt handle graphic properly
Pages: [1]

Author Topic: PDF doesnt handle graphic properly  (Read 858 times)

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
PDF doesnt handle graphic properly
May 20, 2011, 03:09:29 am
The graphic I imported into my pdf template (gif or png) displays fine while editing the template, however when I create the pdf a large red cross is displayed on the page. It doesnt matter whether I change the img src to an absolute url. Am I forgetting something?

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: PDF doesnt handle graphic properly
May 20, 2011, 06:40:35 am
My problem looks identical to what other people experience with a print-module inside Drupal. It seems even solved, but how to apply this now to CiviCRM? See here: http://drupal.org/node/684678

TheoRichel

  • I post frequently
  • ***
  • Posts: 122
  • Karma: 0
  • CiviCRM version: 4.2.1
  • CMS version: Drupal 6.24
  • MySQL version: 5.9
  • PHP version: 5.3.16
Re: PDF doesnt handle graphic properly
May 23, 2011, 01:27:37 pm
I have solved this meanwhile with the help of this site: http://groups.google.com/group/dompdf

What it amounts to is that you have to defin a temp directory in dompdf.config.inc.php and that directory has needs the 777 permissions.
This is how my code in dompdf.config.in.php looks now:
* The directory specified must be writeable by the webserver process.
 * The temporary directory is required to download remote images and when
 * using the PFDLib back end.
 */
define("DOMPDF_TEMP_DIR", DOMPDF_DIR . "/tmp");

/**


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • PDF doesnt handle graphic properly

This forum was archived on 2017-11-26.