I am working on an add-on. Part of its functionality is that it needs to create a Slides Presentation that has custom width and height.
Through research, I have found that it isn't possible to create a new presentation through the SlidesApp or Advanced Slides API and that the only real way is to make a copy of a pre-made template.
Herein lies the problem. My add-on only has access to drive.file scope. I'm not asking the users to choose the template in a Picker as they don't have access to it at all. Currently the template is sitting on My Drive and is set to be accessible by anyone with the link.
I have also tried using Drive.Files.insert(resources,blob) but this creates a Google Doc version of my file instead of a Slides presentation, even when I indicated the mimeType: application/vnd.google-apps.presentation in the resource object.
My questions are therefore:
- Is there any way to use Drive.Files.copy to make a copy of a file that is accessible with the ID but hasn't been given express permission on that add-on?
- Is there a way to use Drive.Files.insert to take a blob of the file and create a Slides presentation?
- Is there a way to create a new Slides presentation with custom slide dimensions?
- Is there another way to solve my problem that I'm yet to think of.
Thanks in advance
Brett