pdfjs
Advanced tools
Comparing version 2.4.5 to 2.4.6
@@ -9,2 +9,6 @@ # Changelog | ||
## [2.5.6] - 2021-08-23 | ||
### Fixed | ||
- Fixed images not adding page break | ||
## [2.4.5] - 2021-07-29 | ||
@@ -11,0 +15,0 @@ ### Fixed |
@@ -16,4 +16,2 @@ 'use strict' | ||
const aliases = doc._useXObject(img) | ||
const _cursor = parent._cursor | ||
@@ -53,2 +51,6 @@ | ||
} else { | ||
if (!_cursor.doesFit(renderHeight)) { | ||
await parent._pageBreak(1) | ||
} | ||
y = _cursor.y | ||
_cursor.y -= renderHeight | ||
@@ -80,2 +82,4 @@ } | ||
const aliases = doc._useXObject(img) | ||
for (const alias of aliases) { | ||
@@ -82,0 +86,0 @@ chunk += ops.Do(alias) |
{ | ||
"name": "pdfjs", | ||
"author": "Markus Ast <npm.m@rkusa.st>", | ||
"version": "2.4.5", | ||
"version": "2.4.6", | ||
"description": "A Portable Document Format (PDF) generation library targeting both the server- and client-side.", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
341975
6598