]> khamidou — GitHub mirrors - electron.git/commitdiff
Add A5 Page Size to printToPDF
authorBJR Matos <bjrmatos@gmail.com>
Tue, 15 Dec 2015 04:28:25 +0000 (23:28 -0500)
committerBJR Matos <bjrmatos@gmail.com>
Tue, 15 Dec 2015 04:28:25 +0000 (23:28 -0500)
atom/browser/api/lib/web-contents.coffee
docs/api/web-contents.md

index dacbc919d6652d37815e9520bc07131b30c9b96a..2eda00f0689d46035d0e649153bc602f019a5b39 100644 (file)
@@ -7,6 +7,11 @@ nextId = 0
 getNextId = -> ++nextId
 
 PDFPageSize =
+  A5:
+    custom_display_name: "A5"
+    height_microns: 210000
+    name: "ISO_A5"
+    width_microns: 148000
   A4:
     custom_display_name: "A4"
     height_microns: 297000
index c35bbc9ae33c2469f3b8ef9df92881278b1407ec..90ecda9168be8a0e2ce60956006806270cb17d8f 100644 (file)
@@ -454,6 +454,7 @@ size.
   * 1 - none
   * 2 - minimum
 * `pageSize` String - Specify page size of the generated PDF.
+  * `A5` 
   * `A4`
   * `A3`
   * `Legal`