JS API to Save as PDF (Word, PowerPoint, Excel) similar to Document.SaveAs2

JS API to Save as PDF (Word, PowerPoint, Excel) similar to Document.SaveAs2
2

Upvotes

Upvote

 Jun 23 2021
2 Comments (2 New)
New

This would be very helpful. Thank you!

Comments
Senior Member

If I am not misunderstanding your request, that already exists in the getFileAsync-API: https://docs.microsoft.com/en-us/javascript/api/office/office.document?view=word-js-1.3#getFileAsync...

Regular Visitor

@lafepb that is correct, thank you. But getFileAsync-API does not include options. For example, when saving as a PDF I cannot select pages to include or the print quality which are available in VSTO addins.