Allow PDF/A as target for getFileAsync

Allow PDF/A as target for getFileAsync
17

Upvotes

Upvote

 Jul 20 2021
1 Comments (1 New)
New

The Office.context.document.getFileAsync-API already supports PDF export. Unfortunately, the file format is PDF 1.8 whereas we need a PDF/A compatible export. It is possible to specify PDF/A when saving the PDF manually through the "Options" dialog in the Office application. Unfortunately, there is no (documented) way to specify the type of PDF in the getFileAsync-API. It would be great, if the API is expanded so that PDF/A compatibility can be requested as well (either with a new file format flag or as an option in the optional GetFileOptions-object).

Comments
Senior Member

We also support this idea and we would love to extend the options to cover all the PDF export attributes: pages to include, properties, image quality, etc. Basically, extending the API with similar options as the old Saveas2 method in VBA, but for the JS API. This should include the export differences of PDF options for Word, Excel, and PowerPoint.

 

Thank you!

 

Word:

jaime_from_synergy_0-1650565069182.png

 

PowerPoint:

jaime_from_synergy_1-1650565119197.png

 

Excel:

jaime_from_synergy_2-1650565140542.png