Commit Graph

123 Commits

Author SHA1 Message Date
Antonin Stefanutti
44d4141a9e Avoid printing empty browser messages 2023-12-23 16:02:19 +01:00
Antonin Stefanutti
c3cdbabd0a Fix exception in console.log handler 2023-11-04 18:00:20 +01:00
Antonin Stefanutti
df96abbe10 Do not remove identical image references 2023-11-04 17:05:17 +01:00
Antonin Stefanutti
8f2c9d9dd9 Fix font compression with missing OS/2 table 2023-06-23 12:50:38 +02:00
Antonin Stefanutti
4980bf6c78 Revert "Migrate to opentype.js"
This reverts commit ebbaa74e9f.
2023-06-23 09:04:22 +02:00
Antonin Stefanutti
95c5345653 Update usage help 2023-05-23 11:42:20 +02:00
David DeMoss
21a8d2687b
Feature http headers (#276)
Implement feature flag to pass headers to Puppeteer via "headers" option.

Also, add feature flag to set headless mode via "headless" option.

Update headless behavior to sync with puppeteer API change. See: https://developer.chrome.com/articles/new-headless/#new-headless-in-puppeteer
2023-05-22 18:40:03 +02:00
Antonin Stefanutti
479587aa61 Use new Chrome headless mode 2023-05-05 17:15:13 +02:00
Antonin Stefanutti
ebbaa74e9f Migrate to opentype.js 2023-05-05 16:53:16 +02:00
Antonin Stefanutti
fc465c4a50 Skip compression for ill-formed fonts 2023-05-05 15:51:21 +02:00
Antonin Stefanutti
8d102c9115
chore: pass options argument around 2022-12-09 18:26:37 +01:00
Antonin Stefanutti
7ba704f82b
chore: Remove chalk-template dependency 2022-12-09 18:03:21 +01:00
Antonin Stefanutti
2b715577dd
fix: replace undefined chalk.keyword method 2022-12-09 17:17:50 +01:00
Nico Jansen
056002fcdc feat(esm): migrate this package to a pure ESM
BREAKING CHANGE: Please run node 12.20 or higher
BREAKING CHANGE: This package is now a pure esm, please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)
2022-12-09 17:00:21 +01:00
Alecia Vogel
3114e7ef32 Add timeout to pdf buffering for slide 2022-11-29 09:00:37 +01:00
Kurt Moeller
8d581f4596 make two url loading timeouts options 2022-08-19 12:15:52 +02:00
Antonin Stefanutti
2c9d4ea98d
Use two-steps duplicated entries consolidation 2022-03-09 19:21:15 +01:00
Antonin Stefanutti
c4914a4cbe
Handle fonts with no metadata 2021-11-28 18:11:25 +01:00
Antonin Stefanutti
28507d454b
Add missing await 2021-11-28 18:08:26 +01:00
copart
2e788961f7 Added command line arguments to add author, subject, and title pdf meta data. 2021-09-30 09:04:40 +02:00
Eric Briand
de3d37dfbb Add the recursive option to mkdir 2020-08-11 22:27:38 +02:00
Eric Briand
ccad86a625 Create PDF dir if it doesn't exist 2020-08-11 22:27:38 +02:00
Antonin Stefanutti
cc7f2fbc34
Use pdf-lib instead of HummusJS for PDF processing 2020-05-15 20:17:30 +02:00
Antonin Stefanutti
9a910e1682
Upgrade Puppeteer to version 2.0.0 2020-01-02 20:01:47 +01:00
Antonin Stefanutti
95b14dbf82
Use hummus.PDFRStreamForBuffer instead of custom buffer adapter 2019-11-03 13:51:11 +01:00
Antonin Stefanutti
6b46a95780
Support passing additional arguments to Chrome from CLI 2018-10-19 12:49:15 +02:00
Antonin Stefanutti
fa215c4758
Revert to using networkidle0 instead of networkidle2 2018-09-14 08:42:40 +02:00
Antonin Stefanutti
2c4838a5c8
Better format JSHandle object from console message 2018-08-23 12:37:46 +02:00
Antonin Stefanutti
272b702492
Launch Chrome with --allow-file-access-from-files flag by default 2018-08-02 22:51:36 +02:00
Antonin Stefanutti
9000249825
Launch Chrome with --disable-dev-shm-usage flag by default 2018-08-02 18:46:19 +02:00
Antonin Stefanutti
76eb3e715a
Annotations are indirect references since Puppeteer 1.6 2018-07-19 12:16:37 +02:00
Antonin Stefanutti
6e98851d8b
Do not output warning on cancelled requests 2018-07-19 10:38:56 +02:00
Antonin Stefanutti
02b22f49fb
Console events are of type ConsoleMessage 2018-07-19 09:38:20 +02:00
Antonin Stefanutti
64185feb64
Add verbose option todo 2018-07-12 10:07:56 +02:00
The PosterKit developers
1a98a5b06b Run "page.goto" with "waitUntil: networkidle2" to make page loading work with data uri resources 2018-05-12 06:13:27 +02:00
Antonin Stefanutti
d28a33b71f
Upgrade Puppeteer to version 1.4.0 2018-05-09 18:11:19 +02:00
Antonin Stefanutti
1ee6449885
Upgrade Puppeteer to version 1.1.1 2018-02-28 15:26:23 +01:00
Antonin Stefanutti
5a5550f9b6 Update usage 2018-01-03 13:13:31 +01:00
Antonin Stefanutti
d59ad7fb67 Revert Puppeteer to version 0.12.0 to be compatible with latest Alpine (musl) Chromium 2018-01-03 11:20:59 +01:00
Antonin Stefanutti
3c05071bac Fix error message when size option is not valid 2017-12-20 11:04:44 +01:00
Antonin Stefanutti
bc3fd622da More robust font compression key 2017-12-19 15:50:44 +01:00
Antonin Stefanutti
c8cb03f1c3 Glyph contours can be null while consolidating fonts 2017-11-21 10:23:30 +01:00
Antonin Stefanutti
5e4ff9e9fa Fix local URL resolution on Windows 2017-11-18 15:25:31 +01:00
Antonin Stefanutti
baa00efb74 Upgrade Puppeteer to version 0.13.0 2017-11-12 15:05:45 +01:00
Antonin Stefanutti
64f504d1e5 Default to file:// scheme for slides URL 2017-11-10 17:49:52 +01:00
Antonin Stefanutti
65f29cd11b Migrate to fonteditor-core version 1.0.2 2017-11-02 17:43:39 +01:00
Antonin Stefanutti
e02347ea25 Avoid buffer copy when reading font compressed streams 2017-10-03 16:12:10 +02:00
Antonin Stefanutti
a9ef2120ef Do not timeout for pages with pending partial content requests 2017-09-29 15:47:41 +02:00
Antonin Stefanutti
20a3873032 Default size to 16:10 ratio for Shower presentations 2017-09-25 15:21:39 +02:00
Antonin Stefanutti
8091772176 Support Type0 / TTF fonts consolidation 2017-09-24 16:00:41 +02:00