Overview

Export Drawings Chrome Extension

This Chrome extension allows you to easily export drawings in a Google Doc as PDFs.

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.

Usage Instructions

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.

Screenshot

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.

Click the "Download" button to download the selected drawings.

Known Issues

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.

LICENSE

export-gdoc-drawings-crx is licensed under the 3-clause ("modified") BSD License.

Copyright (C) 2012 Darell Tan

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.