JSON API - replaceBlock

replaceBlock

PREMIUM TRIAL / ADVANCED

Replaces all content between two block variables from the Word document.

Note

You are reading the JSON API documentation. For the PHP API method please go to replaceBlock.

JSON data
Key Description
name The name of the block variable.
value New content: string or WordFragment.
type Replacement type: block (default) or inline.
Code samples

Example #1

A template can be a local file, a Base64 string, or a remote file.

Example #2

A template can be a local file, a Base64 string, or a remote file.

Release notes
  • phpdocx 18.0:
    • new action.