This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Create menu item to run script from spreadsheet. | |
*/ | |
function onOpen() { | |
SpreadsheetApp.getUi() | |
.createMenu('Create Doc') | |
.addItem('Create Doc', 'getSpreadsheetData') | |
.addToUi(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
init by gas-hub, just delete this file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getNumPages() { | |
var blob = DocumentApp.getActiveDocument().getAs("application/pdf"); | |
var data = blob.getDataAsString(); | |
var pages = parseInt(data.match(/ \/N (\d+) /)[1], 10); | |
Logger.log("pages = " + pages); | |
return pages; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div class="trans">What?</div> |