protected void SetFromReader(PdfReader reader)
{
this.reader = reader;
indirectMap.TryGetValue(reader, out indirects);
if (indirects == null) {
indirects = new Dictionary<RefKey,IndirectReferences>();
indirectMap[reader] = indirects;
PdfDictionary catalog = reader.Catalog;
PRIndirectReference refi = null;
PdfObject o = catalog.Get(PdfName.ACROFORM);
if (o == null || o.Type != PdfObject.INDIRECT)
return;
refi = (PRIndirectReference)o;
if (acroForm == null) acroForm = body.PdfIndirectReference;
indirects[new RefKey(refi)] = new IndirectReferences(acroForm);
}
}