-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbench.txt
34 lines (28 loc) · 1.47 KB
/
bench.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# pdf2printable
make -Bj$(nproc)
time ./pdf2printable -r 600 ~/reference.pdf out.pwg
time ./pdf2printable -r 600 -c gray8 ~/reference.pdf out.pwg
# ipptransform
./configure
make -Bj$(nproc)
LD_LIBRARY_PATH=./cups/ time ./tools/ipptransform -m image/pwg-raster -r 600 -t srgb_8 ~/reference.pdf > out.pwg
LD_LIBRARY_PATH=./cups/ time ./tools/ipptransform -m image/pwg-raster -r 600 -t sgray_8 ~/reference.pdf > out.pwg
# jrender
diff --git a/sample/jrender/src/main/java/sample/jrender/Main.java b/sample/jrender/src/main/java/sample/jrender/Main.java
index 0fc678d..2dcf810 100644
--- a/sample/jrender/src/main/java/sample/jrender/Main.java
+++ b/sample/jrender/src/main/java/sample/jrender/Main.java
@@ -29,7 +29,7 @@ import org.apache.pdfbox.rendering.ImageType;
import org.apache.pdfbox.rendering.PDFRenderer;
class Main {
- private static final int DPI = 300;
+ private static final int DPI = 600;
private static final ImageType IMAGE_TYPE = ImageType.RGB;
private final static double RED_COEFFICIENT = 0.2126;
private final static double GREEN_COEFFICIENT = 0.7512;
./gradlew build -Dorg.gradle.java.home=/usr/lib/jvm/java-1.8.0-openjdk-amd64/ && unzip -o ./sample/jrender/build/distributions/jrender-*.zip
time jrender-*/bin/jrender ~/reference.pdf out.pwg
# mutool
make -Bj$(nproc)
time ./build/release/mutool convert -O resolution=600 -A 0 -o out.pwg ~/reference.pdf
time ./build/release/mutool convert -O resolution=600,colorspace=gray -A 0 -o out.pwg ~/reference.pdf