1 3 package org.faceless.pdf; 4 5 import java.io.*; 6 7 49 public class PDFReader extends PeeredObject 50 { 51 final org.faceless.pdf2.PDFReader reader; 52 53 Object getPeer() 54 { 55 return reader; 56 } 57 58 62 public PDFReader(InputStream pdfstream) 63 throws IOException 64 { 65 reader = new org.faceless.pdf2.PDFReader(pdfstream); 66 } 67 68 73 public PDFReader(InputStream pdfstream, String password) 74 throws IOException 75 { 76 reader = new org.faceless.pdf2.PDFReader(pdfstream, password); 77 } 78 79 84 public PDFReader(File file) 85 throws IOException 86 { 87 reader = new org.faceless.pdf2.PDFReader(file); 88 } 89 90 96 public PDFReader(File file, String password) 97 throws IOException 98 { 99 reader = new org.faceless.pdf2.PDFReader(file, password); 100 } 101 102 103 110 public int getNumberOfRevisions() 111 { 112 return reader.getNumberOfRevisions(); 113 } 114 115 public void finalize() { reader.finalize(); } 116 } 117 | Popular Tags |