internal static void MergeResources(PdfDictionary result, PdfDictionary source, PdfStamperImp writer)
        {
            PdfDictionary dic    = null;
            PdfDictionary res    = null;
            PdfName       target = null;

            for (int k = 0; k < MergeTarget.Length; ++k)
            {
                target = MergeTarget[k];
                PdfDictionary pdfDict = source.GetAsDict(target);
                if ((dic = pdfDict) != null)
                {
                    if ((res = (PdfDictionary)PdfReader.GetPdfObject(result.Get(target), result)) == null)
                    {
                        res = new PdfDictionary();
                    }
                    res.MergeDifferent(dic);
                    result.Put(target, res);
                    if (writer != null)
                    {
                        writer.MarkUsed(res);
                    }
                }
            }
        }
Пример #2
0
 public void MarkUsed(PdfObject obj)
 {
     stamper.MarkUsed(obj);
 }