diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-02-10 14:05:45 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-02-14 17:56:55 +0100 |
commit | 1fa9a65166acb4077d2b0974ad579dc11d1a92cc (patch) | |
tree | e189e0054a47d4120a22d5d9661e39c54dfd50d6 /platform/java/example/Viewer.java | |
parent | 8b2296b18b884432a4447885269482c4e111f919 (diff) | |
download | mupdf-1fa9a65166acb4077d2b0974ad579dc11d1a92cc.tar.xz |
java: Make PDFDocument a subclass of Document.
Requires use of Document.openDocument(path) to open a document. No more
new Document(path) since we may need to return a PDFDocument.
Create a new blank PDF with new PDFDocument() constructor.
Diffstat (limited to 'platform/java/example/Viewer.java')
-rw-r--r-- | platform/java/example/Viewer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/java/example/Viewer.java b/platform/java/example/Viewer.java index a924cf4b..e5c45be4 100644 --- a/platform/java/example/Viewer.java +++ b/platform/java/example/Viewer.java @@ -452,7 +452,7 @@ public class Viewer extends Frame implements WindowListener, ActionListener, Ite } try { - Document doc = new Document(selectedFile.getAbsolutePath()); + Document doc = Document.openDocument(selectedFile.getAbsolutePath()); Viewer app = new Viewer(doc); app.setVisible(true); return; |