Example usage for org.apache.pdfbox.cos COSDictionary toString

List of usage examples for org.apache.pdfbox.cos COSDictionary toString

Introduction

In this page you can find the example usage for org.apache.pdfbox.cos COSDictionary toString.

Prototype

@Override
public String toString() 

Source Link

Usage

From source file:net.awl.edoc.pdfa.LInearPdf.java

License:Apache License

public static void main(String[] args) throws Exception {
    InputStream is = new FileInputStream("/home/eric/dictionnaire.txt");
    // PDFStreamParser parser = new PDFStreamParser(is,new
    // RandomAccessBuffer());
    // COSDocument doc = new COSDocument();
    // parser.setDocument(doc);
    // parser.parse();
    ///*w w  w  .j a v  a  2  s .  co  m*/
    // System.out.println(((COSDictionary)doc.getObjects().get(0)).getInt("Size"));

    CustomParser parser = new CustomParser(is);
    COSDocument doc = new COSDocument();
    parser.setDocument(doc);
    COSDictionary dic = parser.getCOSDictionary();
    System.out.println(dic.toString());
}