The thing to do is to insert the image as blob (as usual), and THEN get its dimensions, within the doc to calculate the ratio, and FINALLY set its dimensions.ĮDIT : this is an updated version of the above code, to also fix the height of the picture. Quite exact code : var inlineI = GDoc.appendImage(img) I've found a working solution in this frightening post (I am a newbie): Learn how to add pages to your document, add page numbers that automatically adjust as pages are added or deleted, and work with templates.I've tried the solution you gave, but no success, I always get a bizarre image ratio.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |