com.adobe.pdfg
Interface Distiller


public interface Distiller


Method Summary
 java.util.Map createPDF(Document inputDoc, java.lang.String inputFileName, java.lang.String pdfSettings, java.lang.String securitySettings, Document settingsDoc, Document xmpDoc)
          Deprecated.  
 CreatePDFResult createPDF2(Document inputDoc, java.lang.String inputFileName, java.lang.String pdfSettings, java.lang.String securitySettings, Document settingsDoc, Document xmpDoc)
          Creates Adobe PDF from supported file types.
 

Method Detail

createPDF

java.util.Map createPDF(Document inputDoc,
                        java.lang.String inputFileName,
                        java.lang.String pdfSettings,
                        java.lang.String securitySettings,
                        Document settingsDoc,
                        Document xmpDoc)
                        throws ConversionException,
                               InvalidParameterException,
                               FileFormatNotSupportedException
Deprecated. 

Creates Adobe PDF from supported file types. The method takes in a file and converts it to PDF. Supported file formats are msword, mspowerpoint, msexcel, msproject, msvisio, publisher, autocad. In addition to these, any third party generic pdfgenerating application type can be plugged into it.

For conversion some parameters are mandatory and some are optional. An input document is converted to PDF. Security permissions, PDF Output Settings and Metadata information can be applied to the resultant PDF.

For invoking the API through client SDK, the API name is CreatePDF.

Parameters:
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".

pdfSettings - PDF OutPut settings that need to be applied. Optional Parameter. They can be one of the following. High_Quality_Print
PDFA1b_2005_RGB
PDFA1b_2005_CMYK
PDFX1a_2001
PDFX3_2002
Press_Quality
Smallest_File_Size
While using Client SDK the key to be supplied in input Map is "Adobe PDF Settings".

securitySettings - For applying security settings.The parameter is optional. While using Client SDK the key to be supplied in input Map is "Security Settings".

Can be one of the following No Security
Password Security
Certificate Security
Adobe Policy Server

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.

Returns:
A java.util.Map is returned with the results. Map keys are defined as
ConvertedDoc : This contains the PDF file that has been created
LogDoc : This contains the Log file that has been created
Throws:
ConversionException
InvalidParameterException
FileFormatNotSupportedException

createPDF2

CreatePDFResult createPDF2(Document inputDoc,
                           java.lang.String inputFileName,
                           java.lang.String pdfSettings,
                           java.lang.String securitySettings,
                           Document settingsDoc,
                           Document xmpDoc)
                           throws ConversionException,
                                  InvalidParameterException,
                                  FileFormatNotSupportedException
Creates Adobe PDF from supported file types. The method takes in a file and converts it to PDF. Supported file formats are msword, mspowerpoint, msexcel, msproject, msvisio, publisher, autocad. In addition to these, any third party generic pdfgenerating application type can be plugged into it.

For conversion some parameters are mandatory and some are optional. An input document is converted to PDF. Security permissions, PDF Output Settings and Metadata information can be applied to the resultant PDF.

For invoking the API through client SDK, the API name is CreatePDF2.

Parameters:
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".

pdfSettings - PDF OutPut settings that need to be applied. Optional Parameter. They can be one of the following. High_Quality_Print
PDFA1b_2005_RGB
PDFA1b_2005_CMYK
PDFX1a_2001
PDFX3_2002
Press_Quality
Smallest_File_Size
While using Client SDK the key to be supplied in input Map is "Adobe PDF Settings".

securitySettings - For applying security settings.The parameter is optional. While using Client SDK the key to be supplied in input Map is "Security Settings".

Can be one of the following No Security
Password Security
Certificate Security
Adobe Policy Server

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.

Returns:
CreatePDFResult object encapsulating the pdf document
Throws:
ConversionException
InvalidParameterException
FileFormatNotSupportedException