I'm using TCPDF (tcpdf_1_53_0_TC023) and noticed that WriteHTML function is not defined anywhere, however tcpdf contains a writeHTML function. Pdfview.module contains two functions: theme_pdfview_node and theme_pdfview_html which calls the method WriteHTML respectively: $pdf->WriteHTML($image); and $pdf->WriteHTML($one);. I spoke with Nicola and he said his examples in TCPDF contain a typo and should be writeHTML and not WriteHTML. Don't know if it's related...

Thanks!

Comments

Egon Bianchet’s picture

Thanks. I've committed the changes, but I don't notice any change in the output ...

gowest’s picture

Yes I see the same thing. For me "no change in output" is what is in the title of this report (curious to know if that is what you see, no content but title, author, and publish date is pdf'ed). The function is seems to be working somewhat because I can call it from pdfview.module with full list parameters:

$pdf->writeHTML($one, $addnewline, $background);

Setting $background to 1 seems to affect the background for the title only.

Egon Bianchet’s picture

It works properly for me, with node title, author and content

gowest’s picture

Ok then great at least the method name was fixed and it still works for you. Just so happened that I noticed it for my problem, but was not related. Thanks for your speedy response! When I figure out why it is not working for us I'll put the information in the appropriate area since I don't know if it is a configuration issue, module conflict, or anything else. I'm not sure I'm supposed to closed this or not. Leave a note if I should...

Egon Bianchet’s picture

Are you using it with standard nodes (story, page, etc) or CCK? CCK is not yet supported

gowest’s picture

Bingo that's it then! Yes we are using CCK... Thanks that is very helpful...

Egon Bianchet’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of this issue: http://drupal.org/node/87650