Jacob Collins Jacob is a Java developer and the product manager of JPedal

How to draw shapes in PDF files in Java (Tutorial)

29 sec read

JPedal PDF manipulation tool

Drawing shapes in Java for PDFs is easy with our PDF toolkit JPedal.

It only takes three steps:

  1. Download the JPedal trial jar
  2. Create your shape using Java’s Shape interface
  3. Run the following code snippet

For more information on drawing shapes in Java for PDFs, and other manipulations you can perform with JPedal, check out our support site.

We have been working with PDF technology for the more than 2 decades! Please feel free to read our other blog posts to better understand the PDF format.



The JPedal PDF library allows you to solve these problems in Java


Jacob Collins Jacob is a Java developer and the product manager of JPedal