Node
png is the encoded file. The PNG and the PDF come from the same layout, so they agree.
Slides count from 0 here, as
LayoutPage.index does for a deck. The Word package counts pages from 1.One slide or one shape
getImageAsBase64 gives one slide or one shape as a base64 PNG, as in Office.js: