summaryrefslogtreecommitdiff
path: root/platform/java/src/com
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2017-01-04 13:19:33 +0100
committerTor Andersson <tor.andersson@artifex.com>2017-01-09 17:45:35 +0100
commit18d95a4ee602435899eae941ed0215fa1f71a01b (patch)
tree19f087faf7e24c62bc343a3cfea06dfb4c5ff87a /platform/java/src/com
parent5d92615f37303041a473e8a25860860601a8dcfe (diff)
downloadmupdf-18d95a4ee602435899eae941ed0215fa1f71a01b.tar.xz
java: Clean up and simplify example viewer.
Don't pull in swing classes for simple desktop AWT viewer. Use inner classes for helper classes. Add list of zoom levels. Add table of content list. Make page canvas flicker free.
Diffstat (limited to 'platform/java/src/com')
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Document.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Document.java b/platform/java/src/com/artifex/mupdf/fitz/Document.java
index d619f4a2..29cad4db 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/Document.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/Document.java
@@ -53,6 +53,10 @@ public class Document
public native PDFDocument toPDFDocument();
+ public boolean isPDF() {
+ return toPDFDocument() != null;
+ }
+
public String makeProof (String currentPath, String printProfile, String displayProfile, int resolution)
{
String proofFile = proofNative( currentPath, printProfile, displayProfile, resolution);