Skip to content

What unit is width and height from presLayout? #1216

Discussion options

You must be logged in to vote

Found the answer by checking the source. The unit is EMU (English Metric Units) and you can convert it to inches by dividing by 914400.

const EMU = 914400;
const inchWidth = presentation.presLayout.width / EMU;
console.log(inchWidth); // 10 (the default layout width in inches: https://gitbrent.github.io/PptxGenJS/docs/usage-pres-options/#standard-slide-layouts)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AndreasNasman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant