JSON API - addTextBox

addTextBox

PREMIUM TRIAL / ADVANCED

Inserts a text box into the PowerPoint presentation.

Note

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

JSON data
Key Description
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.
autofit autofit (default), noautofit, shrink.
border
  • "cap" rnd, sq, flat.
  • "dash" solid, dot, dash, lgDash, dashDot, lgDashDot, lgDashDotDot, sysDash, sysDot, sysDashDot, sysDashDotDot.
  • "color" default as 000000.
  • "transparency" 0 to 100.
  • "width" EMUs (English Metric Unit). Default as 12700 (1pt).
columns
  • "number"
  • "spacing" EMUs (English Metric Unit).
descr Descr value.
fill
  • "color" FFFF00, CCCCCC...
  • "image" Image path, Base64 string, or URL.
  • "imageAsTexture" default as false
  • "transparency" 0 to 100.
margin
  • "bottom" EMUs (English Metric Unit)
  • "left" EMUs (English Metric Unit)
  • "right" EMUs (English Metric Unit)
  • "top" EMUs (English Metric Unit)
rotation 60.000ths of a degree.
textDirection horz, vert, vert270, wordArtVert, eaVert, mongolianVert, wordArtVertRtl.
verticalAlign top, middle, bottom, topCentered, middleCentered, bottomCentered.
wrap square, none.
Code samples

Example #1

Release notes
  • phppptx 5.0:
    • new action.