-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 | ||
|
||
# jrender | ||
./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 | ||
|
||
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; | ||
|
||
|
||
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 out2.pwg ~/reference.pdf |