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