Forum


Replies: 1   Views: 4818
Transformed pdf saved to db as a blob record rather than saving to server as file.
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by proftomato  · 05-06-2015 - 03:29

Regarding the following code, $docx->transformDocument('example_text.docx', 'example_text.pdf'); Is there a way to do something like below? $pdf_content = $docx->transformDocument('example_text.docx', 'example_text.pdf'); $object->save_to_db($pdf_content); Thanks.

Posted by admin  · 05-06-2015 - 06:41

Hello, Sorry but phpdocx doesn't integrate any ORM or PDO functions. We recommend you to generate the PDF and then use your own PHP code to insert it in your database. Regards.