JSON API - replaceVariableHtml

replaceVariableHtml

PREMIUM TRIAL / ADVANCED

Replaces placeholder variables with HTML.

Note

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

JSON data
Key Description
variables The names of the placeholder template variables as keys and the HTML and CSS that should replace them as values.
activeSlide If true, get only the active slide. Default as false.
forceNotTidy Default as false. If true, avoid using Tidy. Only recommended if Tidy can't be installed.
parseCSSVars If true parses CSS variables.
target
  • slides (default)
  • notesSlides
  • slideLayouts
  • slideMasters
type
  • block: (default) the variable, together with its containing paragraph, is replaced by the HTML content.
  • inline: only the variable is replaced by the inline HTML content.
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.