Skip to main content

InsertPresentationFromUrl

Inserts slides from an external presentation referenced by URL into the current presentation.

note

This functionality is available in paid ONLYOFFICE Docs editions.

Syntax​

expression.InsertPresentationFromUrl(url, options, token);

expression - A variable that represents an Api class.

Parameters​

NameRequired/OptionalData typeDefaultDescription
urlRequiredstringThe URL of the source presentation (pptx).
optionsOptionalobjectInsertion options.
options.indexOptionalnumberThe 0-based position at which the new slides are inserted. Defaults to the end of the presentation.
options.slideStartOptionalnumber0The 0-based index of the first slide to insert from the source file.
options.slideEndOptionalnumber-1The 0-based index of the last slide to insert from the source file. -1 means the last slide.
options.keepSourceFormattingOptionalbooleanfalseWhether to keep the source formatting of the inserted slides.
tokenOptionalstringJWT signed with the Document Server inbox secret, authorizing the URL download. Required in deployments with browser-side JWT enabled.

Returns​

number