Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

PDFGeneration - Anyone tried it??

Go to End

26 Posts   12010 Views


Forum Moderator, 5523 Posts

19 August 2010 at 9:33pm

On the topic of PDF generation, during my GitHub lurking I found another PDF / SilverStripe implementation using Flying Saucer -

No idea on the state of that but another example to try out :)


Community Member, 17 Posts

27 August 2010 at 11:40am

Edited: 27/08/2010 11:56am

We had similar troubles doing html-to-pdf conversion. In the recent past we've has some success using LiveDocX. It's a Zend Framework package. It requires you to start with a Docx file as a template...

summary -
details -



Forum Moderator, 1899 Posts

29 September 2010 at 10:32pm

Hey Uncle Cheese - bumping this as it is rising in my todo list, any chance of the details of your, no doubt, excellent solution? :)

BLU42 Media

Community Member, 71 Posts

30 September 2010 at 3:51am

Edited: 30/09/2010 4:11am

I ran into the same snarly mess that Uncle Cheese did of renaming files and classes to work with ManifestBuilder.

I just uploaded my version to SS and I'm posting here too - hopefully it will help someone out!


Attached Files

Forum Moderator, 4102 Posts

30 September 2010 at 4:14am

OK, guys. I'll put this one on the frontburner for my next LeftAndMain tutorial. Thanks for your interest!

SilverStripe tips, tutorials, screencasts and more:


Community Member, 19 Posts

30 September 2010 at 7:04am

nice uncle cheese!


Community Member, 41 Posts

21 October 2010 at 11:03pm

Edited: 03/11/2010 5:25pm

Using the smartpdf module

	$pdf = new DOMPDF();
	$html = "<head></head><body><p>Hello World</p></body></html>";
	$pdf ->load_html($html);
	$pdf->set_paper("letter", "portrait");

I get this error :
Fatal error: Class 'Frame_Tree' not found in /var/www/vhosts/ on line 663

I've tested the DOMPDF package on my webserver as it's working fine, so I can't really see where I'm going wrong


Community Member, 14 Posts

11 December 2010 at 6:16am

I've tried It's simple and the result is quite good but the pdf won't include images :(

I wish to try also smartpdf but cannot understand how to make it work. Any help?