The Printer friendly module works fine on it's own. But, it doesn't seem to work in conjunction with IMCE 6.x-1.x-dev.
Whenever I try to create a PDF when module IMCE 6.x-1.x-dev is active, I get the following FATAL ERROR:

Fatal error: Uncaught exception 'DOMPDF_Internal_Exception' with message 'Frame not found in cellmap' in /home/13790/domains/goert.ca/html/drupal/sites/all/modules/print/dompdf-0.5.1/include/cellmap.cls.php:262 Stack trace: #0 /home/13790/domains/goert.ca/html/drupal/sites/all/modules/print/dompdf-0.5.1/include/table_row_group_frame_reflower.cls.php(78): Cellmap->get_frame_width(Object(Table_Row_Group_Frame_Decorator)) #1 /home/13790/domains/goert.ca/html/drupal/sites/all/modules/print/dompdf-0.5.1/include/frame_decorator.cls.php(387): Table_Row_Group_Frame_Reflower->reflow() #2 /home/13790/domains/goert.ca/html/drupal/sites/all/modules/print/dompdf-0.5.1/include/table_frame_reflower.cls.php(468): Frame_Decorator->reflow() #3 /home/13790/domains/goert.ca/html/drupal/sites/all/modules/print/dompdf-0.5.1/include/frame_decorator.cls.php(387): Table_Frame_Reflower->reflow() #4 /home/13790/domains/goert.ca/html/drupal/sites/all/modules/print/dompdf-0.5.1/include/block_frame_reflower.cls.php(408): Frame_Decorator->reflow() #5 / in /home/13790/domains/goert.ca/html/drupal/sites/all/modules/print/dompdf-0.5.1/include/cellmap.cls.php on line 262

I am running Drupal 6.1.

Comments

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

Strange..

It works perfectly fine for me.. I guess the problem is the page you are trying to create.. Is dompdf able to create a PDF version of that page when you disable IMCE?

I am not using tinymce or fckeditor, so I have tried a simple textarea integration of imce. The result is a simple img tag that is no different from any others.

João

willpower’s picture

Status: Postponed (maintainer needs more info) » Fixed

dompdf is able to create a pdf just fine when IMCE is disabled. The problem, I discovered, was in the file called "dompdf_config.inc.php" under the section called "Image DPI setting". I changed line 157 from "define("DOMPDF_DPI", "150");" to "define("DOMPDF_DPI", "300");" and it works fine now.

My images are higher than the 150 dpi. Since I want to print press-quality images, 300 dpi works best.

When ""dompdf_config.inc.php" is set to "define("DOMPDF_DPI", "150");", images on the page must be 150 dpi or lower. For instance, dompdf can create a pdf from a page containing a 72 dpi image, or 96 dpi, or 150dpi. But anything higher than 150 dpi crashes dompdf unless the dpi setting is changed manually like I did.

jcnventura’s picture

Title: Fatal error: Uncaught exception 'DOMPDF_Internal_Exception' » dompdf's default setting makes it crash with images over 150 dpi

So, in the end the problem is not about IMCE at all. Independently of IMCE, if one tries to create a PDF that contains images with more than DOMPDF_DPI, dompdf will crash. Or am I mistaken?

João

willpower’s picture

yes, "if one tries to create a PDF that contains images with more than DOMPDF_DPI, dompdf will crash".

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Kumar2020’s picture

Priority: Normal » Critical
Status: Closed (fixed) » Postponed (maintainer needs more info)

hi,

i am a new on working with dompdf. when i need to convert the an html file to pdf the images are getting blurred(main issue). and came to know abt some changing configuring settings like dompdf_dpi to more than 72(default) like define("DOMPDF_DPI", "150"); . im not getting any change.any one can please help me in this issue.. i need breif clarification about this
waiting for ur reply

Phani

jcnventura’s picture

Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (fixed)

Hi,

Please don't re-open unrelated issues. It annoys me and everyone else that's subscribed to the closed issue.
Open a new issue for this, and please provide a link to a page where I can see the problem, or I won't be able to help you.

Thanks,

João Ventura