JSON API - replaceVariablePptxFragment

replaceVariablePptxFragment

PREMIUM TRIAL / ADVANCED

Replaces placeholder variables with PptxFragment.

Note

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

JSON data
Key Description
variables The names of the placeholder template variables as keys and the PpptxFragments 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: replace only the variable
  • block: (default) remove 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.