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 2025/06/18 07:55:14 UTC
(pdfbox-docs) branch master updated: PDFBOX-5300: added migration of COSDocument.getObjects(), as suggested by Jan Luehe
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 54df903c PDFBOX-5300: added migration of COSDocument.getObjects(), as suggested by Jan Luehe
54df903c is described below
commit 54df903ca1d7754c491ef62a9eb9228480eb0e81
Author: Tilman Hausherr <ti...@apache.org>
AuthorDate: Wed Jun 18 09:54:52 2025 +0200
PDFBOX-5300: added migration of COSDocument.getObjects(), as suggested by Jan Luehe
---
content/3.0/migration.md | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/content/3.0/migration.md b/content/3.0/migration.md
index a9447ef4..527c6c7b 100644
--- a/content/3.0/migration.md
+++ b/content/3.0/migration.md
@@ -207,6 +207,11 @@ Instead of using the `PDAnnotationTextMarkup`, `PDAnnotationSquareCircle` or the
The convenience class `org.apache.pdfbox.util.Charsets` has been removed. Please use the java class `java.nio.charset.StandardCharsets` instead.
+### Changes when needing all objects
+
+Instead of using the `COSDocument.getObjects()` to get all objects, use `COSDocument.getXrefTable().keySet()`
+to get all the object keys, and then call `COSDocument.getObjectFromPool()` with these keys.
+
## Changes in Common Functions
### Interactive Forms