public final class PDFDocument extends Object
Constructor and Description |
---|
PDFDocument() |
Modifier and Type | Method and Description |
---|---|
String |
getAuthPassword() |
String |
getAuthUser() |
boolean |
getBookmark() |
PDFPageMark |
getFooter() |
PDFPageMark |
getHeader() |
boolean |
getHtmlBookmark() |
boolean |
getLocalUrl() |
String |
getName() |
String |
getProxypassword() |
int |
getProxyport() |
String |
getProxyserver() |
String |
getProxyuser() |
String |
getUserAgent() |
boolean |
hasProxy() |
byte[] |
render(Dimension dimension,
double unitFactor,
PageContext pc,
boolean generateOutlines) |
void |
setAuthPassword(String authPassword) |
void |
setAuthUser(String authUser) |
void |
setBody(String body) |
void |
setBookmark(boolean bookmark) |
void |
setFontembed(int fontembed) |
void |
setFooter(PDFPageMark footer) |
void |
setHeader(PDFPageMark header) |
void |
setHtmlBookmark(boolean htmlBookmark) |
void |
setLocalUrl(boolean localUrl) |
void |
setMarginbottom(double marginbottom) |
void |
setMarginleft(double marginleft) |
void |
setMarginright(double marginright) |
void |
setMargintop(double margintop) |
void |
setMimetype(String strMimetype) |
void |
setName(String name) |
void |
setProxypassword(String proxypassword)
set the value password
When required by a proxy server, a valid password.
|
void |
setProxyport(int proxyport)
set the value proxyport
The port number on the proxy server from which the object is requested.
|
void |
setProxyserver(String proxyserver)
set the value proxyserver
Host name or IP address of a proxy server.
|
void |
setProxyuser(String proxyuser)
set the value username
When required by a proxy server, a valid username.
|
void |
setSrc(String src) |
void |
setSrcfile(Resource srcfile) |
void |
setUserAgent(String userAgent) |
static int |
toPoint(double value,
double unitFactor) |
public static final Dimension PAGETYPE_ISOB5
public static final Dimension PAGETYPE_ISOB4
public static final Dimension PAGETYPE_ISOB3
public static final Dimension PAGETYPE_ISOB2
public static final Dimension PAGETYPE_ISOB1
public static final Dimension PAGETYPE_ISOB0
public static final Dimension PAGETYPE_HALFLETTER
public static final Dimension PAGETYPE_LETTER
public static final Dimension PAGETYPE_TABLOID
public static final Dimension PAGETYPE_LEDGER
public static final Dimension PAGETYPE_NOTE
public static final Dimension PAGETYPE_LEGAL
public static final Dimension PAGETYPE_A10
public static final Dimension PAGETYPE_A9
public static final Dimension PAGETYPE_A8
public static final Dimension PAGETYPE_A7
public static final Dimension PAGETYPE_A6
public static final Dimension PAGETYPE_A5
public static final Dimension PAGETYPE_A4
public static final Dimension PAGETYPE_A3
public static final Dimension PAGETYPE_A2
public static final Dimension PAGETYPE_A1
public static final Dimension PAGETYPE_A0
public static final Dimension PAGETYPE_B4
public static final Dimension PAGETYPE_B5
public static final Dimension PAGETYPE_B4_JIS
public static final Dimension PAGETYPE_B5_JIS
public static final Dimension PAGETYPE_CUSTOM
public static final int ENC_NONE
public static final int ENC_40BIT
public static final int ENC_128BIT
public static final int FONT_EMBED_NO
public static final int FONT_EMBED_YES
public static final int FONT_EMBED_SELECCTIVE
public static final double UNIT_FACTOR_CM
public static final double UNIT_FACTOR_IN
public static final double UNIT_FACTOR_POINT
public PDFDocument()
public void setHeader(PDFPageMark header)
public void setFooter(PDFPageMark footer)
public void setMarginbottom(double marginbottom)
marginbottom
- the marginbottom to setpublic void setMarginleft(double marginleft)
marginleft
- the marginleft to setpublic void setMarginright(double marginright)
marginright
- the marginright to setpublic void setMargintop(double margintop)
margintop
- the margintop to setpublic void setMimetype(String strMimetype)
strMimetype
- the mimetype to setpublic void setProxyserver(String proxyserver)
proxyserver
- value to setpublic void setProxyport(int proxyport)
proxyport
- value to setpublic void setProxyuser(String proxyuser)
proxyuser
- value to setpublic void setProxypassword(String proxypassword)
proxypassword
- value to setpublic void setSrc(String src) throws PDFException
src
- PDFException
public void setSrcfile(Resource srcfile) throws PDFException
srcfile
- the srcfile to setPDFException
public byte[] render(Dimension dimension, double unitFactor, PageContext pc, boolean generateOutlines) throws PageException, IOException
PageException
IOException
public static int toPoint(double value, double unitFactor)
public PDFPageMark getHeader()
public PDFPageMark getFooter()
public void setFontembed(int fontembed)
public String getAuthUser()
public void setAuthUser(String authUser)
authUser
- the authUser to setpublic String getAuthPassword()
public void setAuthPassword(String authPassword)
authPassword
- the authPassword to setpublic String getUserAgent()
public void setUserAgent(String userAgent)
userAgent
- the userAgent to setpublic String getProxyserver()
public int getProxyport()
public String getProxyuser()
public String getProxypassword()
public boolean hasProxy()
public boolean getLocalUrl()
public void setLocalUrl(boolean localUrl)
localUrl
- the localUrl to setpublic boolean getBookmark()
public void setBookmark(boolean bookmark)
bookmark
- the bookmark to setpublic boolean getHtmlBookmark()
public void setHtmlBookmark(boolean htmlBookmark)
htmlBookmark
- the htmlBookmark to setCopyright © 2015 Lucee