Hi, how to convert Powerpoint to png with pointed slide not the first?
I use the rest api /cool/convert-to
to convert Powerpoint to png image, and I got the screenshot of the first slide, I can’t find the params to pass the slide I want
hii @hingbong
Unfortunately, as of now, the convert-to
API does not provide a built-in parameter to specify a particular slide. It converts only the first page/slide of the document. This limitation applies to all multi-page documents, including .pptx
, .odp
, and .pdf
Workaround (But will be deficult to implement )
Convert slide by slide using LOKit scripting (if you control the Collabora server)
If you have access to the Collabora Online backend or can modify behavior, you could:
- Open the
.pptx
with the LOKit API. - Navigate to a specific slide (e.g., with
.jumpToPage()
). - Export the current view to a PNG (but this requires a deeper integration and scripting, not the REST
/convert-to
).
Thanks
Darshan