protected void setFromReader ( PdfReader reader ) { this . reader = reader ; indirects = ( HashMap ) indirectMap . get ( reader ) ; if ( indirects == null ) { indirects = new HashMap ( ) ; indirectMap . put ( reader , indirects ) ; PdfDictionary catalog = reader . getCatalog ( ) ; PRIndirectReference ref = null ; PdfObject o = catalog . get ( PdfName . ACROFORM ) ; if ( o == null || o . type ( ) != PdfObject . INDIRECT ) return ; ref = ( PRIndirectReference ) o ; if ( acroForm == null ) acroForm = body . getPdfIndirectReference ( ) ; indirects . put ( new RefKey ( ref ) , new IndirectReferences ( acroForm ) ) ; } }
convenience method . Given a reader set our globals