diff --git a/lib/document.js b/lib/document.js index 61f2a10d..1b2d5d2a 100644 --- a/lib/document.js +++ b/lib/document.js @@ -159,9 +159,10 @@ class PDFDocument extends stream.Readable { // flip PDF coordinate system so that the origin is in // the top left rather than the bottom left - this._ctm = [1, 0, 0, 1, 0, 0]; + this.transform(1, 0, 0, -1, 0, this.page.height); - + this._ctm = [1, 0, 0, 1, 0, 0]; + this.emit('pageAdded'); return this;