Class PdfUtil

java.lang.Object
com.teamten.typeset.PdfUtil

public class PdfUtil extends Object
Static methods for helping draw into PDF files.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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