electron 43.3.0 → 43.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/checksums.json +75 -75
- package/electron.d.ts +116 -70
- package/package.json +1 -1
package/checksums.json
CHANGED
|
@@ -1,77 +1,77 @@
|
|
|
1
1
|
{
|
|
2
|
-
"chromedriver-v43.
|
|
3
|
-
"chromedriver-v43.
|
|
4
|
-
"chromedriver-v43.
|
|
5
|
-
"chromedriver-v43.
|
|
6
|
-
"chromedriver-v43.
|
|
7
|
-
"chromedriver-v43.
|
|
8
|
-
"chromedriver-v43.
|
|
9
|
-
"chromedriver-v43.
|
|
10
|
-
"chromedriver-v43.
|
|
11
|
-
"chromedriver-v43.
|
|
12
|
-
"electron-api.json": "
|
|
13
|
-
"electron-v43.
|
|
14
|
-
"electron-v43.
|
|
15
|
-
"electron-v43.
|
|
16
|
-
"electron-v43.
|
|
17
|
-
"electron-v43.
|
|
18
|
-
"electron-v43.
|
|
19
|
-
"electron-v43.
|
|
20
|
-
"electron-v43.
|
|
21
|
-
"electron-v43.
|
|
22
|
-
"electron-v43.
|
|
23
|
-
"electron-v43.
|
|
24
|
-
"electron-v43.
|
|
25
|
-
"electron-v43.
|
|
26
|
-
"electron-v43.
|
|
27
|
-
"electron-v43.
|
|
28
|
-
"electron-v43.
|
|
29
|
-
"electron-v43.
|
|
30
|
-
"electron-v43.
|
|
31
|
-
"electron-v43.
|
|
32
|
-
"electron-v43.
|
|
33
|
-
"electron-v43.
|
|
34
|
-
"electron-v43.
|
|
35
|
-
"electron-v43.
|
|
36
|
-
"electron-v43.
|
|
37
|
-
"electron-v43.
|
|
38
|
-
"electron-v43.
|
|
39
|
-
"electron-v43.
|
|
40
|
-
"electron-v43.
|
|
41
|
-
"electron-v43.
|
|
42
|
-
"electron-v43.
|
|
43
|
-
"electron-v43.
|
|
44
|
-
"electron-v43.
|
|
45
|
-
"electron-v43.
|
|
46
|
-
"electron-v43.
|
|
47
|
-
"electron-v43.
|
|
48
|
-
"electron-v43.
|
|
49
|
-
"electron-v43.
|
|
50
|
-
"electron.d.ts": "
|
|
51
|
-
"ffmpeg-v43.
|
|
52
|
-
"ffmpeg-v43.
|
|
53
|
-
"ffmpeg-v43.
|
|
54
|
-
"ffmpeg-v43.
|
|
55
|
-
"ffmpeg-v43.
|
|
56
|
-
"ffmpeg-v43.
|
|
57
|
-
"ffmpeg-v43.
|
|
58
|
-
"ffmpeg-v43.
|
|
59
|
-
"ffmpeg-v43.
|
|
60
|
-
"ffmpeg-v43.
|
|
61
|
-
"hunspell_dictionaries.zip": "
|
|
62
|
-
"libcxx-objects-v43.
|
|
63
|
-
"libcxx-objects-v43.
|
|
64
|
-
"libcxx-objects-v43.
|
|
65
|
-
"libcxx_headers.zip": "
|
|
66
|
-
"libcxxabi_headers.zip": "
|
|
67
|
-
"mksnapshot-v43.
|
|
68
|
-
"mksnapshot-v43.
|
|
69
|
-
"mksnapshot-v43.
|
|
70
|
-
"mksnapshot-v43.
|
|
71
|
-
"mksnapshot-v43.
|
|
72
|
-
"mksnapshot-v43.
|
|
73
|
-
"mksnapshot-v43.
|
|
74
|
-
"mksnapshot-v43.
|
|
75
|
-
"mksnapshot-v43.
|
|
76
|
-
"mksnapshot-v43.
|
|
2
|
+
"chromedriver-v43.4.0-darwin-arm64.zip": "ba96ddf981287ee98222b4acae3afe9d5460ff2492c62b96c09bd72b7f77d4a0",
|
|
3
|
+
"chromedriver-v43.4.0-darwin-x64.zip": "d80d2ed2c3554e2eaa6925b95dff9f6c5c9e1574f610c3c400257f93a8f961ff",
|
|
4
|
+
"chromedriver-v43.4.0-linux-arm64.zip": "bd2e5539a7b9213d910cf4724df07a6b9ba6cb9d1820afc51155ff94f021458c",
|
|
5
|
+
"chromedriver-v43.4.0-linux-armv7l.zip": "b90ec1026f7f3ac321e3c7b217d99d33d44168d4eed295962b353f5e58a16b31",
|
|
6
|
+
"chromedriver-v43.4.0-linux-x64.zip": "aa2baa30cde1062807c06a74a3f495c4f4a9b2b8946c1d3dadf2bfe2634662c8",
|
|
7
|
+
"chromedriver-v43.4.0-mas-arm64.zip": "14ce19ba3d941c4a658eb9915c5528a0470ff415d0545aa86b764642f40cb2d3",
|
|
8
|
+
"chromedriver-v43.4.0-mas-x64.zip": "44425d8c6f3941415dbba6b3368b2dde655a32b6e03259772343eeae03a2ad54",
|
|
9
|
+
"chromedriver-v43.4.0-win32-arm64.zip": "a81e83c7451a65510b8ccb2fe014e54888970fae7d52c9e527fa737d30d72a7b",
|
|
10
|
+
"chromedriver-v43.4.0-win32-ia32.zip": "25a7188bd5b6eb777b0eeb24d0545dc19af647b5eb3744303a09ae18dfe6db88",
|
|
11
|
+
"chromedriver-v43.4.0-win32-x64.zip": "1f8bcb62b5deb8ab2de74aaab87b46bc137e0e4b5cabd9c8143b96b921555830",
|
|
12
|
+
"electron-api.json": "fd26e5997ad10b7de2dfd7813b1e8a479c9e9ba625e2667a1c0666a1d06e66ef",
|
|
13
|
+
"electron-v43.4.0-darwin-arm64-dsym-snapshot.zip": "8539a1aed00504ca3045045585f69603258dd38da79d244886c336a5e0116cb6",
|
|
14
|
+
"electron-v43.4.0-darwin-arm64-dsym.tar.xz": "17e5b633228399ff2a19181c1cba8fbd1e7d4f71bff366bbc007927eaacce49b",
|
|
15
|
+
"electron-v43.4.0-darwin-arm64-symbols.zip": "60719e4df4030b63793e1aeee043ea9af370fc3782866a6c28a89cf305378f15",
|
|
16
|
+
"electron-v43.4.0-darwin-arm64.zip": "827f9f182566f46846377575b51c547b9926b111637313a373b6f717462aebac",
|
|
17
|
+
"electron-v43.4.0-darwin-x64-dsym-snapshot.zip": "3083bfd94b4579359472e46427587adbe3c93f36c33bb8dfdacf0f0ccffc009f",
|
|
18
|
+
"electron-v43.4.0-darwin-x64-dsym.tar.xz": "e7d11fa2741b020eb6ef3ecb4583be034bc05320a9b816786ab12972c915d75d",
|
|
19
|
+
"electron-v43.4.0-darwin-x64-symbols.zip": "1fb49d0d4ec93edb8bfa8d598d2747a2155356a903ffc22b86c6e85f77add1f3",
|
|
20
|
+
"electron-v43.4.0-darwin-x64.zip": "7ab39ec1b0bcf5463f2dc0040142fbc1c30cd7bc3f99086066f588c717b11e24",
|
|
21
|
+
"electron-v43.4.0-linux-arm64-debug.zip": "c4be122f21718fb5bbd9119db31a1bd16ee58b92e24e04c2d1800214563ef4e2",
|
|
22
|
+
"electron-v43.4.0-linux-arm64-symbols.zip": "40c945b1dc067c8ced6abb42efb225a26cb49316402a2c58f09e6783d75e4b17",
|
|
23
|
+
"electron-v43.4.0-linux-arm64.zip": "17021d48739857106a26dd95bf749f95b89ae924955c3c7e7ff5a3f06251ac14",
|
|
24
|
+
"electron-v43.4.0-linux-armv7l-debug.zip": "5461de4a5272a02c89b85cf4da1203e81b243e377352f8751a3bef1f711d236e",
|
|
25
|
+
"electron-v43.4.0-linux-armv7l-symbols.zip": "48dd6ef5345725b0a3e107ab4fc6feb7c42481eb2084e6e5c2d8f1eb6ccf51d3",
|
|
26
|
+
"electron-v43.4.0-linux-armv7l.zip": "8fd14c358e04c1720f13b2ae1fced79d9abac30287c7b4ac330f14ec041ed0f0",
|
|
27
|
+
"electron-v43.4.0-linux-x64-debug.zip": "3a74e777e5c2fca9fdcf15ee9b8443ece9bb38f51b2fb7e6dcc1c8f6b030c944",
|
|
28
|
+
"electron-v43.4.0-linux-x64-symbols.zip": "a7a24c204131101737b52752010d39b10330f74dd203d2646337a2458da7a7c6",
|
|
29
|
+
"electron-v43.4.0-linux-x64.zip": "7c5f7918bcae74a05a814543940eb28469c055edaa3cfcf41d0ff1787b314c52",
|
|
30
|
+
"electron-v43.4.0-mas-arm64-dsym-snapshot.zip": "dff710930c504ec3d4168da2e14504b5afb76a88adf1cf4a792b4a983cb112b0",
|
|
31
|
+
"electron-v43.4.0-mas-arm64-dsym.tar.xz": "2df045b39b5d44bfdaded0e413626eb5dda873cf9f29dc8f81b11edc6a604a74",
|
|
32
|
+
"electron-v43.4.0-mas-arm64-symbols.zip": "d45aba63bdf51f2216ab583a997e733d391c8ad86872bf4d83b3d9862b006c74",
|
|
33
|
+
"electron-v43.4.0-mas-arm64.zip": "8037c385407a2efc9b85b0d1b39121735571e0bc6a00eb44d29c1873fbe1a9d3",
|
|
34
|
+
"electron-v43.4.0-mas-x64-dsym-snapshot.zip": "a00b06a86333c9a9bcf74ae6d0caa52fe0791086e13df7470790fa018377e070",
|
|
35
|
+
"electron-v43.4.0-mas-x64-dsym.tar.xz": "8aca562763126d98db666b062c2507488a9a544d0b43c56e0292e8ccf4f53225",
|
|
36
|
+
"electron-v43.4.0-mas-x64-symbols.zip": "b3b30cbfe91f6661080f4cd0a67d3c5ac958b1dafb9b8d5318d2b3d5cf3469b8",
|
|
37
|
+
"electron-v43.4.0-mas-x64.zip": "a51158c5bb802cd441049fd733bfe803b6b5581f01dd83bbfb5cee07b45626c4",
|
|
38
|
+
"electron-v43.4.0-win32-arm64-pdb.zip": "3cb3258991ecba5b8c887716fabb330a2ab9fe388e0d5dbcd7948f38faf67b03",
|
|
39
|
+
"electron-v43.4.0-win32-arm64-symbols.zip": "19f53a29e220eb1ddf4a018d76b8f668d9d787c589f7b724bc49f8502cbdc671",
|
|
40
|
+
"electron-v43.4.0-win32-arm64-toolchain-profile.zip": "93e0253324919c9cd187a9864291f4452e4632747b8ecc1d9ec7e6d6afbf86e9",
|
|
41
|
+
"electron-v43.4.0-win32-arm64.zip": "cec4e502e5db33b432adcf1278072fb14b9edeb88403e0952e4b864bdf51b0ef",
|
|
42
|
+
"electron-v43.4.0-win32-ia32-pdb.zip": "4123a5fb3b564de903648915ddef685bd15a9c6daeaa6e82680dd8cbdd015890",
|
|
43
|
+
"electron-v43.4.0-win32-ia32-symbols.zip": "7909b9c8a0c4419f918280f9ad44a5f3c94355b0653d736716274d94e56c8a91",
|
|
44
|
+
"electron-v43.4.0-win32-ia32-toolchain-profile.zip": "93e0253324919c9cd187a9864291f4452e4632747b8ecc1d9ec7e6d6afbf86e9",
|
|
45
|
+
"electron-v43.4.0-win32-ia32.zip": "3a61c1eb57f78c41528701bb30d96dd06d6be68c14ba9e0d81d654cc8302508e",
|
|
46
|
+
"electron-v43.4.0-win32-x64-pdb.zip": "95da0eea30721af522b9139b72207f5c6061e7386555ff97076bdf37adce61db",
|
|
47
|
+
"electron-v43.4.0-win32-x64-symbols.zip": "f257210ffe132c8bb9e1c44f42dc58219b3813462a9192cc80eefc2719c689a8",
|
|
48
|
+
"electron-v43.4.0-win32-x64-toolchain-profile.zip": "93e0253324919c9cd187a9864291f4452e4632747b8ecc1d9ec7e6d6afbf86e9",
|
|
49
|
+
"electron-v43.4.0-win32-x64.zip": "ef0709cfa719739acce73de6f9b684304baf38c6454376638a70d34a7cecffe0",
|
|
50
|
+
"electron.d.ts": "4d3df2ffb4e7a17c87406c05006b376dfee44f43efbebdcbda2f4edca4933cbd",
|
|
51
|
+
"ffmpeg-v43.4.0-darwin-arm64.zip": "040baa8508ca1f19c4b4cd226d6f218f3f82c2e0d3fa68bbb7a574b1e91394ca",
|
|
52
|
+
"ffmpeg-v43.4.0-darwin-x64.zip": "56e3974865d2263159a26348bda5607a55e6165ba9db2f5d82ea45dd76b39452",
|
|
53
|
+
"ffmpeg-v43.4.0-linux-arm64.zip": "70f389e13a6c1b154861ccaa702198afa253057156bc81159accea0881799cb8",
|
|
54
|
+
"ffmpeg-v43.4.0-linux-armv7l.zip": "001847bd19549781850fd6f69941a54f92356ed26bca02892e9642637215668d",
|
|
55
|
+
"ffmpeg-v43.4.0-linux-x64.zip": "0be0a3ab9e3c08a71e6d989562118556c39b867bb821889cdfc0fb92d872e486",
|
|
56
|
+
"ffmpeg-v43.4.0-mas-arm64.zip": "a270ae596d2b62bc6da47320dd15abb88acaac995f8c7d35e07d848bdedab09e",
|
|
57
|
+
"ffmpeg-v43.4.0-mas-x64.zip": "c3124da87c76656ad04af92261c0e231fe05862dce9fdce9709a554ce87f4074",
|
|
58
|
+
"ffmpeg-v43.4.0-win32-arm64.zip": "baddcf2eea3f65089a04aee9b9b7186f2b7e8bb43c4ba7663bb00c2ba50a3533",
|
|
59
|
+
"ffmpeg-v43.4.0-win32-ia32.zip": "46bb8bb91419e1a0280240a70b6da97fde7d301f07888a37fddb6a9650b99fe9",
|
|
60
|
+
"ffmpeg-v43.4.0-win32-x64.zip": "eb12e776d9580688d99b83f54e2cebaa729b06f78dabe639df73f14a067ed9bf",
|
|
61
|
+
"hunspell_dictionaries.zip": "d03ef351bad81d4a8db0ec4d69b618cd17978a18e2674b4a920f29fe50167135",
|
|
62
|
+
"libcxx-objects-v43.4.0-linux-arm64.zip": "b2649f02378148c1bfe11410bfe24ebccb7e5193c60d4bad7954cef9fe3ee64b",
|
|
63
|
+
"libcxx-objects-v43.4.0-linux-armv7l.zip": "b8ad9133f5338e18c681eaba7406a479047f1b8c67341dac5b845cc7ecf4e542",
|
|
64
|
+
"libcxx-objects-v43.4.0-linux-x64.zip": "9037ce78ce5fc48b27ca140d263102d843e2dec9d88f665534ee6e197a1b8d9c",
|
|
65
|
+
"libcxx_headers.zip": "c7f95e48490b769221edee27ce9142bdb39266616fbbc2405a25734ddba5d49b",
|
|
66
|
+
"libcxxabi_headers.zip": "0cd1ca2c3de86f979a1379fc3e9f66f11165a433ef88ecd32cd3ae865ef39c12",
|
|
67
|
+
"mksnapshot-v43.4.0-darwin-arm64.zip": "c55a95e48187655d230bf01de7b0d0dce0f9a308818e078a9cedfd845e8a5449",
|
|
68
|
+
"mksnapshot-v43.4.0-darwin-x64.zip": "5699cd39f2250980ba0d2cb3b3fe00fff22e66bb9371810d5959385a8885e366",
|
|
69
|
+
"mksnapshot-v43.4.0-linux-arm64-x64.zip": "847d62dc67acd647b5fdf02b78ed36f02ed1507e1e8409daf0038ef5d78253ae",
|
|
70
|
+
"mksnapshot-v43.4.0-linux-armv7l-x64.zip": "69ec18deadfdd4e3dc6bed2594d6049905a3cc45f107c956478d45c1500db440",
|
|
71
|
+
"mksnapshot-v43.4.0-linux-x64.zip": "08e437a7d1ba338de9faba0e2fbff9cac9ac002f1d3d8b0a6d990038a90c8450",
|
|
72
|
+
"mksnapshot-v43.4.0-mas-arm64.zip": "574b7d36384ca89d09271805224f4729a3df9be0f014d9e3a8d82eec3907be37",
|
|
73
|
+
"mksnapshot-v43.4.0-mas-x64.zip": "26c3f5fc1baf83a7ce8090f0e838d68c7826d1ddbb1e818298fa94a486e8391d",
|
|
74
|
+
"mksnapshot-v43.4.0-win32-arm64-x64.zip": "2fabd7c4c2c896ebdedaea186d8dcabad5bf127e58ed2c7c14bc6065edb1e204",
|
|
75
|
+
"mksnapshot-v43.4.0-win32-ia32.zip": "6c1132e59f0f828188f66f2f824764ebd947b5f44d4f1415a834666e32d08a92",
|
|
76
|
+
"mksnapshot-v43.4.0-win32-x64.zip": "c3a941e93336a8237369216a988441fb8ef397521d728f839387db2ceb75c24c"
|
|
77
77
|
}
|
package/electron.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for Electron 43.
|
|
1
|
+
// Type definitions for Electron 43.4.0
|
|
2
2
|
// Project: http://electronjs.org/
|
|
3
3
|
// Definitions by: The Electron Team <https://github.com/electron/electron>
|
|
4
4
|
// Definitions: https://github.com/electron/typescript-definitions
|
|
@@ -11189,6 +11189,95 @@ declare namespace Electron {
|
|
|
11189
11189
|
options: Options;
|
|
11190
11190
|
}
|
|
11191
11191
|
|
|
11192
|
+
interface PrintToPDFMargins {
|
|
11193
|
+
|
|
11194
|
+
// Docs: https://electronjs.org/docs/api/structures/print-to-pdf-margins
|
|
11195
|
+
|
|
11196
|
+
/**
|
|
11197
|
+
* Bottom margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11198
|
+
*/
|
|
11199
|
+
bottom?: number;
|
|
11200
|
+
/**
|
|
11201
|
+
* Left margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11202
|
+
*/
|
|
11203
|
+
left?: number;
|
|
11204
|
+
/**
|
|
11205
|
+
* Right margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11206
|
+
*/
|
|
11207
|
+
right?: number;
|
|
11208
|
+
/**
|
|
11209
|
+
* Top margin in inches. Defaults to 1cm (~0.4 inches).
|
|
11210
|
+
*/
|
|
11211
|
+
top?: number;
|
|
11212
|
+
}
|
|
11213
|
+
|
|
11214
|
+
interface PrintToPDFOptions {
|
|
11215
|
+
|
|
11216
|
+
// Docs: https://electronjs.org/docs/api/structures/print-to-pdf-options
|
|
11217
|
+
|
|
11218
|
+
/**
|
|
11219
|
+
* Whether to display header and footer. Defaults to false.
|
|
11220
|
+
*/
|
|
11221
|
+
displayHeaderFooter?: boolean;
|
|
11222
|
+
/**
|
|
11223
|
+
* HTML template for the print footer. Should use the same format as the
|
|
11224
|
+
* `headerTemplate`.
|
|
11225
|
+
*/
|
|
11226
|
+
footerTemplate?: string;
|
|
11227
|
+
/**
|
|
11228
|
+
* Whether or not to generate a PDF document outline from content headers. Defaults
|
|
11229
|
+
* to false.
|
|
11230
|
+
*
|
|
11231
|
+
* @experimental
|
|
11232
|
+
*/
|
|
11233
|
+
generateDocumentOutline?: boolean;
|
|
11234
|
+
/**
|
|
11235
|
+
* Whether or not to generate a tagged (accessible) PDF. Defaults to false. As this
|
|
11236
|
+
* property is experimental, the generated PDF may not adhere fully to PDF/UA and
|
|
11237
|
+
* WCAG standards.
|
|
11238
|
+
*
|
|
11239
|
+
* @experimental
|
|
11240
|
+
*/
|
|
11241
|
+
generateTaggedPDF?: boolean;
|
|
11242
|
+
/**
|
|
11243
|
+
* HTML template for the print header. Should be valid HTML markup with following
|
|
11244
|
+
* classes used to inject printing values into them: `date` (formatted print date),
|
|
11245
|
+
* `title` (document title), `url` (document location), `pageNumber` (current page
|
|
11246
|
+
* number) and `totalPages` (total pages in the document). For example, `<span
|
|
11247
|
+
* class=title></span>` would generate span containing the title.
|
|
11248
|
+
*/
|
|
11249
|
+
headerTemplate?: string;
|
|
11250
|
+
/**
|
|
11251
|
+
* Paper orientation.`true` for landscape, `false` for portrait. Defaults to false.
|
|
11252
|
+
*/
|
|
11253
|
+
landscape?: boolean;
|
|
11254
|
+
margins?: PrintToPDFMargins;
|
|
11255
|
+
/**
|
|
11256
|
+
* Page ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which
|
|
11257
|
+
* means print all pages.
|
|
11258
|
+
*/
|
|
11259
|
+
pageRanges?: string;
|
|
11260
|
+
/**
|
|
11261
|
+
* Specify page size of the generated PDF. Can be `A0`, `A1`, `A2`, `A3`, `A4`,
|
|
11262
|
+
* `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
|
|
11263
|
+
* `height` and `width` in inches. Defaults to `Letter`.
|
|
11264
|
+
*/
|
|
11265
|
+
pageSize?: (('A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'Legal' | 'Letter' | 'Tabloid' | 'Ledger')) | (Size);
|
|
11266
|
+
/**
|
|
11267
|
+
* Whether or not to prefer page size as defined by css. Defaults to false, in
|
|
11268
|
+
* which case the content will be scaled to fit the paper size.
|
|
11269
|
+
*/
|
|
11270
|
+
preferCSSPageSize?: boolean;
|
|
11271
|
+
/**
|
|
11272
|
+
* Whether to print background graphics. Defaults to false.
|
|
11273
|
+
*/
|
|
11274
|
+
printBackground?: boolean;
|
|
11275
|
+
/**
|
|
11276
|
+
* Scale of the webpage rendering. Defaults to 1.
|
|
11277
|
+
*/
|
|
11278
|
+
scale?: number;
|
|
11279
|
+
}
|
|
11280
|
+
|
|
11192
11281
|
interface ProcessMemoryInfo {
|
|
11193
11282
|
|
|
11194
11283
|
// Docs: https://electronjs.org/docs/api/structures/process-memory-info
|
|
@@ -18934,6 +19023,22 @@ declare namespace Electron {
|
|
|
18934
19023
|
* For example:
|
|
18935
19024
|
*/
|
|
18936
19025
|
postMessage(channel: string, message: any, transfer?: MessagePortMain[]): void;
|
|
19026
|
+
/**
|
|
19027
|
+
* Resolves with the generated PDF data.
|
|
19028
|
+
*
|
|
19029
|
+
* Prints the frame's web page as PDF.
|
|
19030
|
+
*
|
|
19031
|
+
* Unlike `webContents.printToPDF`, this method prints only the contents of the
|
|
19032
|
+
* frame it is called on. This can be used to print an individual `<iframe>` from
|
|
19033
|
+
* the main process.
|
|
19034
|
+
*
|
|
19035
|
+
* The `landscape` will be ignored if `@page` CSS at-rule is used in the web page.
|
|
19036
|
+
*
|
|
19037
|
+
* An example of printing an iframe to PDF:
|
|
19038
|
+
*
|
|
19039
|
+
* See Page.printToPdf for more information.
|
|
19040
|
+
*/
|
|
19041
|
+
printToPDF(options: PrintToPDFOptions): Promise<Buffer>;
|
|
18937
19042
|
/**
|
|
18938
19043
|
* Whether the reload was initiated successfully. Only results in `false` when the
|
|
18939
19044
|
* frame has no history.
|
|
@@ -23093,70 +23198,6 @@ declare namespace Electron {
|
|
|
23093
23198
|
numSockets?: number;
|
|
23094
23199
|
}
|
|
23095
23200
|
|
|
23096
|
-
interface PrintToPDFOptions {
|
|
23097
|
-
/**
|
|
23098
|
-
* Paper orientation.`true` for landscape, `false` for portrait. Defaults to false.
|
|
23099
|
-
*/
|
|
23100
|
-
landscape?: boolean;
|
|
23101
|
-
/**
|
|
23102
|
-
* Whether to display header and footer. Defaults to false.
|
|
23103
|
-
*/
|
|
23104
|
-
displayHeaderFooter?: boolean;
|
|
23105
|
-
/**
|
|
23106
|
-
* Whether to print background graphics. Defaults to false.
|
|
23107
|
-
*/
|
|
23108
|
-
printBackground?: boolean;
|
|
23109
|
-
/**
|
|
23110
|
-
* Scale of the webpage rendering. Defaults to 1.
|
|
23111
|
-
*/
|
|
23112
|
-
scale?: number;
|
|
23113
|
-
/**
|
|
23114
|
-
* Specify page size of the generated PDF. Can be `A0`, `A1`, `A2`, `A3`, `A4`,
|
|
23115
|
-
* `A5`, `A6`, `Legal`, `Letter`, `Tabloid`, `Ledger`, or an Object containing
|
|
23116
|
-
* `height` and `width` in inches. Defaults to `Letter`.
|
|
23117
|
-
*/
|
|
23118
|
-
pageSize?: (('A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'Legal' | 'Letter' | 'Tabloid' | 'Ledger')) | (Size);
|
|
23119
|
-
margins?: Margins;
|
|
23120
|
-
/**
|
|
23121
|
-
* Page ranges to print, e.g., '1-5, 8, 11-13'. Defaults to the empty string, which
|
|
23122
|
-
* means print all pages.
|
|
23123
|
-
*/
|
|
23124
|
-
pageRanges?: string;
|
|
23125
|
-
/**
|
|
23126
|
-
* HTML template for the print header. Should be valid HTML markup with following
|
|
23127
|
-
* classes used to inject printing values into them: `date` (formatted print date),
|
|
23128
|
-
* `title` (document title), `url` (document location), `pageNumber` (current page
|
|
23129
|
-
* number) and `totalPages` (total pages in the document). For example, `<span
|
|
23130
|
-
* class=title></span>` would generate span containing the title.
|
|
23131
|
-
*/
|
|
23132
|
-
headerTemplate?: string;
|
|
23133
|
-
/**
|
|
23134
|
-
* HTML template for the print footer. Should use the same format as the
|
|
23135
|
-
* `headerTemplate`.
|
|
23136
|
-
*/
|
|
23137
|
-
footerTemplate?: string;
|
|
23138
|
-
/**
|
|
23139
|
-
* Whether or not to prefer page size as defined by css. Defaults to false, in
|
|
23140
|
-
* which case the content will be scaled to fit the paper size.
|
|
23141
|
-
*/
|
|
23142
|
-
preferCSSPageSize?: boolean;
|
|
23143
|
-
/**
|
|
23144
|
-
* Whether or not to generate a tagged (accessible) PDF. Defaults to false. As this
|
|
23145
|
-
* property is experimental, the generated PDF may not adhere fully to PDF/UA and
|
|
23146
|
-
* WCAG standards.
|
|
23147
|
-
*
|
|
23148
|
-
* @experimental
|
|
23149
|
-
*/
|
|
23150
|
-
generateTaggedPDF?: boolean;
|
|
23151
|
-
/**
|
|
23152
|
-
* Whether or not to generate a PDF document outline from content headers. Defaults
|
|
23153
|
-
* to false.
|
|
23154
|
-
*
|
|
23155
|
-
* @experimental
|
|
23156
|
-
*/
|
|
23157
|
-
generateDocumentOutline?: boolean;
|
|
23158
|
-
}
|
|
23159
|
-
|
|
23160
23201
|
interface Privileges {
|
|
23161
23202
|
/**
|
|
23162
23203
|
* Default false.
|
|
@@ -25099,7 +25140,6 @@ declare namespace Electron {
|
|
|
25099
25140
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25100
25141
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25101
25142
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25102
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25103
25143
|
type Privileges = Electron.Privileges;
|
|
25104
25144
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25105
25145
|
type Provider = Electron.Provider;
|
|
@@ -25242,6 +25282,8 @@ declare namespace Electron {
|
|
|
25242
25282
|
type PreloadScript = Electron.PreloadScript;
|
|
25243
25283
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25244
25284
|
type PrinterInfo = Electron.PrinterInfo;
|
|
25285
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
25286
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25245
25287
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25246
25288
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25247
25289
|
type Product = Electron.Product;
|
|
@@ -25507,7 +25549,6 @@ declare namespace Electron {
|
|
|
25507
25549
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25508
25550
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25509
25551
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25510
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25511
25552
|
type Privileges = Electron.Privileges;
|
|
25512
25553
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25513
25554
|
type Provider = Electron.Provider;
|
|
@@ -25650,6 +25691,8 @@ declare namespace Electron {
|
|
|
25650
25691
|
type PreloadScript = Electron.PreloadScript;
|
|
25651
25692
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25652
25693
|
type PrinterInfo = Electron.PrinterInfo;
|
|
25694
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
25695
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25653
25696
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25654
25697
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25655
25698
|
type Product = Electron.Product;
|
|
@@ -25842,7 +25885,6 @@ declare namespace Electron {
|
|
|
25842
25885
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
25843
25886
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
25844
25887
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
25845
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25846
25888
|
type Privileges = Electron.Privileges;
|
|
25847
25889
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
25848
25890
|
type Provider = Electron.Provider;
|
|
@@ -25985,6 +26027,8 @@ declare namespace Electron {
|
|
|
25985
26027
|
type PreloadScript = Electron.PreloadScript;
|
|
25986
26028
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
25987
26029
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26030
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26031
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
25988
26032
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
25989
26033
|
type ProcessMetric = Electron.ProcessMetric;
|
|
25990
26034
|
type Product = Electron.Product;
|
|
@@ -26176,7 +26220,6 @@ declare namespace Electron {
|
|
|
26176
26220
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
26177
26221
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
26178
26222
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26179
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26180
26223
|
type Privileges = Electron.Privileges;
|
|
26181
26224
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26182
26225
|
type Provider = Electron.Provider;
|
|
@@ -26319,6 +26362,8 @@ declare namespace Electron {
|
|
|
26319
26362
|
type PreloadScript = Electron.PreloadScript;
|
|
26320
26363
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
26321
26364
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26365
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26366
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26322
26367
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
26323
26368
|
type ProcessMetric = Electron.ProcessMetric;
|
|
26324
26369
|
type Product = Electron.Product;
|
|
@@ -26605,7 +26650,6 @@ declare namespace Electron {
|
|
|
26605
26650
|
type PowerMonitorSpeedLimitChangeEventParams = Electron.PowerMonitorSpeedLimitChangeEventParams;
|
|
26606
26651
|
type PowerMonitorThermalStateChangeEventParams = Electron.PowerMonitorThermalStateChangeEventParams;
|
|
26607
26652
|
type PreconnectOptions = Electron.PreconnectOptions;
|
|
26608
|
-
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26609
26653
|
type Privileges = Electron.Privileges;
|
|
26610
26654
|
type ProgressBarOptions = Electron.ProgressBarOptions;
|
|
26611
26655
|
type Provider = Electron.Provider;
|
|
@@ -26748,6 +26792,8 @@ declare namespace Electron {
|
|
|
26748
26792
|
type PreloadScript = Electron.PreloadScript;
|
|
26749
26793
|
type PreloadScriptRegistration = Electron.PreloadScriptRegistration;
|
|
26750
26794
|
type PrinterInfo = Electron.PrinterInfo;
|
|
26795
|
+
type PrintToPDFMargins = Electron.PrintToPDFMargins;
|
|
26796
|
+
type PrintToPDFOptions = Electron.PrintToPDFOptions;
|
|
26751
26797
|
type ProcessMemoryInfo = Electron.ProcessMemoryInfo;
|
|
26752
26798
|
type ProcessMetric = Electron.ProcessMetric;
|
|
26753
26799
|
type Product = Electron.Product;
|