Re: What is the replacement of org.apache.pdfbox.cos.COSDocument.getObjects in 3.x?

2025-06-17 Thread Tilman Hausherr
I didn't find anything at first, but then I remembered that the WriteDecodedDoc  utility looked at all objects... old: for (COSObject cosObject : doc.getDocument().getObjects()) new: COSDocument cosDocument = doc.getDocument(); cosDocument.getXrefTable().keySet().stream().forEach(o -> proces

Re: What is the replacement of org.apache.pdfbox.cos.COSDocument.getObjects in 3.x?

2025-06-17 Thread Jan Luehe
Perhaps this could be added to the migration guide ? On Tue, Jun 17, 2025 at 11:47 AM Jan Luehe wrote: > Thank you, Tilman, for your quick response! > > Jan > > On Tue, Jun 17, 2025 at 11:38 AM Tilman Hausherr > wrote: > >> I didn't find anything at

What is the replacement of org.apache.pdfbox.cos.COSDocument.getObjects in 3.x?

2025-06-17 Thread Jan Luehe
What is the replacement of org.apache.pdfbox.cos.COSDocument.getObjects ( https://javadoc.io/static/org.apache.pdfbox/pdfbox/2.0.34/org/apache/pdfbox/cos/COSDocument.html#getObjects--) in 3.x? We have the following code which works with 2.x that we need to port to 3.x: org.apache.pdfbox.pdmodel.P

Re: What is the replacement of org.apache.pdfbox.cos.COSDocument.getObjects in 3.x?

2025-06-17 Thread Jan Luehe
Thank you, Tilman, for your quick response! Jan On Tue, Jun 17, 2025 at 11:38 AM Tilman Hausherr wrote: > I didn't find anything at first, but then I remembered that > the WriteDecodedDoc utility looked at all objects... > > old: > > for (COSObject cosObject : doc.getDocument().getObjects()) >