Forum


Replies: 3   Views: 254
"native" word to pdf conversion (also word to html conversion)
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 bre-europe  · 12-04-2019 - 14:32

We use phpfocx v9 and would like to evaluate the possibilities of native PDF conversion (compared to one of the othe roptions).

The code

$docx = new TransformDocAdvNative();
$docx->transformDocument($source, $dest);

produces a lot of PHP notices, e.g.

Undefined property: Phpdocx\Transform\TransformDocAdvHTMLTCPDFPlugin::$extraClasses  ... TransformDocAdvHTMLPlugin.php, line 184
Undefined property: Phpdocx\Transform\TransformDocAdvPDF::$complexField ... TransformDocAdvPDF.php, line 2148

The first of above happens in TransformDocAdvHTMLPlugin.php, around line 184:

public function getExtraClass()
{
    return $this->extraClasses[$tag];
}

Our IDE says "Field extraClasses not found". Also I am wondering where $tag should come from, as it is not a function parameter.

Can you help?