You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by se...@apache.org on 2020/04/13 01:02:46 UTC
[openmeetings] branch
feature/openmeetings-2256-use-cropbox-for-pdfs created (now 66ece66)
This is an automated email from the ASF dual-hosted git repository.
sebawagner pushed a change to branch feature/openmeetings-2256-use-cropbox-for-pdfs
in repository https://gitbox.apache.org/repos/asf/openmeetings.git.
at 66ece66 OPENMEETINGS-2256 Fix PDF with cropbox different from mediabox to convert without whitespacing
This branch includes the following new commits:
new 66ece66 OPENMEETINGS-2256 Fix PDF with cropbox different from mediabox to convert without whitespacing
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[openmeetings] 01/01: OPENMEETINGS-2256 Fix PDF with cropbox
different from mediabox to convert without whitespacing
Posted by se...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
sebawagner pushed a commit to branch feature/openmeetings-2256-use-cropbox-for-pdfs
in repository https://gitbox.apache.org/repos/asf/openmeetings.git
commit 66ece669eaba24de878babd28b11235b63f562cf
Author: Sebastian Wagner <se...@apache.org>
AuthorDate: Mon Apr 13 13:01:51 2020 +1200
OPENMEETINGS-2256 Fix PDF with cropbox different from mediabox to convert without whitespacing
---
.../main/java/org/apache/openmeetings/core/converter/ImageConverter.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/openmeetings-core/src/main/java/org/apache/openmeetings/core/converter/ImageConverter.java b/openmeetings-core/src/main/java/org/apache/openmeetings/core/converter/ImageConverter.java
index 8819c55..bc4993d 100644
--- a/openmeetings-core/src/main/java/org/apache/openmeetings/core/converter/ImageConverter.java
+++ b/openmeetings-core/src/main/java/org/apache/openmeetings/core/converter/ImageConverter.java
@@ -181,6 +181,7 @@ public class ImageConverter extends BaseConverter {
String[] argv = new String[] {
getPathToConvert()
, "-density", getDpi()
+ , "-define", "pdf:use-cropbox=true"
, pdf.getCanonicalPath()
, "+profile", "'*'"
, "-quality", getQuality()