I am trying to merge different file sources into one Google doc, in a programmatic way. That means I should use Google scripting. So far I do not have problems inserting text files, images, MS Word or OpenOffice documents into one doc in Google drive. The problem arises when I want to join a PDF file. If I use Google Drive API for this task, the PDF file is converted into text and loses all the format or other elements that could be in the original file, producing an undesirable output. The goal would be to convert the PDF file into a series of pictures, one for every page. The problem is that as far as I know Google can't do this alone. I could use an external app for this purpose, like CloudConvert, but I do not know if it could integrate in my scripts to do the task automatically, so the questions are:
- Can anyone know if I could use an external app like CloudConvert or any other in my scripts in Google Docs?
- Or, Can anyone suggest another approach to solve the problem of merging a PDF in a Google doc automatically?
P.S. Everything has to be in Google because this is part of a series of procedures for a Google for Education site, involving Spreadsheets, Forms, and other type of documents, all of them in our site.