Images not showing up on PDF created from HTML

You can download the image file using URLfetchApp and convert it into a base64 data string and create a page with that. The remaining procedure is same as previous function htmlToPDF() { var file = [] file[0]=”0BweO_SXcQGqgcEV3Mk9QYVRMczQ” file[1]=”0BweO_SXcQGqgVU93ZU56WkRkN3c” file[2]=”0BweO_SXcQGqgMkIxTlhKajk5MFk” var url = “https://drive.google.com/uc?export=view&id=” var img = UrlFetchApp.fetch(url+file[0]) file[0] = img.getBlob().getContentType()+’;base64,’+ Utilities.base64Encode(img.getBlob().getBytes()) var img = UrlFetchApp.fetch(url+file[1]) … Read more

ITextSharp HTML to PDF?

I came across the same question a few weeks ago and this is the result from what I found. This method does a quick dump of HTML to a PDF. The document will most likely need some format tweaking. private MemoryStream createPDF(string html) { MemoryStream msOutput = new MemoryStream(); TextReader reader = new StringReader(html); // … Read more