Class PDFLabel

java.lang.Object
com.moebiusgames.pdfbox.table.PDFLabel

public class PDFLabel extends Object
  • Constructor Details

    • PDFLabel

      public PDFLabel(float width)
    • PDFLabel

      public PDFLabel(float width, TextType textType)
  • Method Details

    • setText

      public void setText(String text)
    • getCell

      public final PDFTableCell getCell()
    • render

      public void render(PDFRenderContext renderContext, float x) throws IOException
      renders the label on the last page of the given render context directly under previously rendered elements
      Parameters:
      renderContext - the render context
      x - x position to render the label at
      Throws:
      IOException
    • render

      public void render(PDFRenderContext renderContext, float x, float y) throws IOException
      renders the label on the last page of the given render context
      Parameters:
      renderContext - the render context
      x - x position to render the label at
      y - y position to render the label at
      Throws:
      IOException
    • render

      public void render(PDFRenderContext renderContext, PDFPageWithStream page, float x, float y) throws IOException
      renders the label on the given page
      Parameters:
      renderContext - the render context
      page - the page to render the label on
      x - x position to render the label at
      y - y position to render the label at
      Throws:
      IOException