Re: A common interface for the subclasses of PDAbstractContentStream

2025-03-04 Thread Kevin Day
Ah, I see what you are saying. Yes, I see how this wouldn't be a breaking change at all. Sorry for my confusion. On Tue, Mar 4, 2025, 2:27 AM Mark de Does wrote: > Kevin, Others, > > See my more elaborate response to Andreas Lehmkuehler. > > It is not a breaking change as existing code uses the

NPE during appendDocument

2025-03-04 Thread Olli Git
Hi! I want to merge several Documents to a single PDF-Document. The Docs I want to merge were previously splitted from a bigger document. During my loop I received the following Exception java.lang.NullPointerException: Cannot invoke "org.apache.pdfbox.pdmodel.common.COSObjectable.getCOSObject()"

Re: NPE during appendDocument

2025-03-04 Thread Tilman Hausherr
On 04.03.2025 19:50, Tilman Hausherr wrote: I think this can be fixed, by putting null as new value if the old value is null, or skipping it. Are you willing to test snapshot versions? https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox-app/3.0.5-SNAPSHOT/ -

Re: A common interface for the subclasses of PDAbstractContentStream

2025-03-04 Thread Mark de Does
Kevin, Others, See my more elaborate response to Andreas Lehmkuehler. It is not a breaking change as existing code uses the existing methods, that are unchanged. So let's not rename PDAbstractContentStream. That might be a breaking change. (I think it is not, but let's stay on the safe side)

Re: A common interface for the subclasses of PDAbstractContentStream

2025-03-04 Thread Mark de Does
With PDFBox 2, It was possible to construct a PDPageContentStream that issues (drawing) instructions to one of the following: * A PDPage (root in SVG terms) * A PDAppearanceStream ( in SVG terms) * A PDTilingPatten ( in SVG terms) In PDFBox 3, it is no longer possible to construct a PDPageC

AW: Mispositioning of elements

2025-03-04 Thread Stephan Wenders
Hi everybody, I have to apologize! My problem has nothing to do with pdf box. If I download the created pdf-File and open it again in acrobat reader, the problem is gone. After that I discovered that the problem only occurs with the built in pdf-viewer of firefox. Sorry for my hasty actions.