Some commercial drawing tools approximate a circle by 4 Bezier Curves (quadrants) . See https://stackoverflow.com/questions/1734745/how-to-create-circle-with-b%C3%A9zier-curves .
On Wed, Nov 27, 2024 at 8:22 AM Ulf Dittmer <ulf.ditt...@googlemail.com.invalid> wrote: > 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 > > > > > -- Peter Murray-Rust Founder ContentMine.org and Reader Emeritus in Molecular Informatics Dept. Of Chemistry, University of Cambridge, CB2 1EW, UK