org.ujac.print
Class PdfHelper

java.lang.Object
  extended by org.ujac.print.PdfHelper

public class PdfHelper
extends Object

Name: PdfHelper
Description: Provides PDF processing related helper methods.

Author:
lauerc

Constructor Summary
PdfHelper()
           
 
Method Summary
static boolean fitsPage(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Document doc, com.lowagie.text.pdf.PdfPTable table)
          Checks whether or not the given table fits into the current page.
static float getCurrentVerticalPosition(com.lowagie.text.pdf.PdfWriter writer)
          Gets the current vertical position on the current page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PdfHelper

public PdfHelper()
Method Detail

fitsPage

public static final boolean fitsPage(com.lowagie.text.pdf.PdfWriter writer,
                                     com.lowagie.text.Document doc,
                                     com.lowagie.text.pdf.PdfPTable table)
                              throws com.lowagie.text.DocumentException
Checks whether or not the given table fits into the current page.

Parameters:
writer - The PDF writer.
doc - The document.
table - The table to place.
Returns:
true if the table fits the current page, else false.
Throws:
com.lowagie.text.DocumentException - In case the check failed.

getCurrentVerticalPosition

public static final float getCurrentVerticalPosition(com.lowagie.text.pdf.PdfWriter writer)
                                              throws com.lowagie.text.DocumentException
Gets the current vertical position on the current page.

Parameters:
writer - The PDF writer.
Returns:
The current vertical position on the current page.
Throws:
com.lowagie.text.DocumentException - In case the check failed.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.