Namespace Adobe.DocumentCloud.Services.pdfops
Classes
CombineFilesOperation
Combines multiple PDF files into a single PDF file. Allows specifying which pages of the source files to combine.
CreatePDFOperation
An Operation that converts a non-PDF file to a PDF file. Some source formats may have associated conversion parameters which can be set in the SetOptions(CreatePDFOptions) method.
The supported source media types are listed here. The CreatePDFOperation.SupportedSourceFormat class can be used to map file extensions to their corresponding media types when creating FileRef instances for the source files.
- image/bmp
- application/msword
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
- image/gif
- text/html (see "Special handling for HTML inputs" below)
- image/jpeg
- image/png
- application/vnd.ms-powerpoint
- application/vnd.openxmlformats-officedocument.presentationml.presentation
- text/rtf
- image/tiff
- text/plain
- application/vnd.ms-excel
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
- application/zip (see "Special handling for HTML inputs" below)
Special handling for HTML inputs:
An HTML input can be provided either as a public hosted web page URL or a local zip archive.
When creating the corresponding FileRef instance, the media type must be "text/html" for the URL and "application/zip" for the local zip archive. Zip archives must have the following structure:
- The main HTML file must be named "index.html".
- "index.html" must exist at the top level of zip archive, not in a folder.
html_files.zip
|__index.html
|__referenced_file_1.css
|__referenced_file_2.jpeg
|__subfolder_1
|_____referenced_file_3.jpeg
CreatePDFOperation.SupportedSourceFormat
Supported source file formats for CreatePDFOperation
ExportPDFOperation
An Operation which exports a source PDF file to a supported format specified by ExportPDFTargetFormat
For the image target formats (JPEG and PNG), the resulting file is a ZIP archive containing one image per page of the source PDF file. Each image file name ends with "_<unpadded_page_index>". For example, a PDF file with 15 pages will generate 15 image files. The first file's name ends with "_1" and the last file's name ends with "_15".