Forum


Replies: 3   Views: 256
"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 admin  · 12-04-2019 - 18:54

Edited by admin · 12-04-2019 - 19:27

Hello,

You are right, this method:

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

should be:

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

to avoid that PHP notice. This method is only needed when adding extra classes to tags from external resources, so this missing parameter only affects when trying to overwrite the default classes, but the class displays the notices when trying to access it.

To remove the second notice, please add to the TransformDocAdvPDF class this new property:

/**
 *
 * @access protected
 * @var array
 */
protected $complexField = null;

before

/**
 *
 * @access protected
 * @var array
 */
protected $css = array();

Please update both classes with the previous changes. We have updated all phpdocx packages with these same changes.

Regards.