pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1822124 - in /pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation: ./ handlers/
Date Wed, 24 Jan 2018 17:08:35 GMT
Author: tilman
Date: Wed Jan 24 17:08:35 2018
New Revision: 1822124

URL: http://svn.apache.org/viewvc?rev=1822124&view=rev
Log:
PDFBOX-4079: Split FreeText, Caret and Sound annotation classes from PDAnnotationMarkup

Added:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java
  (with props)
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
  (with props)
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java
  (with props)
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDCaretAppearanceHandler.java
  (with props)
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDFreeTextAppearanceHandler.java
  (with props)
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDSoundAppearanceHandler.java
  (with props)
Modified:
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.java
    pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationMarkup.java

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.java?rev=1822124&r1=1822123&r2=1822124&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotation.java
Wed Jan 24 17:08:35 2018
@@ -167,12 +167,17 @@ public abstract class PDAnnotation imple
             {
                 annot = new PDAnnotationWidget(annotDic);
             }
-            else if (PDAnnotationMarkup.SUB_TYPE_FREETEXT.equals(subtype)
-                    || PDAnnotationMarkup.SUB_TYPE_CARET.equals(subtype)
-                    || PDAnnotationMarkup.SUB_TYPE_SOUND.equals(subtype))
+            else if (PDAnnotationFreeText.SUB_TYPE.equals(subtype))
             {
-                // 12.5.6.2 Markup Annotations
-                annot = new PDAnnotationMarkup(annotDic);
+                annot = new PDAnnotationFreeText(annotDic);
+            }
+            else if (PDAnnotationCaret.SUB_TYPE.equals(subtype))
+            {
+                annot = new PDAnnotationCaret(annotDic);
+            }
+            else if (PDAnnotationSound.SUB_TYPE.equals(subtype))
+            {
+                annot = new PDAnnotationSound(annotDic);
             }
             else
             {

Added: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java?rev=1822124&view=auto
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java
(added)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java
Wed Jan 24 17:08:35 2018
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2018 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pdfbox.pdmodel.interactive.annotation;
+
+import org.apache.pdfbox.cos.COSDictionary;
+import org.apache.pdfbox.cos.COSName;
+import org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAppearanceHandler;
+import org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDCaretAppearanceHandler;
+
+/**
+ *
+ * @author Paul King
+ */
+public class PDAnnotationCaret extends PDAnnotationMarkup
+{
+    /**
+     * The type of annotation.
+     */
+    public static final String SUB_TYPE = "Caret";
+
+    private PDAppearanceHandler caretAppearanceHandler;
+
+    public PDAnnotationCaret()
+    {
+        getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE);
+    }
+
+    /**
+     * Creates a Caret annotation from a COSDictionary, expected to be a correct object definition.
+     *
+     * @param field the PDF object to represent as a field.
+     */
+    public PDAnnotationCaret(COSDictionary field)
+    {
+        super(field);
+    }
+    
+    /**
+     * Set a custom appearance handler for generating the annotations appearance streams.
+     * 
+     * @param caretAppearanceHandler
+     */
+    public void setCustomCaretAppearanceHandler(PDAppearanceHandler caretAppearanceHandler)
+    {
+        this.caretAppearanceHandler = caretAppearanceHandler;
+    }
+
+    @Override
+    public void constructAppearances()
+    {
+        if (caretAppearanceHandler == null)
+        {
+            PDCaretAppearanceHandler appearanceHandler = new PDCaretAppearanceHandler(this);
+            appearanceHandler.generateAppearanceStreams();
+        }
+        else
+        {
+            caretAppearanceHandler.generateAppearanceStreams();
+        }
+    }
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java?rev=1822124&view=auto
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
(added)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
Wed Jan 24 17:08:35 2018
@@ -0,0 +1,147 @@
+/*
+ * Copyright 2018 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pdfbox.pdmodel.interactive.annotation;
+
+import org.apache.pdfbox.cos.COSDictionary;
+import org.apache.pdfbox.cos.COSName;
+import org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAppearanceHandler;
+import org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDFreeTextAppearanceHandler;
+import org.apache.pdfbox.pdmodel.interactive.form.PDVariableText;
+
+/**
+ *
+ * @author Paul King
+ */
+public class PDAnnotationFreeText extends PDAnnotationMarkup
+{
+    /**
+     * The type of annotation.
+     */
+    public static final String SUB_TYPE = "FreeText";
+
+    private PDAppearanceHandler freeTextAppearanceHandler;
+
+    public PDAnnotationFreeText()
+    {
+        getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE);
+    }
+
+    /**
+     * Creates a FreeText annotation from a COSDictionary, expected to be a correct object
definition.
+     *
+     * @param field the PDF object to represent as a field.
+     */
+    public PDAnnotationFreeText(COSDictionary field)
+    {
+        super(field);
+    }
+
+    /**
+     * Get the default appearance.
+     * 
+     * @return a string describing the default appearance.
+     */
+    public String getDefaultAppearance()
+    {
+        return getCOSObject().getString(COSName.DA);
+    }
+
+    /**
+     * Set the default appearance.
+     *
+     * @param daValue a string describing the default appearance.
+     */
+    public void setDefaultAppearance(String daValue)
+    {
+        getCOSObject().setString(COSName.DA, daValue);
+    }
+
+    /**
+     * Get the default style string.
+     *
+     * The default style string defines the default style for rich text fields.
+     *
+     * @return the DS element of the dictionary object
+     */
+    public String getDefaultStyleString()
+    {
+        return getCOSObject().getString(COSName.DS);
+    }
+
+    /**
+     * Set the default style string.
+     *
+     * Providing null as the value will remove the default style string.
+     *
+     * @param defaultStyleString a string describing the default style.
+     */
+    public void setDefaultStyleString(String defaultStyleString)
+    {
+        getCOSObject().setString(COSName.DS, defaultStyleString);
+    }
+
+    /**
+     * This will get the 'quadding' or justification of the text to be displayed.
+     * 
+     * This is an inheritable attribute.
+     * <br>
+     * 0 - Left(default)<br>
+     * 1 - Centered<br>
+     * 2 - Right<br>
+     * Please see the QUADDING_CONSTANTS in {@link PDVariableText }.
+     *
+     * @return The justification of the text strings.
+     */
+    public int getQ()
+    {
+        return getCOSObject().getInt(COSName.Q, 0);
+    }
+
+    /**
+     * This will set the quadding/justification of the text. Please see the QUADDING_CONSTANTS
+     * in {@link PDVariableText }.
+     *
+     * @param q The new text justification.
+     */
+    public void setQ(int q)
+    {
+        getCOSObject().setInt(COSName.Q, q);
+    }
+
+    /**
+     * Set a custom appearance handler for generating the annotations appearance streams.
+     * 
+     * @param freeTextAppearanceHandler
+     */
+    public void setCustomFreeTextAppearanceHandler(PDAppearanceHandler freeTextAppearanceHandler)
+    {
+        this.freeTextAppearanceHandler = freeTextAppearanceHandler;
+    }
+
+    @Override
+    public void constructAppearances()
+    {
+        if (freeTextAppearanceHandler == null)
+        {
+            PDFreeTextAppearanceHandler appearanceHandler = new PDFreeTextAppearanceHandler(this);
+            appearanceHandler.generateAppearanceStreams();
+        }
+        else
+        {
+            freeTextAppearanceHandler.generateAppearanceStreams();
+        }
+    }
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationMarkup.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationMarkup.java?rev=1822124&r1=1822123&r2=1822124&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationMarkup.java
(original)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationMarkup.java
Wed Jan 24 17:08:35 2018
@@ -32,19 +32,6 @@ import org.apache.pdfbox.cos.COSString;
  */
 public class PDAnnotationMarkup extends PDAnnotation
 {
-    /**
-     * Constant for a FreeText type of annotation.
-     */
-    public static final String SUB_TYPE_FREETEXT = "FreeText";
-    /**
-     * Constant for an Caret type of annotation.
-     */
-    public static final String SUB_TYPE_CARET = "Caret";
-    /**
-     * Constant for an Sound type of annotation.
-     */
-    public static final String SUB_TYPE_SOUND = "Sound";
-
     /*
      * The various values of the reply type as defined in the PDF 1.7 reference Table 170
      */

Added: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java?rev=1822124&view=auto
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java
(added)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java
Wed Jan 24 17:08:35 2018
@@ -0,0 +1,74 @@
+/*
+ * Copyright 2018 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pdfbox.pdmodel.interactive.annotation;
+
+import org.apache.pdfbox.cos.COSDictionary;
+import org.apache.pdfbox.cos.COSName;
+import org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDAppearanceHandler;
+import org.apache.pdfbox.pdmodel.interactive.annotation.handlers.PDSoundAppearanceHandler;
+
+/**
+ *
+ * @author Paul King
+ */
+public class PDAnnotationSound extends PDAnnotationMarkup
+{
+    /**
+     * The type of annotation.
+     */
+    public static final String SUB_TYPE = "Sound";
+
+    private PDAppearanceHandler soundAppearanceHandler;
+
+    public PDAnnotationSound()
+    {
+        getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE);
+    }
+
+    /**
+     * Creates a sound annotation from a COSDictionary, expected to be a correct object definition.
+     *
+     * @param field the PDF object to represent as a field.
+     */
+    public PDAnnotationSound(COSDictionary field)
+    {
+        super(field);
+    }
+    
+    /**
+     * Set a custom appearance handler for generating the annotations appearance streams.
+     * 
+     * @param soundAppearanceHandler
+     */
+    public void setCustomSoundAppearanceHandler(PDAppearanceHandler soundAppearanceHandler)
+    {
+        this.soundAppearanceHandler = soundAppearanceHandler;
+    }
+
+    @Override
+    public void constructAppearances()
+    {
+        if (soundAppearanceHandler == null)
+        {
+            PDSoundAppearanceHandler appearanceHandler = new PDSoundAppearanceHandler(this);
+            appearanceHandler.generateAppearanceStreams();
+        }
+        else
+        {
+            soundAppearanceHandler.generateAppearanceStreams();
+        }
+    }
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDCaretAppearanceHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDCaretAppearanceHandler.java?rev=1822124&view=auto
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDCaretAppearanceHandler.java
(added)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDCaretAppearanceHandler.java
Wed Jan 24 17:08:35 2018
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2018 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pdfbox.pdmodel.interactive.annotation.handlers;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation;
+
+public class PDCaretAppearanceHandler extends PDAbstractAppearanceHandler
+{
+    private static final Log LOG = LogFactory.getLog(PDCaretAppearanceHandler.class);
+
+    public PDCaretAppearanceHandler(PDAnnotation annotation)
+    {
+        super(annotation);
+    }
+
+    @Override
+    public void generateAppearanceStreams()
+    {
+        generateNormalAppearance();
+        generateRolloverAppearance();
+        generateDownAppearance();
+    }
+
+    @Override
+    public void generateNormalAppearance()
+    {
+        // TODO to be implemented
+    }
+
+    @Override
+    public void generateRolloverAppearance()
+    {
+        // TODO to be implemented
+    }
+
+    @Override
+    public void generateDownAppearance()
+    {
+        // TODO to be implemented
+    }
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDCaretAppearanceHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDFreeTextAppearanceHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDFreeTextAppearanceHandler.java?rev=1822124&view=auto
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDFreeTextAppearanceHandler.java
(added)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDFreeTextAppearanceHandler.java
Wed Jan 24 17:08:35 2018
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2018 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pdfbox.pdmodel.interactive.annotation.handlers;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation;
+
+public class PDFreeTextAppearanceHandler extends PDAbstractAppearanceHandler
+{
+    private static final Log LOG = LogFactory.getLog(PDFreeTextAppearanceHandler.class);
+
+    public PDFreeTextAppearanceHandler(PDAnnotation annotation)
+    {
+        super(annotation);
+    }
+
+    @Override
+    public void generateAppearanceStreams()
+    {
+        generateNormalAppearance();
+        generateRolloverAppearance();
+        generateDownAppearance();
+    }
+
+    @Override
+    public void generateNormalAppearance()
+    {
+        // TODO to be implemented
+    }
+
+    @Override
+    public void generateRolloverAppearance()
+    {
+        // TODO to be implemented
+    }
+
+    @Override
+    public void generateDownAppearance()
+    {
+        // TODO to be implemented
+    }
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDFreeTextAppearanceHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDSoundAppearanceHandler.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDSoundAppearanceHandler.java?rev=1822124&view=auto
==============================================================================
--- pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDSoundAppearanceHandler.java
(added)
+++ pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDSoundAppearanceHandler.java
Wed Jan 24 17:08:35 2018
@@ -0,0 +1,56 @@
+/*
+ * Copyright 2018 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.pdfbox.pdmodel.interactive.annotation.handlers;
+
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation;
+
+public class PDSoundAppearanceHandler extends PDAbstractAppearanceHandler
+{
+    private static final Log LOG = LogFactory.getLog(PDSoundAppearanceHandler.class);
+
+    public PDSoundAppearanceHandler(PDAnnotation annotation)
+    {
+        super(annotation);
+    }
+
+    @Override
+    public void generateAppearanceStreams()
+    {
+        generateNormalAppearance();
+        generateRolloverAppearance();
+        generateDownAppearance();
+    }
+
+    @Override
+    public void generateNormalAppearance()
+    {
+        // TODO to be implemented
+    }
+
+    @Override
+    public void generateRolloverAppearance()
+    {
+        // TODO to be implemented
+    }
+
+    @Override
+    public void generateDownAppearance()
+    {
+        // TODO to be implemented
+    }
+}

Propchange: pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/handlers/PDSoundAppearanceHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message