Re: Call to undefined method Page_Frame_Decorator::add_line()

1,134 views
Skip to first unread message

BrianS

unread,
Jun 22, 2012, 1:34:26 PM6/22/12
to dom...@googlegroups.com
Do you have some sample code we can use for testing?

On Thursday, June 21, 2012 8:06:47 AM UTC-4, Hugh Messenger wrote:

Hi,

Using 0.6 beta 3, getting:

Fatal error: Call to undefined method Page_Frame_Decorator::add_line() in /xxxxx/dompdf/include/block_positioner.cls.php on line 32

Seems to exist in Block_Frame_Decorator, but not Page_Frame_Decorator.

   -- hugh

Hugh Messenger

unread,
Jun 22, 2012, 3:06:19 PM6/22/12
to dom...@googlegroups.com
That's kind of tough, as everything is wrapped up in a Joomla! extension (which I'm one of the authors of) using a button to render some of the page content via our own PDF controller / view / document model, that then hands the HTML directly to dompdf.  And it's one of my users having this issue, so I can't just debug locally and capture the buffer we send to dompdf.

I've "fixed" the problem for now, by just adding stubs for add_line() and get_current_line_box() to the page frame decorator:


I'll see if I can find a way to come up with the actual HTML that was breaking things.

   -- hugh

BrianS

unread,
Jun 22, 2012, 3:27:26 PM6/22/12
to dom...@googlegroups.com
In 0.6.0 you can call $dompdf->output_html() after you have loaded your HTML document to pull it back out again. If this is ok with your user then it would help debug the issue.
Reply all
Reply to author
Forward
0 new messages