Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Pageless Google Document via Script?

Recently Google added this cool feature: Pageless Docs. I would like to activate it on all my documents.

However I cannot find the Property/Method to activate it. The code should be something like:

  var files = DriveApp.getFilesByType("application/vnd.google-apps.document");

  while (files.hasNext()) {
    var file = files.next();
    var doc = DocumentApp.openByUrl(file.getUrl());
    var body = doc.getBody();
    // set documet as Pageless ¿?
    doc.saveAndClose();
  }
}
like image 379
Jaime Oro Avatar asked Mar 05 '26 13:03

Jaime Oro


1 Answers

As other Google Documents features, like setting tab stops, setting the pageless mode programmatically to a Google Document it's not yet possible. Send a feature request though the Google Apps Script issue tracker and keep an eye to the Release Notes.

Related

  • Is it possible to get or set the position of tab-stops (left, center or right ones)?
like image 194
Rubén Avatar answered Mar 07 '26 11:03

Rubén



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!