Files changed (11)
+You can export all images (including drawings) and the Google Doc itself by selecting "File > Download as... > Web Page (.html, zipped)", which gives you a ZIP file containing a HTML document as well as the images, exported as PNG or JPEG, depending on the original image format. The images are numbered in the order of their appearance in the document, starting from 0, and will be named like `image00.png`. However, drawings in the Google Doc will be exported as PNGs to maximize compatibility with all web browsers, since the HTML document references those images.
+This extension allows you to easily export all those drawings in a vector format to replace those rasterized images.
+After you install this extension, an icon will appear in the omnibar when you are viewing a Google Doc. Clicking this icon will scan the document for both images and drawings, and display them in a popup.
+All the images will be named according to the naming scheme described earlier. The extension only allows drawings to be selected. If you need to download the other images, download the document as a zipped Web Page instead.
+Google Chrome will warn you that the files "can harm your computer". You will need to manually select "Keep" for all of the files. Since this is a browser security feature, there is no way to programmatically override it.
+Note that long documents are lazily loaded, meaning they will initially download and show only the first page of the document - the remaining pages have not yet been loaded. Due to this behaviour, the extension may not correctly detect all the images contained in the Google Doc. You should _slowly_ page through the document to trigger each page to be downloaded, then click on the extension icon again. If you do not do this, the images may be numbered out of sequence and may not correspond to the filenames in the exported ZIP file.
+Google Doc drawings, when exported as PDFs, will contain the entire drawing canvas including the empty space that is not occupied by the drawing. Google automatically removes this empty space when the drawings are displayed as PNG, whether in the online view or exported in the ZIP file. You will therefore have to manually remove this empty space.
+ "description": "Exports drawings on a Google Doc to PDF files. It behaves similar to when you use export a Google Doc as \"Web Page (zipped)\", but instead uses PDFs for drawings.",
+ <p style="color:gray">Hint: You may need to scroll all the way to the end of the Google Document to cause all images to be loaded</p>
+ return 'https://docs.google.com/drawings/d/' + id + '/export/' + format + '?id=' + id + '&pageid=p';
+ itemHtml += '<input type="checkbox" class="download" id="' + imgId + '" value="' + downloadUrl + '" ' + (disabled ? 'disabled="disabled"' : '') + '/>';