public Example_19() { try { FileStream fos = new FileStream("Example_19.pdf", FileMode.Create); BufferedStream bos = new BufferedStream(fos); PDF pdf = new PDF( bos ); FileStream fis = new FileStream( "Example_03.pdf", FileMode.Open ); // FileInputStream fis = new FileInputStream( "PDF32000_2008.pdf" ); BufferedStream bis = new BufferedStream( fis ); List< PDFobj > objects = pdf.read(bis); for ( int j = 0; j < objects.Count; j++ ) { PDFobj obj = ( PDFobj ) objects[j]; for ( int i = 0; i < obj.dict.Count; i++ ) { Console.WriteLine(obj.dict[i]); } Console.WriteLine(); } bis.Close(); pdf.Flush(); bos.Close(); } catch ( Exception e ) { Console.WriteLine(e.StackTrace); } }