public class HtmlStamper extends Stamper
PdfDocument
by adding new content designed in HTML, CSS and JavaScript.
An implementation of Stamper
.
Constructor and Description |
---|
HtmlStamper()
Initializes a new instance of the
HtmlStamper class. |
HtmlStamper(String html)
Initializes a new instance of the
HtmlStamper class. |
HtmlStamper(String html,
Path baseUrl)
Initializes a new instance of the
HtmlStamper class. |
HtmlStamper(String html,
String baseUrlString)
Initializes a new instance of the
HtmlStamper class. |
Modifier and Type | Method and Description |
---|---|
CssMediaType |
getCssMediaType()
Gets css media type.
|
String |
getHtmlBaseUrl()
Gets the HTML base URL for which references to external CSS, Javascript and Image files will be
relative.
|
int |
getRenderDelay()
Gets render delay.
|
int |
getTimeout()
Gets timeout.
|
void |
setCssMediaType(CssMediaType value)
Sets css media type.
|
void |
setHtmlBaseUrl(String value)
Sets the HTML base URL for which references to external CSS, Javascript and Image files will be
relative.
|
void |
setRenderDelay(int value)
Sets render delay.
|
void |
setTimeout(int value)
Sets timeout.
|
getHorizontalAlignment, getHorizontalOffset, getHtml, getHyperlink, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpacity, getRotation, getScale, getVerticalAlignment, getVerticalOffset, isStampBehindContent, setHorizontalAlignment, setHorizontalOffset, setHtml, setHyperlink, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setRotation, setScale, setStampBehindContent, setVerticalAlignment, setVerticalOffset
public HtmlStamper(String html)
HtmlStamper
class.html
- The HTML string.public HtmlStamper(String html, String baseUrlString)
HtmlStamper
class.html
- The HTML string.baseUrlString
- The HTML base URL for which references to external CSS, Javascript and Image files will be relative.public HtmlStamper(String html, Path baseUrl)
HtmlStamper
class.html
- The HTML string.baseUrl
- The HTML base URL for which references to external CSS, Javascript and Image files will be relative.public HtmlStamper()
HtmlStamper
class.public final String getHtmlBaseUrl()
public final void setHtmlBaseUrl(String value)
value
- the valuepublic final int getRenderDelay()
Default value is 0.
public final void setRenderDelay(int value)
Default value is 0.
value
- the valuepublic final int getTimeout()
Default value is 60.
public final void setTimeout(int value)
Default value is 60.
value
- the valuepublic final CssMediaType getCssMediaType()
Note: By setting CssMediaType=PRINT, IronPdf renders Stamp from HTML using CSS for media="print" as if printing a web page in a browser print dialog. It renders exactly as per Google Chrome.
Default value is CssMediaType.SCREEN.
public final void setCssMediaType(CssMediaType value)
Note: By setting CssMediaType=PRINT, IronPdf renders Stamp from HTML using CSS for media="print" as if printing a web page in a browser print dialog. It renders exactly as per Google Chrome.
Default value is CssMediaType.SCREEN.
value
- the valueCopyright © 2022–2023 Iron Software. All rights reserved.