optimizeTemplate

optimizeTemplate

PREMIUM BASIC / ADVANCED

Process a DOCX to get the best performance when using the document as a template.

Description
public optimizeTemplate (string $source, string $dest, array $variables, string $templateSymbol)
Parameters

source

DOCX document to be optimized.

dest

Destination path of the optimized template.

variables

Array of variables to be optimized.

templateSymbol

The symbol used for identifying placeholder variables within templates.

Return values

Void.

Code samples

Example #1: