|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.doc.style.css.AbstractStyleDatabase
info.informatica.doc.pdf.itext.PDFStyleDatabase
public class PDFStyleDatabase
PDF/iText Style database.
| Field Summary | |
|---|---|
protected com.itextpdf.text.Rectangle |
pageSize
|
| Fields inherited from class info.informatica.doc.style.css.AbstractStyleDatabase |
|---|
DEFAULT_GENERIC_FONT_FAMILY, DEFAULT_INITIAL_COLOR |
| Constructor Summary | |
|---|---|
PDFStyleDatabase()
Creates a style database for a PDF of A4 size. |
|
PDFStyleDatabase(com.itextpdf.text.Rectangle pageSize)
|
|
| Method Summary | |
|---|---|
protected float |
cmToPixels(float cm)
Converts from centimeters to pixels. |
String |
getDefaultGenericFontFamily(String genericFamily)
Gets the name of the default font used when a generic font family (serif, sans-serif, monospace, cursive, fantasy) is specified. |
float |
getDocumentHeight()
Gets the height of the document (or screen viewport) in the natural unit for the device. |
float |
getDocumentWidth()
Gets the width of the document (or screen viewport) in the natural unit for the device. |
int |
getFontSizeFromIdentifier(String familyName,
String fontSizeIdentifier)
Gets the font size from the given size identifier (small, medium, etc.), expressed in typographic points. |
short |
getFontSizeUnit()
|
short |
getNaturalUnit()
Gets the identifier of the device's natural unit. |
float |
getWidthSize(String widthIdentifier)
Gets the size corresponging to the given identifier (thin, thick, medium). |
boolean |
isFontFamilyAvailable(String fontFamily)
Checks if a font family is available. |
protected float |
pxTocm(int px)
Converts from pixels to centimeters. |
void |
setPageSize(com.itextpdf.text.Rectangle pageSize)
Sets the page size for this PDF. |
| Methods inherited from class info.informatica.doc.style.css.AbstractStyleDatabase |
|---|
floatValueConversion, floatValueConversion, getDefaultGenericFontFamily, getExSizeInPt, getInitialColor, getScrollbarWidth, setInitialColor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected com.itextpdf.text.Rectangle pageSize
| Constructor Detail |
|---|
public PDFStyleDatabase()
public PDFStyleDatabase(com.itextpdf.text.Rectangle pageSize)
| Method Detail |
|---|
public void setPageSize(com.itextpdf.text.Rectangle pageSize)
pageSize - the page size.public String getDefaultGenericFontFamily(String genericFamily)
StyleDatabase
genericFamily - the name of the logical font.
public boolean isFontFamilyAvailable(String fontFamily)
StyleDatabase
fontFamily - the font family name.
public int getFontSizeFromIdentifier(String familyName,
String fontSizeIdentifier)
throws DOMException
StyleDatabase
familyName - the font family name.fontSizeIdentifier - the font size identifier.
DOMExceptionpublic float getDocumentHeight()
StyleDatabase
public short getFontSizeUnit()
public short getNaturalUnit()
StyleDatabase
CSSPrimitiveValue.public float getDocumentWidth()
StyleDatabase
public float getWidthSize(String widthIdentifier)
throws DOMException
StyleDatabase
widthIdentifier - the CSS width identifier.
DOMExceptionprotected float cmToPixels(float cm)
AbstractStyleDatabase
cmToPixels in class AbstractStyleDatabasecm - the value, in centimeters, to be converted.
protected float pxTocm(int px)
AbstractStyleDatabase
pxTocm in class AbstractStyleDatabasepx - the value, in pixels, to be converted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||