pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1865238 - /pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/
Date Thu, 15 Aug 2019 17:07:57 GMT
Author: tilman
Date: Thu Aug 15 17:07:57 2019
New Revision: 1865238

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

Modified:
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCircle.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationHighlight.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationInk.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationPolygon.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationPolyline.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquare.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquiggly.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationStrikeout.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationText.java
    pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationUnderline.java

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCaret.java
Thu Aug 15 17:07:57 2019
@@ -121,7 +121,7 @@ public class PDAnnotationCaret extends P
     {
         if (customAppearanceHandler == null)
         {
-            PDCaretAppearanceHandler appearanceHandler = new PDCaretAppearanceHandler(this);
+            PDCaretAppearanceHandler appearanceHandler = new PDCaretAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCircle.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCircle.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCircle.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationCircle.java
Thu Aug 15 17:07:57 2019
@@ -69,7 +69,7 @@ public class PDAnnotationCircle extends
     {
         if (customAppearanceHandler == null)
         {
-            PDCircleAppearanceHandler appearanceHandler = new PDCircleAppearanceHandler(this);
+            PDCircleAppearanceHandler appearanceHandler = new PDCircleAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationFreeText.java
Thu Aug 15 17:07:57 2019
@@ -322,7 +322,7 @@ public class PDAnnotationFreeText extend
     {
         if (customAppearanceHandler == null)
         {
-            PDFreeTextAppearanceHandler appearanceHandler = new PDFreeTextAppearanceHandler(this);
+            PDFreeTextAppearanceHandler appearanceHandler = new PDFreeTextAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationHighlight.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationHighlight.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationHighlight.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationHighlight.java
Thu Aug 15 17:07:57 2019
@@ -73,7 +73,7 @@ public class PDAnnotationHighlight exten
     {
         if (customAppearanceHandler == null)
         {
-            PDHighlightAppearanceHandler appearanceHandler = new PDHighlightAppearanceHandler(this);
+            PDHighlightAppearanceHandler appearanceHandler = new PDHighlightAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationInk.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationInk.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationInk.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationInk.java
Thu Aug 15 17:07:57 2019
@@ -130,7 +130,7 @@ public class PDAnnotationInk extends PDA
     {
         if (customAppearanceHandler == null)
         {
-            PDInkAppearanceHandler appearanceHandler = new PDInkAppearanceHandler(this);
+            PDInkAppearanceHandler appearanceHandler = new PDInkAppearanceHandler(this, document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLine.java
Thu Aug 15 17:07:57 2019
@@ -445,7 +445,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/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationLink.java
Thu Aug 15 17:07:57 2019
@@ -255,7 +255,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/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationPolygon.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationPolygon.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationPolygon.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationPolygon.java
Thu Aug 15 17:07:57 2019
@@ -191,7 +191,7 @@ public class PDAnnotationPolygon extends
     {
         if (customAppearanceHandler == null)
         {
-            PDPolygonAppearanceHandler appearanceHandler = new PDPolygonAppearanceHandler(this);
+            PDPolygonAppearanceHandler appearanceHandler = new PDPolygonAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationPolyline.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationPolyline.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationPolyline.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationPolyline.java
Thu Aug 15 17:07:57 2019
@@ -204,7 +204,7 @@ public class PDAnnotationPolyline extend
     {
         if (customAppearanceHandler == null)
         {
-            PDPolylineAppearanceHandler appearanceHandler = new PDPolylineAppearanceHandler(this);
+            PDPolylineAppearanceHandler appearanceHandler = new PDPolylineAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSound.java
Thu Aug 15 17:07:57 2019
@@ -70,7 +70,7 @@ public class PDAnnotationSound extends P
     {
         if (customAppearanceHandler == null)
         {
-            PDSoundAppearanceHandler appearanceHandler = new PDSoundAppearanceHandler(this);
+            PDSoundAppearanceHandler appearanceHandler = new PDSoundAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquare.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquare.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquare.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquare.java
Thu Aug 15 17:07:57 2019
@@ -70,7 +70,7 @@ public class PDAnnotationSquare extends
     {
         if (customAppearanceHandler == null)
         {
-            PDSquareAppearanceHandler appearanceHandler = new PDSquareAppearanceHandler(this);
+            PDSquareAppearanceHandler appearanceHandler = new PDSquareAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquiggly.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquiggly.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquiggly.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationSquiggly.java
Thu Aug 15 17:07:57 2019
@@ -73,7 +73,7 @@ public class PDAnnotationSquiggly extend
     {
         if (customAppearanceHandler == null)
         {
-            PDSquigglyAppearanceHandler appearanceHandler = new PDSquigglyAppearanceHandler(this);
+            PDSquigglyAppearanceHandler appearanceHandler = new PDSquigglyAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationStrikeout.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationStrikeout.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationStrikeout.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationStrikeout.java
Thu Aug 15 17:07:57 2019
@@ -73,7 +73,7 @@ public class PDAnnotationStrikeout exten
     {
         if (customAppearanceHandler == null)
         {
-            PDStrikeoutAppearanceHandler appearanceHandler = new PDStrikeoutAppearanceHandler(this);
+            PDStrikeoutAppearanceHandler appearanceHandler = new PDStrikeoutAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else

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

Modified: pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationUnderline.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationUnderline.java?rev=1865238&r1=1865237&r2=1865238&view=diff
==============================================================================
--- pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationUnderline.java
(original)
+++ pdfbox/branches/issue4569/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDAnnotationUnderline.java
Thu Aug 15 17:07:57 2019
@@ -73,7 +73,7 @@ public class PDAnnotationUnderline exten
     {
         if (customAppearanceHandler == null)
         {
-            PDUnderlineAppearanceHandler appearanceHandler = new PDUnderlineAppearanceHandler(this);
+            PDUnderlineAppearanceHandler appearanceHandler = new PDUnderlineAppearanceHandler(this,
document);
             appearanceHandler.generateAppearanceStreams();
         }
         else



Mime
View raw message