watermarkRemove

watermarkRemove

ADVANCED / PREMIUM TRIAL

Removes watermarks from a Word document.

Description
public watermarkRemove (string $source, string $target)

This method allows you to remove all watermarks from a Word document.

Parameters

source

Path to the watermarked word document.

target

Path to the resulting unwatermarked document.

Exceptions

Error while trying to open the (base) template as a zip file.

Code samples

Example #1

The resulting Word document looks like:

Release notes
  • phpdocx 14.0:
    • return DOCXStructure.