Thank for help
Angelo
Hi,I tried to save spreadsheet to PDF but PDF didn't kept the borders and margins. I use this script:
function create(){var folder = DriveApp.getFolderById('1LdgeKskgoznRqndIdgjAWYY6ppuYYx-x');var sourceSpreadsheet = SpreadsheetApp.getActive();var destSpreadsheet = SpreadsheetApp.open(DriveApp.getFileById(sourceSpreadsheet.getId()).makeCopy("tmp_convert_to_pdf", folder))var new_imo = destSpreadsheet.getBlob().getAs('application/pdf').setName('helloPDF');var newFile = folder.createFile(new_imo);DriveApp.getFileById(destSpreadsheet.getId()).setTrashed(true);}
Thank for help
Angelo
--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/d0a79fad-347b-403c-8019-e66b4edf1202%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CANA%3DMHvgG6HpizH4M1Dwvk--kv69m1vRP3ZPCdU8rpigxfw6kA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/CABTxurNoX0H50KM6JTxi_mrSzj2ywTRhbLy5q1fS%2B8YGtC%3DvAg%40mail.gmail.com.