From 740d1af09a812223b85173e4303cf3cffe67699e Mon Sep 17 00:00:00 2001 From: Fred Chasen <fchasen@gmail.com> Date: Mon, 10 Feb 2020 13:14:08 -0800 Subject: [PATCH] Only set TrimBox in postprocessing --- src/postprocesser.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/postprocesser.js b/src/postprocesser.js index e53a57f..87746a7 100644 --- a/src/postprocesser.js +++ b/src/postprocesser.js @@ -192,9 +192,7 @@ class PostProcesser extends EventEmitter { pdfPage.index, ); - // pdfPage.set("ArtBox", rectangle); - pdfPage.set("TrimBox", rectangle); - pdfPage.set("CropBox", rectangle); + pdfPage.set("TrimBox", rectangle); }); } -- GitLab