Ability to generate PDF document from raw template
Components
Labels
None
Description
Context Information
None
Additional information (do not use)
None
Attachments
1
Activity
Show:

Dmitry Andrejev November 30, 2010 at 6:48 PM
Closing released 5.1.1 task.

Alex August 29, 2010 at 10:27 AM
Fix committed to [b]5.1.x branch/b. Commit Message:
Fixes #0000804: Ability to generate PDF document from raw template

Dmitry Andrejev July 31, 2010 at 12:06 AM
Reviewed and tested good. Please commit.

Alex July 23, 2010 at 12:43 PM
Code, used for testing.
$pdf_helper =& $this->Application->recallObject('PDFHelper');
/* @var $pdf_helper kPDFHelper */
$file_data = $pdf_helper->BuildFromTemplate('sample content here', Array (), true);
file_put_contents('/path/to/file.pdf', $file_data);
At the end you should get pdf with your content.
Fixed
Priority
Assignee

Reporter

Developer

Patch Instructions
Patches must be submitted through Phabricator.
To submit patch via Command Line use Patches Workflow (via Arcanist) tutorial.
To submit patch via Web Interface use Patches Workflow (via Web Interface) tutorial.
External issue ID
804
External issue URL
Fix versions
Affects versions
Created July 23, 2010 at 12:40 PM
Updated December 29, 2024 at 9:16 PM
Resolved November 30, 2010 at 6:48 PM
We have nice TCPDF library based class, that allow to convert template (*.tpl files) into PDF documents. It only lacks ability to generate PDF document from directly given html, without saving it as .tpl file before doing so.