pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1865240 - in /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation: PDAnnotationLine.java PDAnnotationLink.java PDAnnotationSquareCircle.java PDAnnotationText.java
Date Thu, 15 Aug 2019 17:08:29 GMT
Author: tilman
Date: Thu Aug 15 17:08:29 2019
New Revision: 1865240

URL: http://svn.apache.org/viewvc?rev=1865240&view=rev
Log:
PDFBOX-4080: pass PDDocument to construct appearances, as suggested by Ghenadii Batalski

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.java
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquareCircle.java
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationText.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java?rev=1865240&r1=1865239&r2=1865240&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java
Thu Aug 15 17:08:29 2019
@@ -478,7 +478,7 @@ public class PDAnnotationLine extends PD
     {
         if (customAppearanceHandler == null)
         {
-            PDLineAppearanceHandler appearanceHandler = new PDLineAppearanceHandler(this);
+            PDLineAppearanceHandler appearanceHandler = new PDLineAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.java?rev=1865240&r1=1865239&r2=1865240&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.java
Thu Aug 15 17:08:29 2019
@@ -252,7 +252,7 @@ public class PDAnnotationLink extends PD
     {
         if (customAppearanceHandler == null)
         {
-            PDLinkAppearanceHandler appearanceHandler = new PDLinkAppearanceHandler(this);
+            PDLinkAppearanceHandler appearanceHandler = new PDLinkAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquareCircle.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquareCircle.java?rev=1865240&r1=1865239&r2=1865240&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquareCircle.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquareCircle.java
Thu Aug 15 17:08:29 2019
@@ -272,12 +272,12 @@ public class PDAnnotationSquareCircle ex
         {
             if (SUB_TYPE_CIRCLE.equals(getSubtype()))
             {
-                PDCircleAppearanceHandler appearanceHandler = new PDCircleAppearanceHandler(this);
+                PDCircleAppearanceHandler appearanceHandler = new PDCircleAppearanceHandler(this,
document);
                 appearanceHandler.generateAppearanceStreams();
             }
             else if (SUB_TYPE_SQUARE.equals(getSubtype()))
             {
-                PDSquareAppearanceHandler appearanceHandler = new PDSquareAppearanceHandler(this);
+                PDSquareAppearanceHandler appearanceHandler = new PDSquareAppearanceHandler(this,
document);
                 appearanceHandler.generateAppearanceStreams();
             }
         }

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationText.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationText.java?rev=1865240&r1=1865239&r2=1865240&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationText.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationText.java
Thu Aug 15 17:08:29 2019
@@ -242,7 +242,7 @@ public class PDAnnotationText extends PD
     {
         if (customAppearanceHandler == null)
         {
-            PDTextAppearanceHandler appearanceHandler = new PDTextAppearanceHandler(this);
+            PDTextAppearanceHandler appearanceHandler = new PDTextAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else



Mime
View raw message