I haven't tried this myself, but it sounds as if https://github.com/rototor/pdfbox-graphics2d makes it possible to use Java's Graphics2D API to draw into a PDF created with PDFBox.
Ulf On Tue, Nov 26, 2024 at 11:50 PM <r.barc...@habmalnefrage.de.invalid> wrote: > Hello, > > If we want to draw a rectangle, this is quite easy using addRect. > > What do you think is the simplest way to draw a circle of a certain radius > or diameter, either only the border or filled, without having to include > third party libraries as dependency/ies? > > I hoped for "addCircle" but didn't find that. > If there isn't a ready-to-use PDFBox function for that, I suspect there > might be a PDF or PostScript "command" that one could inject for a 360° > circle/arc? > Chances for a one-liner or something similary simple? > > I use PDFBox 3.0.3. > > Thank you for your hints! > Reg > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > >