pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1858102 - in /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel: documentinterchange/markedcontent/PDPropertyList.java graphics/optionalcontent/PDOptionalContentMembershipDictionary.java
Date Thu, 25 Apr 2019 09:26:20 GMT
Author: tilman
Date: Thu Apr 25 09:26:20 2019
New Revision: 1858102

URL: http://svn.apache.org/viewvc?rev=1858102&view=rev
Log:
PDFBOX-4526: introduce PDOptionalContentMembershipDictionary

Added:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/optionalcontent/PDOptionalContentMembershipDictionary.java
      - copied unchanged from r1858100, pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/graphics/optionalcontent/PDOptionalContentMembershipDictionary.java
Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/markedcontent/PDPropertyList.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/markedcontent/PDPropertyList.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/markedcontent/PDPropertyList.java?rev=1858102&r1=1858101&r2=1858102&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/markedcontent/PDPropertyList.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/documentinterchange/markedcontent/PDPropertyList.java
Thu Apr 25 09:26:20 2019
@@ -20,6 +20,7 @@ import org.apache.pdfbox.cos.COSDictiona
 import org.apache.pdfbox.cos.COSName;
 import org.apache.pdfbox.pdmodel.common.COSObjectable;
 import org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentGroup;
+import org.apache.pdfbox.pdmodel.graphics.optionalcontent.PDOptionalContentMembershipDictionary;
 
 /**
  * A property list is a dictionary containing private information meaningful to the conforming
@@ -42,6 +43,10 @@ public class PDPropertyList implements C
         {
             return new PDOptionalContentGroup(dict);
         }
+        else if (COSName.OCMD.equals(dict.getItem(COSName.TYPE)))
+        {
+            return new PDOptionalContentMembershipDictionary(dict);
+        }
         else
         {
             // todo: more types



Mime
View raw message