Hi All,

Thanks for the nice module.
Sadly, I don't get the pdf's working. Although, they work, but kind of minimal.
Drupal 6.3
Printer friendly 6.x-1.0-rc5
PHP 4.4.7
tcpdf_4_0_016_php4

Anybody any thoughts? Attached is the output.

Thanks
Mark

Comments

splash112’s picture

uploading failed. File was 1.4mb.
It consists of a mostly blank page with 2 lines (1 in top and 1 in bottom). Node url, title and authoring information is displayed far left in the top. But very small...
Check for yourself:
http://www.wacon-int.com/drupal/project/boeringer-ingelheim-ag-cooling-t...

Thanks
Mark

jcnventura’s picture

Status: Active » Postponed (maintainer needs more info)

I checked your page.. One thing that came to mind is that you must be using some very large page size. Go to admin/settings/print/pdf and change the page size. That should fix the 'far left on top' problem.

As to the page contents.. I can't reproduce it in my test site. Can I ask you to try the 6.x-1.x-dev version? I did some changes there that may have fixed the problem..

splash112’s picture

Please excuse my stupidity ;-)
I indeed overlooked the 4A0 setting... Because I might probably not be the only one with dysfunctional problem solving logic, it might be an idea to make A4 default ;-). I also switched off pdf printing last night, probably when my brain really broke down. It should be working now, as I hope you can see. I updated the module to the latest dev version, but the output is still quite minimal.

Thanks for your fast response!

Best regards
Mark

jcnventura’s picture

Status: Postponed (maintainer needs more info) » Fixed

Hi,

Thanks for the help.

I have managed to track the problem. The short-term solution for you is one of the following:

1. Disable the send to printer option in the Web page settings
2. Patch with the fix at the bottom.

Regarding the A4, option... It has always been the default... You must have changed it by error somehow, maybe pressing 'Page Up' when the focus was in the select box..

Whenever a new dev version or the next rc version comes out, this will be fixed.

João

--- print.pdf.inc       30 Jul 2008 15:41:48 -0000      1.19
+++ print.pdf.inc       4 Aug 2008 10:42:32 -0000
@@ -130,7 +130,7 @@
   // add a page
   $pdf->AddPage();

-  preg_match('!<body>(.*)</body>!sim', $html, $matches);
+  preg_match('!<body.*?>(.*)</body>!sim', $html, $matches);
   $matches[1] = strstr($matches[1], '<div class="print-content">');

   $pdf->SetFont($font_name, 'B', $font_size * 1.3);
splash112’s picture

Thanks for all the help!

Indeed, I now moved on to the next error.
warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in....

Seems tcpdf needs that badly. Will check back when I openend allow_url_fopen with my hoster.

Thanks again.
Mark

Anonymous’s picture

Status: Fixed » Closed (fixed)

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