pdfgen 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -7
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/javascript_bin/make_pdf.js +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e681da225f36dae847cc8aa5ef3f2c8dada2d34
|
4
|
+
data.tar.gz: 9d52509a92631f22da061ecc4ea0d1748140c996
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8bf7752d9271f279bb86b622c681844a2f0d66cde435feeb9ff263a8e3e5c824252d7f230f9ae154ca86ccae0989dc472944c15070b52f4fc03b91866b8d7055
|
7
|
+
data.tar.gz: f4bf5e43414123bb696650ad4f853b8f34dbefd41807cd4920459838ed5508dc8eb40e25b04dbde4f3f982f6a4856e057afe5be2ecc704c30cec918e48dccdfc
|
data/CHANGELOG.md
CHANGED
@@ -1,19 +1,28 @@
|
|
1
|
+
## Pdfgen 0.7.0 (June 14, 2019)
|
2
|
+
|
3
|
+
* Revert to using setContent but require Puppeteer >= 1.11.0.
|
4
|
+
|
5
|
+
This version of Puppeteer added support to setContent for waiting until browser
|
6
|
+
events fire. The original reason for transitioning away from setContent was lack
|
7
|
+
of that feature and navigating to a data URL is limited to a maximum of 2 megabytes
|
8
|
+
of HTML as that is Chromium's URL length limit.
|
9
|
+
|
1
10
|
## Pdfgen 0.6.0 (June 14, 2019)
|
2
11
|
|
3
|
-
|
12
|
+
- Use capture3 to also capture stderror which is where Node error messages are output.
|
4
13
|
|
5
14
|
This allows Pdfgen to include the error from Node in the exception that is raised.
|
6
15
|
|
7
16
|
## Pdfgen 0.5.0 (September 3, 2018)
|
8
17
|
|
9
|
-
|
18
|
+
- Changes how the wait for timeout works slightly.
|
10
19
|
|
11
20
|
This new way starts the wait prior to putting the HTML in the page. Now that we can
|
12
21
|
utilize the waitUntil navigation feature in Puppeteer, we might as well start the
|
13
22
|
clock before waiting for that amount of time. This way, the maximum wait time should
|
14
23
|
be roughly the timeout instead of the timeout + how long the page takes to load.
|
15
24
|
|
16
|
-
|
25
|
+
- Changes how static HTML is put into the page.
|
17
26
|
|
18
27
|
This new method allows us to use the navigation wait helpers so there should be
|
19
28
|
almost no need for timeout waiting if passing Pdfgen HTML instead of a URL.
|
@@ -21,23 +30,23 @@
|
|
21
30
|
Sadly, this still does not load assets on the page so inlining your assets is still
|
22
31
|
required.
|
23
32
|
|
24
|
-
|
33
|
+
- Moves emulateMedia and setViewport steps to be before setting content or navigation
|
25
34
|
so that the browser won't need to rerender the content and hopefully we improve
|
26
35
|
performance some.
|
27
36
|
|
28
37
|
## Pdfgen 0.4.2 (June 8, 2018)
|
29
38
|
|
30
|
-
|
39
|
+
- Adds checking of minimum Node version required.
|
31
40
|
|
32
41
|
Need to soon add testing for different versions of Node to discover what the
|
33
42
|
compatible versions are.
|
34
43
|
|
35
|
-
|
44
|
+
* Adds handling of any unhandled rejection by logging the error and then exiting.
|
36
45
|
|
37
46
|
This change provides better error messaged from Node and also prevents the process
|
38
47
|
from hanging and not exiting when there was an error.
|
39
48
|
|
40
|
-
|
49
|
+
* Fixes bug where launch options were no longer being passed to the Javascript.
|
41
50
|
|
42
51
|
## Pdfgen 0.4.1 (May 15, 2018)
|
43
52
|
|
data/README.md
CHANGED
@@ -4,7 +4,7 @@ A tool for creating PDFs using [Puppeteer](https://github.com/GoogleChrome/puppe
|
|
4
4
|
# Dependencies
|
5
5
|
This gem requires:
|
6
6
|
* Node v7.6 or greater
|
7
|
-
* Puppeteer
|
7
|
+
* Puppeteer v1.11.0 or greater
|
8
8
|
|
9
9
|
### OSX (Homebrew)
|
10
10
|
To install node on OSX you can use Homebrew:
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.7.0
|
@@ -58,7 +58,7 @@ stdin.on('end', function () {
|
|
58
58
|
if (typeof url !== 'undefined' && url) {
|
59
59
|
await page.goto(url, url_options);
|
60
60
|
} else {
|
61
|
-
await page.
|
61
|
+
await page.setContent(html, { waitUntil: ["networkidle0", "load"] });
|
62
62
|
}
|
63
63
|
|
64
64
|
// If we were given a wait timeout, we should wait for the rest of the timeout now. That way,
|