I'm using Google App Scripts to manipulate some PDFs.
I have two PDFs and want to merge them into one - im trying to use Merge Multiple PDF's into one PDF
One of the PDFs is in version 1.4 and have the trailer.
The other is a PDF generated based on a gdoc and gets in version 1.5 and does not have trailer.
Code i use to generate PDF file:
var docblob = DriveApp.getFileById("fileID").getAs('application/pdf');
docblob.setName("TEST pdf");
var file = DriveApp.createFile(docblob);
var fileId = file.getId();
Script of Merge Multiple PDF's into one PDF is not dealing right with this last file because does not have trailer.
Does anyone have a solution to generate a pdf in 1.4 version using appscripts? Or other solution to merge pdf files on appscripts?