public class PDFDocument extends Document
| Constructor and Description |
|---|
PDFDocument() |
PDFDocument(String name)
Create a PDF Document..
|
PDFDocument(String path,
String name)
Create a PDF Document.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateFile()
Generate a PDF file with the contents of the Body object defined.
|
void |
generateFile(OutputStream out) |
Tag |
getBody()
Gets the document's body.
|
Tag |
getFootFirstPage() |
Tag |
getHeadFirstPage() |
StyleSheet |
getStyleSheet() |
String |
getTitle()
Gets the document's title.
|
void |
setBody(Tag body)
Sets the document's body.
|
void |
setFoot(Tag foot) |
void |
setFootFirstPage(Tag footFirstPage) |
void |
setHead(Tag head) |
void |
setHeadFirstPage(Tag headFirstPage) |
void |
setStyleSheet(StyleSheet ss) |
void |
setTitle(String title)
Sets the document's title.
|
public PDFDocument()
public PDFDocument(String name)
name - The name without the extencion ".pdf".public void setTitle(String title)
title - The document's title on the filesystem.public void setBody(Tag body)
body - The Body object..public String getTitle()
public Tag getBody()
public void generateFile()
throws IOException
IOExceptionpublic void generateFile(OutputStream out) throws IOException
IOExceptionpublic void setHead(Tag head)
head - The head to set.public void setFoot(Tag foot)
foot - The foot to set.public Tag getFootFirstPage()
public void setFootFirstPage(Tag footFirstPage)
public Tag getHeadFirstPage()
public void setHeadFirstPage(Tag headFirstPage)
public void setStyleSheet(StyleSheet ss)
public StyleSheet getStyleSheet()
Copyright © 2015. All rights reserved.