JSON API - addSvg

addSvg

PREMIUM TRIAL / ADVANCED

Inserts an SVG into the PowerPoint presentation.

Note

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

JSON data
Key Description
svg SVG path, or SVG content.
coordinateX EMUs (English Metric Unit).
coordinateY EMUs (English Metric Unit).
sizeX EMUs (English Metric Unit).
sizeY EMUs (English Metric Unit).
name Internal name. If not set, a random name is generated.
order Set the display order. Default after existing contents. 0 is the first order position. If the order position doesn't exist add after existing contents.
border
  • "dash" solid, dot, dash, lgDash, dashDot, lgDashDot, lgDashDotDot, sysDash, sysDot, sysDashDot, sysDashDotDot.
  • "color" default as 000000.
  • "width" EMUs (English Metric Unit). Default as 12700 (1pt).
descr Descr value.
rotation 60.000ths of a degree.
Code samples

Example #1

Release notes
  • phppptx 5.0:
    • new action.