You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2023/10/04 17:07:23 UTC

[pdfbox-docs] branch master updated: PDFBOX-3330: include annotation class changes in migration guide

This is an automated email from the ASF dual-hosted git repository.

tilman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git


The following commit(s) were added to refs/heads/master by this push:
     new c9782e2b PDFBOX-3330: include annotation class changes in migration guide
c9782e2b is described below

commit c9782e2b7f87bf83c30113a7471c009a595d4693
Author: Tilman Hausherr <ti...@snafu.de>
AuthorDate: Wed Oct 4 19:07:18 2023 +0200

    PDFBOX-3330: include annotation class changes in migration guide
---
 content/3.0/migration.md | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/content/3.0/migration.md b/content/3.0/migration.md
index 1b3b151e..7415f051 100644
--- a/content/3.0/migration.md
+++ b/content/3.0/migration.md
@@ -197,6 +197,10 @@ thrown at runtime as the `float` overloads of these methods accept only values i
 To retain RGB colors defines as 0-255 integer triples, construct a `java.awt.Color` instance and use the relevant overload. Alternatively, convert values to the 0-1
 range and define using `float` triples instead.
 
+### Changes to annotation classes
+
+Instead of using the `PDAnnotationTextMarkup`, `PDAnnotationSquareCircle` or the `PDAnnotationMarkup` classes when creating certain annotations, use their subclasses `PDAnnotationCaret`, `PDAnnotationFreeText`, `PDAnnotationInk`, `PDAnnotationPolygon`, `PDAnnotationPolyline`, `PDAnnotationSound`, `PDAnnotationCircle`, `PDAnnotationSquare`,  `PDAnnotationHighlight`, `PDAnnotationSquiggly`, `PDAnnotationStrikeout` and `PDAnnotationUnderline`.
+
 ## Changes in Common Functions 
 
 ### Interactive Forms