slide size for pptx

76 views
Skip to first unread message

Gojko Adzic

unread,
Nov 19, 2016, 12:03:31 PM11/19/16
to node.js officegen package
Hi,

sorry for a newbie question, but can't find anything on this in the examples or the doc on github. How would you set the size for the PPTx slides (eg 16/9 or 4/3)?

gojko

Peter Wang

unread,
Dec 8, 2016, 8:24:43 AM12/8/16
to node.js officegen package
I think as for now it only supports two sizes: 16/9 and 4/3, default is 4/3. In case you want to change to 16/9, you can do pptx.setWidescreen('wide').

Ziv Barber

unread,
Feb 12, 2017, 10:50:37 AM2/12/17
to node.js officegen package
You can do that on the last version 0.4.2 (available also in npm):

pptx.setSlideSize  ( cx, cy, sizeType )

cx, cy - in pixels.

sizeType:

        '35mm'
        'A3'
        'A4'
        'B4ISO'
        'B4JIS'
        'B5ISO'
        'B5JIS'
        'banner'
        'custom'
        'hagakiCard'
        'ledger'
        'letter'
        'overhead'
        'screen16x10'
        'screen16x9'
        'screen4x3'

Reply all
Reply to author
Forward
0 new messages