Package com.teamten.typeset
Class PdfUtil
java.lang.Object
com.teamten.typeset.PdfUtil
Static methods for helping draw into PDF files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
drawDebugRectangle
(org.apache.pdfbox.pdmodel.PDPageContentStream contents, long x, long y, long width, long height) Draw a light gray rectangle at the specified scaled point coordinates.static void
drawSolidRectangle
(org.apache.pdfbox.pdmodel.PDPageContentStream contents, long x, long y, long width, long height) Draw a solid black rectangle at the specified scaled point coordinates.
-
Constructor Details
-
PdfUtil
public PdfUtil()
-
-
Method Details
-
drawDebugRectangle
public static void drawDebugRectangle(org.apache.pdfbox.pdmodel.PDPageContentStream contents, long x, long y, long width, long height) throws IOException Draw a light gray rectangle at the specified scaled point coordinates.- Parameters:
x
- lower-left X coordinate.y
- lower-left Y coordinate.- Throws:
IOException
-
drawSolidRectangle
public static void drawSolidRectangle(org.apache.pdfbox.pdmodel.PDPageContentStream contents, long x, long y, long width, long height) throws IOException Draw a solid black rectangle at the specified scaled point coordinates.- Parameters:
x
- lower-left X coordinate.y
- lower-left Y coordinate.- Throws:
IOException
-