[iText-questions] Need Help in Decoding Xref Stream

2009-03-26 Thread AoZus
Hi I am a beginner to iText, but I am using it to study about pdf format. I have bought the book, but I am lost at trying to decode the flate-encoded (with predictor=12, col=5) stream. I did the following: PdfReader reader = new PdfReader("format.pdf"); PdfLister lister = new PdfLister(

[iText-questions] Decoding Stream

2009-03-26 Thread AoZus
Hi all I am trying to decode the cross-reference stream. The following is what I had done: PdfReader reader = new PdfReader("test.pdf"); PrintStream list = new PrintStream(new FileOutputStream("objects.txt")); PdfLister lister = new PdfLister(new PrintStream(list)); PdfDictionary traile

[iText-questions] decodePredictor() not working properly..

2009-03-26 Thread AoZus
Hi I am trying to decompress a stream with filter=flatedecode and decodeparms=[predictor 12 columns 4]. I decoded the stream with FlateDecode(byte in[]) first. Then the output is pass in to decodePredictor(byte in[], PdfObject dicPar). I have checked that dicPar is correct. However, the resulti

[iText-questions] Problem with decodePredictor(byte in[], PdfObject dicPar)

2009-03-08 Thread AoZus
Hi I am trying to decompress a stream with filter=flatedecode and decodeparms=[predictor 12 columns 4]. I decoded the stream with FlateDecode(byte in[]) first. Then the output is pass in to decodePredictor(byte in[], PdfObject dicPar). I have checked that dicPar is correct. However, the resulti