public final class Render_Api extends Object
Constructor and Description |
---|
Render_Api() |
Modifier and Type | Method and Description |
---|---|
static InternalPdfDocument |
renderHtmlAsPdf(String html)
Creates a PDF file from a Html string, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlAsPdf(String html,
ChromeHttpLoginCredentials loginCredentials)
Creates a PDF file from a Html string, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlAsPdf(String html,
ChromePdfRenderOptions renderOptions)
Creates a PDF file from a Html string, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlAsPdf(String html,
ChromePdfRenderOptions renderOptions,
ChromeHttpLoginCredentials loginCredentials)
Creates a PDF file from a Html string, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlAsPdf(String html,
ChromePdfRenderOptions renderOptions,
ChromeHttpLoginCredentials loginCredentials,
String baseUrl)
Creates a PDF file from a Html string, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlAsPdf(String html,
String baseUrl)
Creates a PDF file from a Html string, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlAsPdf(String html,
String baseUrl,
ChromeHttpLoginCredentials loginCredentials)
Creates a PDF file from a Html string, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlAsPdf(String html,
String baseUrl,
ChromePdfRenderOptions renderOptions)
Creates a PDF file from a Html string, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlFileAsPdf(String htmlFilePath)
Creates a PDF file from a local Html file, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlFileAsPdf(String htmlFilePath,
ChromeHttpLoginCredentials loginCredentials)
Creates a PDF file from a local Html file, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlFileAsPdf(String htmlFilePath,
ChromePdfRenderOptions renderOptions)
Creates a PDF file from a local Html file, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderHtmlFileAsPdf(String htmlFilePath,
String baseUrl,
ChromePdfRenderOptions renderOptions,
ChromeHttpLoginCredentials loginCredentials)
Creates a PDF file from a local Html file, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderRtfAsPdf(String rtfString)
Creates a PDF file from RTF string, and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderUrlAsPdf(String url)
Creates a PDF file from a URL or local file path and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderUrlAsPdf(String url,
ChromeHttpLoginCredentials loginCredentials)
Creates a PDF file from a URL or local file path and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderUrlAsPdf(String url,
ChromePdfRenderOptions renderOptions)
Creates a PDF file from a URL or local file path and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderUrlAsPdf(String url,
ChromePdfRenderOptions renderOptions,
ChromeHttpLoginCredentials loginCredentials)
Creates a PDF file from a URL or local file path and returns it as a
InternalPdfDocument . |
static InternalPdfDocument |
renderZipAsPdf(Path zipFilePath,
String mainFile,
ChromePdfRenderOptions renderOptions,
ChromeHttpLoginCredentials loginCredentials) |
public static InternalPdfDocument renderHtmlFileAsPdf(String htmlFilePath) throws IOException
InternalPdfDocument
.htmlFilePath
- Path to a Html to be rendered as a PDF.InternalPdfDocument
IOException
- the io exceptionpublic static InternalPdfDocument renderHtmlFileAsPdf(String htmlFilePath, String baseUrl, ChromePdfRenderOptions renderOptions, ChromeHttpLoginCredentials loginCredentials) throws IOException
InternalPdfDocument
.htmlFilePath
- Path to a Html to be rendered as a PDF.renderOptions
- Rendering optionsloginCredentials
- Http login credentialsInternalPdfDocument
IOException
- the io exceptionpublic static InternalPdfDocument renderHtmlAsPdf(String html, ChromePdfRenderOptions renderOptions, ChromeHttpLoginCredentials loginCredentials, String baseUrl)
InternalPdfDocument
.html
- The Html to be rendered as a PDF.renderOptions
- Rendering optionsloginCredentials
- Http login credentialsbaseUrl
- Optional. Setting the BaseURL property gives the relative file path or URL context for hyperlinks, images, CSS and JavaScript files.InternalPdfDocument
public static InternalPdfDocument renderHtmlFileAsPdf(String htmlFilePath, ChromeHttpLoginCredentials loginCredentials) throws IOException
InternalPdfDocument
.htmlFilePath
- Path to a Html to be rendered as a PDF.loginCredentials
- Http login credentialsInternalPdfDocument
IOException
- the io exceptionpublic static InternalPdfDocument renderHtmlFileAsPdf(String htmlFilePath, ChromePdfRenderOptions renderOptions) throws IOException
InternalPdfDocument
.htmlFilePath
- Path to a Html to be rendered as a PDF.renderOptions
- Rendering optionsInternalPdfDocument
IOException
- the io exceptionpublic static InternalPdfDocument renderUrlAsPdf(String url)
InternalPdfDocument
.url
- An absolute (fully formed) Uri. Points to the Html document to be rendered as a PDF.InternalPdfDocument
public static InternalPdfDocument renderUrlAsPdf(String url, ChromePdfRenderOptions renderOptions, ChromeHttpLoginCredentials loginCredentials)
InternalPdfDocument
.url
- An absolute (fully formed) Uri. Points to the Html document to be rendered as a PDF.renderOptions
- Rendering optionsloginCredentials
- Http login credentialsInternalPdfDocument
public static InternalPdfDocument renderUrlAsPdf(String url, ChromeHttpLoginCredentials loginCredentials)
InternalPdfDocument
.url
- An absolute (fully formed) Uri. Points to the Html document to be rendered as a PDF.loginCredentials
- Http login credentialsInternalPdfDocument
public static InternalPdfDocument renderUrlAsPdf(String url, ChromePdfRenderOptions renderOptions)
InternalPdfDocument
.url
- An absolute (fully formed) Uri. Points to the Html document to be rendered as a PDF.renderOptions
- Rendering optionsInternalPdfDocument
public static InternalPdfDocument renderHtmlAsPdf(String html)
InternalPdfDocument
.html
- The Html to be rendered as a PDF.InternalPdfDocument
public static InternalPdfDocument renderHtmlAsPdf(String html, String baseUrl, ChromeHttpLoginCredentials loginCredentials)
InternalPdfDocument
.html
- The Html to be rendered as a PDF.baseUrl
- Optional. Setting the BaseURL property gives the relative file path or URL context for hyperlinks, images, CSS and JavaScript files.loginCredentials
- Http login credentialsInternalPdfDocument
public static InternalPdfDocument renderHtmlAsPdf(String html, String baseUrl, ChromePdfRenderOptions renderOptions)
InternalPdfDocument
.html
- The Html to be rendered as a PDF.baseUrl
- Optional. Setting the BaseURL property gives the relative file path or URL context for hyperlinks, images, CSS and JavaScript files.renderOptions
- Rendering optionsInternalPdfDocument
public static InternalPdfDocument renderHtmlAsPdf(String html, ChromePdfRenderOptions renderOptions, ChromeHttpLoginCredentials loginCredentials)
InternalPdfDocument
.html
- The Html to be rendered as a PDF.renderOptions
- Rendering optionsloginCredentials
- Http login credentialsInternalPdfDocument
public static InternalPdfDocument renderHtmlAsPdf(String html, String baseUrl)
InternalPdfDocument
.html
- The Html to be rendered as a PDF.baseUrl
- Optional. Setting the BaseURL property gives the relative file path or URL context for hyperlinks, images, CSS and JavaScript files.InternalPdfDocument
public static InternalPdfDocument renderHtmlAsPdf(String html, ChromeHttpLoginCredentials loginCredentials)
InternalPdfDocument
.html
- The Html to be rendered as a PDF.loginCredentials
- Http login credentialsInternalPdfDocument
public static InternalPdfDocument renderHtmlAsPdf(String html, ChromePdfRenderOptions renderOptions)
InternalPdfDocument
.html
- The Html to be rendered as a PDF.renderOptions
- Rendering optionsInternalPdfDocument
public static InternalPdfDocument renderRtfAsPdf(String rtfString)
InternalPdfDocument
.rtfString
- The RTF string to be rendered as a PDF.InternalPdfDocument
public static InternalPdfDocument renderZipAsPdf(Path zipFilePath, String mainFile, ChromePdfRenderOptions renderOptions, ChromeHttpLoginCredentials loginCredentials) throws IOException
IOException
Copyright © 2022–2023 Iron Software. All rights reserved.