Replies: 1   Views: 3704
Pdf conversion abstract class error
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 caseman  · 22-07-2016 - 14:11


Basic namespace setup trying to convert docx > pdf:

$docx = new \Phpdocx\Create\CreateDocx();

$text = 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua.';


$transform = new \Phpdocx\Transform\TransformDocAdv();
$transform->transformDocument(WWW_ROOT.'test.docx', WWW_ROOT.'test.pdf');

I get the following error:
"Cannot instantiate abstract class Phpdocx\Transform\TransformDocAdv"

Please advise as I bought this product specifially for this purpose.

I get the same error when trying "/examples/FormatConversion/transformDocument/sample_2.php"

Thanks in advance :)