public interface GeneratePDFService
Modifier and Type | Method and Description |
---|---|
Map |
createPDF(Document inputDoc,
String inputFileName,
String fileTypeSettings,
String pdfSettings,
String securitySettings,
Document settingsDoc,
Document xmpDoc)
Deprecated.
|
CreatePDFResult |
createPDF2(Document inputDoc,
String inputFileExtension,
String fileTypeSettings,
String pdfSettings,
String securitySettings,
Document settingsDoc,
Document xmpDoc)
Creates Adobe PDF from supported file types.
|
Map |
exportPDF(Document inputDoc,
String inputFileName,
String formatType,
Document settingsDoc)
Deprecated.
|
ExportPDFResult |
exportPDF2(Document inputDoc,
String inputFileExtension,
String formatType,
Document settingsDoc)
Converts Adobe PDF to supported application extensions.
|
ExportPDFResult |
exportPDF3(Document inputDoc,
String inputFileExtension,
String formatType,
Document customPreflightProfile,
Document settingsDoc)
Converts Adobe PDF to supported application extensions.
|
HtmlToPdfResult |
htmlFileToPdf(Document inputDoc,
String fileTypeSettingsName,
String securitySettingsName,
Document settingsDoc,
Document xmpDoc)
Creates PDF from Input Document containing the HTML page(s).
|
Map |
htmlToPdf(String inputUrl,
String fileTypeSettingsName,
String securitySettingsName,
Document settingsDoc,
Document xmpDoc)
Deprecated.
|
HtmlToPdfResult |
htmlToPdf2(String inputUrl,
String fileTypeSettingsName,
String securitySettingsName,
Document settingsDoc,
Document xmpDoc)
Creates PDF from URLs pointing to an HTML page.
|
OptimizePDFResult |
optimizePDF(Document inputDoc,
String fileTypeSettings,
Document settingsDoc)
Optimizes the input pdf and also converts it to any of the PDF versions.
|
void |
updateGeneralConfig(Map<String,String[]> generalConfig)
This API updates the general configuration of PDFG.
|
Map createPDF(Document inputDoc, String inputFileName, String fileTypeSettings, String pdfSettings, String securitySettings, Document settingsDoc, Document xmpDoc) throws ConversionException, InvalidParameterException, FileFormatNotSupportedException
inputDoc
- The Document that needs to be converted.
com.adobe.idp.Document needs to be created over the input
document. Required Parameter.inputFileName
- File name with extension of the document that needs to be
converted. Required Parameter. While using Client SDK the key
to be supplied in input Map is "File Name with Extension".
fileTypeSettings
- Optional Parameter.While using Client SDK the key to be
supplied in input Map is "Filetype Settings". pdfSettings
- PDF OutPut settings that need to be applied. Optional
Parameter. They can be one of the following.
High_Quality_PrintsecuritySettings
- For applying security settings.The parameter is optional.
While using Client SDK the key to be supplied in input Map is
"Security Settings". settingsDoc
- The file that contains settings that need to be applied while
generating the pdf(like optimization for web view) and also
the settings that are applied once the pdf is
created(InitialView, Security). Optional Parameter.xmpDoc
- The file that contains metadata information that will be
applied to the generated pdf. The parameter is optional.ConversionException
InvalidParameterException
FileFormatNotSupportedException
CreatePDFResult createPDF2(Document inputDoc, String inputFileExtension, String fileTypeSettings, String pdfSettings, String securitySettings, Document settingsDoc, Document xmpDoc) throws ConversionException, InvalidParameterException, FileFormatNotSupportedException
inputDoc
- The Document that needs to be converted.
com.adobe.idp.Document needs to be created over the input
document. Required Parameter.inputFileExtension
- File name with extension of the document that needs to be
converted. Required Parameter. While using Client SDK the key
to be supplied in input Map is "File Name with Extension".
fileTypeSettings
- Optional Parameter.While using Client SDK the key to be
supplied in input Map is "Filetype Settings". pdfSettings
- PDF OutPut settings that need to be applied. Optional
Parameter. They can be one of the following.
High_Quality_PrintsecuritySettings
- For applying security settings.The parameter is optional.
While using Client SDK the key to be supplied in input Map is
"Security Settings". settingsDoc
- The file that contains settings that need to be applied while
generating the pdf(like optimization for web view) and also
the settings that are applied once the pdf is
created(InitialView, Security). Optional Parameter.xmpDoc
- The file that contains metadata information that will be
applied to the generated pdf. The parameter is optional.ConversionException
InvalidParameterException
FileFormatNotSupportedException
HtmlToPdfResult htmlFileToPdf(Document inputDoc, String fileTypeSettingsName, String securitySettingsName, Document settingsDoc, Document xmpDoc) throws ConversionException, InvalidParameterException, FileFormatNotSupportedException
inputDoc
- The document containg the single HTML page or a zip containg the HTML pages, which need to
be converted to PDFfileTypeSettingsName
- securitySettingsName
- settingsDoc
- The configuration document used for the settings. Only the
security settings and the filetype settings are used while
converting to PDF document.xmpDoc
- The XMP metadata document to be merged into the generated PDF
document.ConversionException
InvalidParameterException
FileFormatNotSupportedException
Map htmlToPdf(String inputUrl, String fileTypeSettingsName, String securitySettingsName, Document settingsDoc, Document xmpDoc) throws ConversionException, InvalidParameterException, FileFormatNotSupportedException
inputUrl
- The URL pointing to the webpage or HTML file, which needs to
be converted to PDFfileTypeSettingsName
- securitySettingsName
- settingsDoc
- The configuration document used for the settings. Only the
security settings and the filetype settings are used while
converting to PDF document.xmpDoc
- The XMP metadata document to be merged into the generated PDF
document.ConversionException
InvalidParameterException
FileFormatNotSupportedException
HtmlToPdfResult htmlToPdf2(String inputUrl, String fileTypeSettingsName, String securitySettingsName, Document settingsDoc, Document xmpDoc) throws ConversionException, InvalidParameterException, FileFormatNotSupportedException
inputUrl
- The URL pointing to the webpage or HTML file, which needs to
be converted to PDFfileTypeSettingsName
- securitySettingsName
- settingsDoc
- The configuration document used for the settings. Only the
security settings and the filetype settings are used while
converting to PDF document.xmpDoc
- The XMP metadata document to be merged into the generated PDF
document.ConversionException
InvalidParameterException
FileFormatNotSupportedException
Map exportPDF(Document inputDoc, String inputFileName, String formatType, Document settingsDoc) throws ConversionException, InvalidParameterException, FileFormatNotSupportedException
inputDoc
- The document that needs to be converted. inputFileName
- The name of the input document. formatType
- settingsDoc
- The document holding the configuration file. This is typically
ConversionException
InvalidParameterException
FileFormatNotSupportedException
ExportPDFResult exportPDF2(Document inputDoc, String inputFileExtension, String formatType, Document settingsDoc) throws ConversionException, InvalidParameterException, FileFormatNotSupportedException
inputDoc
- The document that needs to be converted. inputFileExtension
- The name of the input document. formatType
- settingsDoc
- The document holding the configuration file. This is typically
ConversionException
InvalidParameterException
FileFormatNotSupportedException
ExportPDFResult exportPDF3(Document inputDoc, String inputFileExtension, String formatType, Document customPreflightProfile, Document settingsDoc) throws ConversionException, InvalidParameterException, FileFormatNotSupportedException
inputDoc
- The document that needs to be converted. inputFileExtension
- The name of the input document. formatType
- customPreflightProfile
- A document containing the custom Preflight profile to be used during conversion to PDF/A. settingsDoc
- The document holding the configuration file. This is typically
ConversionException
InvalidParameterException
FileFormatNotSupportedException
OptimizePDFResult optimizePDF(Document inputDoc, String fileTypeSettings, Document settingsDoc) throws ConversionException, InvalidParameterException, FileFormatNotSupportedException
inputDoc
- The PDF Document that needs to be optimized.
com.adobe.idp.Document needs to be created over the input
document. Required Parameter.fileTypeSettings
- Optional Parameter.While using Client SDK the key to be
supplied in input Map is "Filetype Settings". settingsDoc
- Optional Parameter. The file that contains settings that need to be applied while
generating the output pdf. If provided, the fileTypeSettings parameter should be
ommitted.ConversionException
InvalidParameterException
FileFormatNotSupportedException
Copyright © 1982–2022 Adobe Systems Inc.. All rights reserved.