JSON API - replaceVariableText

replaceVariableText

PREMIUM TRIAL / ADVANCED

Replaces placeholder variables with text.

Note

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

JSON data
Key Description
variables The names of the placeholder template variables as keys and the plain texts that should replace them as values.
activeSlide If true, get only the active slide. Default as false.
target
  • slides (default)
  • notesSlides
  • slideLayouts
  • slideMasters
type
  • inline: (default) replace only the variable.
  • block: replace the variable and its containing paragraph.
Code samples

Example #1

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

Release notes
  • phppptx 5.0:
    • new action.