Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

Is it possible to set an exact document size in Google Docs? I am specifically using Google Drawing.

I cannot find any options or ways to do this.

share|improve this question

2 Answers 2

up vote 1 down vote accepted

I don't see any direct way to do this but here's a suggestion for a hack that might work. Create an image that matches the output resolution you need; even simple image editors like ms paint will allow you to do this. Import this image to your drawing and align it with the top left corner of the drawing. Then click on the background and drag on the handle that shows up on the bottom right hand corner. After adjusting the size of the page to match the imported image, simply delete the image from the drawing.

If you're creating a drawing for print, include the dpi setting that will be used on the printer. For example, if you'll be making a print on an 8.5" x 11" sheet of paper at 300dpi, create an image that is (8.5 x 300)px x (11 x 300)px.

This can quickly become troublesome if you need output at multiple resolutions.

share|improve this answer
    
Thanks for the help. This is the conclusion I came to before posting here but was hoping for a better solution. I normally use Photoshop but I have a client who needs this is Google Drive format. Thanks for your help. –  Lynda May 26 '13 at 4:39

Size of Document

With the following stand-a-lone script you can retrieve the size of a non Google Document type (the rest is zero by size):

function doGet() {
  // create app and grid
  var app = UiApp.createApplication(); 
  var grid = app.createGrid(4,2);    

  // set labels for first column
  grid.setWidget(0, 0, app.createLabel("Add document key: ")
    .setStyleAttribute('fontWeight', 'bold'));
  grid.setWidget(2, 0, app.createLabel("Size: ")
    .setStyleAttribute('fontWeight', 'bold'));

  // set text boxes for second column
  grid.setWidget(0, 1, app.createTextBox().setId("key")
    .setName("key").setWidth(500));
  grid.setWidget(2, 1, app.createTextBox().setId("size")
    .setName("size").setWidth(500));

  // create button and handler
  grid.setWidget(3, 0, app.createButton("get size")
    .addClickHandler(app.createServerHandler("getSize")
    .addCallbackElement(grid)));

  // add grid to application and show app
  app.add(grid);
  return app;
}

function getSize(e) {
  // get active application and key
  var app = UiApp.getActiveApplication();
  var key = e.parameter.key;  

  // Get file and size
  var size;
  try {
    var file = DocsList.getFileById(key);
    size = file.getSize();
    size = (size/1024).toFixed(1) + " Kb";
  } catch(e) {
    size = "file not found";
  }

  // add path to application and update app
  app.getElementById("size").setValue(size);
  return app;
}

It looks like this

enter image description here

To install

  1. goto script.google.com, while logged in
  2. start a new script
  3. paste code and press the bug icon. Press authorize.
  4. under file>managed version save the script.
  5. goto Publish>Deploy as web app and press update
  6. the url presented (exec at the end) will allow you to run the stand-a-lone script.

Retrieve Key

Open the file (PDF) by right clicking the doc and select "Open With: Google Drive Viewer": enter image description here

Select the key of the document and add it to the app. Press "get size" and the size will appear.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.