Exemplo n.º 1
0
 /**
 * @see com.lowagie.text.pdf.interfaces.PdfVersion#addDeveloperExtension(com.lowagie.text.pdf.PdfDeveloperExtension)
 * @since   2.1.6
 */
 public void AddDeveloperExtension(PdfDeveloperExtension de)
 {
     if (extensions == null) {
         extensions = new PdfDictionary();
     }
     else {
         PdfDictionary extension = extensions.GetAsDict(de.Prefix);
         if (extension != null) {
             int diff = de.Baseversion.CompareTo(extension.GetAsName(PdfName.BASEVERSION));
             if (diff < 0)
                 return;
             diff = de.ExtensionLevel - extension.GetAsNumber(PdfName.EXTENSIONLEVEL).IntValue;
             if (diff <= 0)
                 return;
         }
     }
     extensions.Put(de.Prefix, de.GetDeveloperExtensions());
 }
Exemplo n.º 2
0
 /**
  * @see com.lowagie.text.pdf.interfaces.PdfVersion#addDeveloperExtension(com.lowagie.text.pdf.PdfDeveloperExtension)
  * @since   2.1.6
  */
 public void AddDeveloperExtension(PdfDeveloperExtension de)
 {
     pdf_version.AddDeveloperExtension(de);
 }