pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1720842 - /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotation.java
Date Fri, 18 Dec 2015 20:05:54 GMT
Author: tilman
Date: Fri Dec 18 20:05:54 2015
New Revision: 1720842

URL: http://svn.apache.org/viewvc?rev=1720842&view=rev
Log:
PDFBOX-3164: allow "IT" as alternatve to "intent" in xpdf for /IT

Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotation.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotation.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotation.java?rev=1720842&r1=1720841&r2=1720842&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotation.java (original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotation.java Fri
Dec 18 20:05:54 2015
@@ -219,7 +219,14 @@ public abstract class FDFAnnotation impl
             setOpacity(Float.parseFloat(opac));
         }
         setSubject(element.getAttribute("subject"));
-        setIntent(element.getAttribute("intent"));
+
+        String intent = element.getAttribute("intent");
+        if (intent.isEmpty())
+        {
+            // not conforming to spec, but qoppa produces it and Adobe accepts it
+            intent = element.getAttribute("IT");
+        }
+        setIntent(intent);
 
         XPath xpath = XPathFactory.newInstance().newXPath();
         try



Mime
View raw message