File size increases when converting an html file to adobe pdf using google apps script
问题 For some reason, when converting an HTML file to a PDF in Google Apps Script, the file size of the PDF ends up being way bigger than the original HTML file. The code I used to run the test is below: function convertHTMLtoPDF() { // convert a specific message with an attached HTML file to PDF, // and save it to the root directory of Google Drive var threads = GmailApp.search('subject:(Sample HTML)'); var message = threads[0].getMessages()[0]; var attachmentName = message.getAttachments()[0]