Pokud chcete, můžete požádat o jednotlivé strany ve spisu, prostě napište žádost v Google Doc, vložte místo čísla strany %%%, vytvořte skript (viz níže) a spusťte ho. Výsledkem bude 100 pdf žádosti o jednotlivé strany spisu.
function myFunction() {
for (i=1;i<=100;i++) {
// Copy active doc as a new temp doc, and save the Document's id
var copyId = DriveApp.getFileById(DocumentApp.getActiveDocument().getId())
.makeCopy('Zadost_o_str_'+i)
.getId();
// Open the temporary document
var copyDoc = DocumentApp.openById(copyId);
// Get the document's body section
var copyBody = copyDoc.getActiveSection();
// Replace place holder keys,in our google doc template
copyBody.replaceText('%%%', i);
// Save and close the temporary document
copyDoc.saveAndClose();
// Convert temporary document to PDF by using the getAs blob conversion
var pdf = DriveApp.getFileById(copyDoc.getId()).getAs("application/pdf");
// Store pdf
DriveApp.createFile(pdf).setName('Zadost_o_str_'+i+'.pdf');
// Attach PDF and send the email
// var subject = i;
// var body = i;
// MailApp.sendEmail(email_address, subject, body, {htmlBody: body, attachments: pdf});
// Delete temp file
DriveApp.getFileById(copyId).setTrashed(true);
}
}