private PdfDictionary GetPropertiesDictionary(iTextSharp.text.pdf.PdfObject operand1, ResourceDictionary resources) { if (operand1.IsDictionary()) return (PdfDictionary)operand1; PdfName dictionaryName = ((PdfName)operand1); return resources.GetAsDict(dictionaryName); }