You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/02/02 15:46:25 UTC

svn commit: r1852800 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java

Author: tilman
Date: Sat Feb  2 15:46:25 2019
New Revision: 1852800

URL: http://svn.apache.org/viewvc?rev=1852800&view=rev
Log:
PDFBOX-4417: remove deprecated

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java?rev=1852800&r1=1852799&r2=1852800&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureTreeRoot.java Sat Feb  2 15:46:25 2019
@@ -21,7 +21,6 @@ import java.util.Hashtable;
 import java.util.Map;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.pdfbox.cos.COSArray;
 import org.apache.pdfbox.cos.COSBase;
 import org.apache.pdfbox.cos.COSDictionary;
 import org.apache.pdfbox.cos.COSName;
@@ -67,36 +66,6 @@ public class PDStructureTreeRoot extends
     }
 
     /**
-     * Returns the K array entry.
-     * 
-     * @return the K array entry
-     *
-     * @deprecated use {@link #getK()} only. /K can be a dictionary or an array, and the next level
-     * can also be a dictionary. See file 054080.pdf in PDFBOX-4417 and read "Entries in the
-     * structure tree root" in the PDF specification.
-     */
-    @Deprecated
-    public COSArray getKArray()
-    {
-        COSBase k = this.getCOSObject().getDictionaryObject(COSName.K);
-        if (k instanceof COSDictionary)
-        {
-            COSDictionary kdict = (COSDictionary) k;
-            k = kdict.getDictionaryObject(COSName.K);
-            if (k instanceof COSArray)
-            {
-                return (COSArray) k;
-            }
-        }
-        else if (k instanceof COSArray)
-        {
-            return (COSArray) k;
-        }
-
-        return null;
-    }
-
-    /**
      * Returns the K entry. This can be a dictionary representing a structure element, or an array
      * of them.
      *