public void ReleaseTemplate(PdfTemplate tp)
{
PdfIndirectReference refi = tp.IndirectReference;
Object[] objs;
formXObjects.TryGetValue(refi, out objs);
if (objs == null || objs[1] == null)
return;
PdfTemplate template = (PdfTemplate)objs[1];
if (template.IndirectReference is PRIndirectReference)
return;
if (template.Type == PdfTemplate.TYPE_TEMPLATE) {
AddToBody(template.GetFormXObject(compressionLevel), template.IndirectReference);
objs[1] = null;
}
}