Ejemplo n.º 1
0
 protected internal override void CopyContent(PdfObject from, PdfDocument document)
 {
     base.CopyContent(from, document);
     iText.Kernel.Pdf.PdfPrimitiveObject @object = (iText.Kernel.Pdf.PdfPrimitiveObject)from;
     if (@object.content != null)
     {
         content = iText.IO.Util.JavaUtil.ArraysCopyOf(@object.content, @object.content.Length);
     }
 }
Ejemplo n.º 2
0
 protected internal virtual int CompareContent(iText.Kernel.Pdf.PdfPrimitiveObject o)
 {
     for (int i = 0; i < Math.Min(content.Length, o.content.Length); i++)
     {
         if (content[i] > o.content[i])
         {
             return(1);
         }
         if (content[i] < o.content[i])
         {
             return(-1);
         }
     }
     return(iText.IO.Util.JavaUtil.IntegerCompare(content.Length, o.content.Length));
 }