openapi: 3.0.0 info: title: PDFreactor Web Service REST API description: This is the REST API definition and documentation of the PDFreactor Web Service. termsOfService: https://www.pdfreactor.com contact: name: PDFreactor Support Team email: support@realobjects.com url: http://www.pdfreactor.com license: name: PDFreactor Software License Agreement url: https://www.pdfreactor.com x-logo: url: https://www.realobjects.com/wp-content/uploads/images/logos/prlogo-180x180.png altText: PDFreactor Logo version: 10.2.10722 servers: - url: http://localhost:9423/service/rest - url: https://cloud.pdfreactor.com/service/rest paths: /convert: post: description: Converts the posted configuration or asset package into PDF or image and returns the generated PDF or image. summary: Convert synchronously parameters: - &apiKeyParam in: query name: apiKey schema: type: string description: > The API key to authenticate the request (only necessary if the server is appropriately configured). requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/Configuration' application/xml: schema: $ref: '#/components/schemas/Configuration' responses: '200': description: Conversion successful content: &responseResult application/json: schema: $ref: '#/components/schemas/Result' application/xml: schema: $ref: '#/components/schemas/Result' application/pdf: schema: type: string format: binary application/octet-stream: schema: type: string format: binary text/plain: schema: type: string format: base64 '400': &response400 description: > Multiple reasons: (1) No input document was specified in the configuration. (2) The supplied configuration was not valid for some reason. See the error message for details. (3) The version of the client that was used is outdated and no longer supported. This is only available for the PDFreactor REST wrapper clients. content: &responseResultError application/json: schema: $ref: '#/components/schemas/Result' application/xml: schema: $ref: '#/components/schemas/Result' '*/*': schema: type: string '401': &response401 description: &response401desc The client failed an authorization check, e.g. because a supplied API key was invalid. content: *responseResultError '422': &response422 description: The supplied configuration was accepted by PDFreactor but could not be converted for some reason. See the error message for details. content: *responseResultError '500': &response500 description: &response500desc > Multiple reasons: (1) No configuration was supplied to the operation. (2) The configuration could not be processed and should be re-checked. (3) The supplied configuration is valid, however the conversion could not be completed for some reason. See the error message for details. content: *responseResultError '503': &response503 description: &response503desc The PDFreactor Web Service is running and reachable, but conversions are unavailable. content: *responseResultError /convert/async: post: description: Converts the posted configuration or asset package into PDF or image. This operation responds immediately and does not wait for the conversion to finish. This is especially useful for very large or complex documents where the conversion will take some time. summary: Convert asynchronously parameters: - *apiKeyParam requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/Configuration' application/xml: schema: $ref: '#/components/schemas/Configuration' responses: '202': description: Conversion successful started headers: Location: description: The relative URL where the progress of the conversion can be polled. schema: type: string format: url '400': *response400 '401': *response401 '422': *response422 '500': *response500 '503': description: The PDFreactor Web Service is running and reachable, but asynchronous conversions are unavailable. content: *responseResultError /progress/{id}: get: description: Retrieves progress information about the asynchronous conversion with the given ID. summary: Retrieve progress for async conversion parameters: - &documentIdParam in: path name: id schema: type: string required: true description: The ID of the document. - *apiKeyParam responses: '200': description: The current estimated progress, including log output. content: application/json: schema: $ref: '#/components/schemas/Progress' application/xml: schema: $ref: '#/components/schemas/Progress' '201': description: The conversion is finished and the result can be accessed via the URL indicated in the 'Location' header. headers: Location: description: The location where the document can be downloaded. schema: type: string format: url '401': *response401 '404': &response404 description: Conversion does not exist. content: *responseResultError '500': *response500 '503': *response503 /document/{id}: get: description: Retrieves the asynchronously converted document with the given ID. summary: Retrieve converted document parameters: - *documentIdParam - *apiKeyParam responses: '200': description: The document was found and the conversion has finished. content: *responseResult '400': *response400 '401': *response401 '404': *response404 '422': *response422 '500': *response500 '503': *response503 delete: description: Deletes the asynchronously converted document with the given ID. If the conversion is still running, it gets terminated. summary: Delete converted document or terminate its conversion parameters: - *documentIdParam - *apiKeyParam responses: '204': description: A message indicating that the document has been successfully deleted. '401': *response401 '404': *response404 '500': *response500 '503': *response503 /document/metadata/{id}: get: description: Retrieves the metadata of the asynchronously converted document with the given ID. summary: Retrieve metadata of converted document parameters: - *documentIdParam - *apiKeyParam responses: '200': description: The document's metadata only, meaning the properties 'document' and 'documentArray' will me missing. content: application/json: schema: $ref: '#/components/schemas/Result' application/xml: schema: $ref: '#/components/schemas/Result' '401': *response401 '404': *response404 '500': *response500 '503': *response503 /document/{id}/{page}: get: description: Retrieves the specified page of the asynchronously converted multi-page image with the specified ID. This operation only functions when converting into image types, not PDF. Additionally, the configuration option "multiPage" has to be set to "true", otherwise there are no multiple pages. summary: Retrieve page of converted multi-page image parameters: - *documentIdParam - &pageParam in: path name: page schema: type: integer minimum: 1 required: true description: The page number. - *apiKeyParam responses: '200': description: A page of the converted document. content: &responseImage image/bmp: schema: type: string format: binary image/gif: schema: type: string format: binary image/jpeg: schema: type: string format: binary image/png: schema: type: string format: binary image/tiff: schema: type: string format: binary '401': *response401 '404': *response404 '500': *response500 '503': *response503 /document/{id}/show/{filename}: get: description: Displays the asynchronously converted document in the browser. When downloading the document, browsers will save it under the specified filename. summary: Display converted document in browser parameters: - *documentIdParam - &filenameParam in: path name: filename schema: type: string required: true description: The desired file name including the file extension. - *apiKeyParam responses: '200': description: The converted document. content: &responseFile application/pdf: schema: type: string format: binary image/bmp: schema: type: string format: binary image/gif: schema: type: string format: binary image/jpeg: schema: type: string format: binary image/png: schema: type: string format: binary image/tiff: schema: type: string format: binary text/plain: schema: type: string format: base64 '401': *response401 '404': *response404 '500': *response500 '503': *response503 /document/{id}/{page}/show/{filename}: get: description: Displays the specified page of the asynchronously converted multi-page image in the browser. When downloading the document, browsers will save it under the specified filename. summary: Display page of multi-page image in browser parameters: - *documentIdParam - *pageParam - *filenameParam - *apiKeyParam responses: '200': description: The converted document. content: *responseFile '401': *response401 '404': *response404 '500': *response500 '503': *response503 /document/{id}/download/{filename}: get: description: Downloads the asynchronously converted document in the browser. The download is triggered by an appropriate "Content-Disposition" header. When downloading the document, browsers will save it under the specified filename. summary: Download converted document in browser parameters: - *documentIdParam - *filenameParam - *apiKeyParam responses: '200': description: The converted document. content: *responseFile '401': *response401 '404': *response404 '500': *response500 '503': *response503 /document/{id}/{page}/download/{filename}: get: description: Downloads the specified page of the asynchronously converted multi-page image in the browser. The download is triggered by an appropriate "Content-Disposition" header. When downloading the document, browsers will save it under the specified filename. summary: Download page of multi-page image in browser parameters: - *documentIdParam - *pageParam - *filenameParam - *apiKeyParam responses: '200': description: The converted document. content: *responseImage headers: Content-Disposition: description: A header to trigger a download in the browser. schema: type: string '401': *response401 '404': *response404 '500': *response500 '503': *response503 /version: get: description: Returns the version of the PDFreactor Web Service that is currently running. summary: Version of the PDFreactor Web Service parameters: - *apiKeyParam responses: '200': description: The version. content: application/json: schema: $ref: '#/components/schemas/Version' application/xml: schema: $ref: '#/components/schemas/Version' text/plain: schema: type: string '401': &response401plain description: *response401desc content: text/plain: schema: type: string '500': &response500plain description: *response500desc content: text/plain: schema: type: string '503': description: *response503desc content: text/plain: schema: type: string /status: get: description: Checks if the PDFreactor Web Service is available and functional. summary: Healthcheck parameters: - *apiKeyParam responses: '200': description: The service is available and functional. content: text/plain: schema: type: string '401': *response401plain '500': *response500plain '503': description: The service is not functional. content: text/plain: schema: type: string components: schemas: AddressType: type: string enum: - LINK_LOCAL - LOCAL - PRIVATE - PUBLIC CallbackType: type: string enum: - FINISH - PROGRESS - START Cleanup: type: string enum: - CYBERNEKO - JTIDY - NONE - TAGSOUP ColorSpace: type: string enum: - CMYK - RGB Conformance: type: string enum: - PDF - PDFA1A - PDFA1A_PDFUA1 - PDFA1B - PDFA2A - PDFA2A_PDFUA1 - PDFA2B - PDFA2U - PDFA3A - PDFA3A_PDFUA1 - PDFA3B - PDFA3U - PDFUA1 - PDFX1A_2001 - PDFX1A_2003 - PDFX3_2002 - PDFX3_2003 - PDFX4 - PDFX4P ConnectionRuleAction: type: string enum: - ALLOW - DENY ContentType: type: string enum: - BINARY - BMP - GIF - HTML - JPEG - JSON - NONE - PDF - PNG - TEXT - TIFF - XML CssPropertySupport: type: string enum: - ALL - HTML - HTML_THIRD_PARTY - HTML_THIRD_PARTY_LENIENT Doctype: type: string enum: - AUTODETECT - HTML5 - XHTML - XML Encryption: type: string enum: - NONE - TYPE_128 - TYPE_40 ErrorPolicy: type: string enum: - LICENSE - MISSING_RESOURCE ExceedingContentAgainst: type: string enum: - NONE - PAGE_BORDERS - PAGE_CONTENT - PARENT ExceedingContentAnalyze: type: string enum: - CONTENT - CONTENT_AND_BOXES - CONTENT_AND_STATIC_BOXES - NONE HttpsMode: type: string enum: - LENIENT - STRICT JavaScriptDebugMode: type: string enum: - EXCEPTIONS - FUNCTIONS - LINES - NONE - POSITIONS JavaScriptMode: type: string enum: - DISABLED - ENABLED - ENABLED_NO_LAYOUT - ENABLED_REAL_TIME - ENABLED_TIME_LAPSE KeystoreType: type: string enum: - JKS - PKCS12 LogLevel: type: string enum: - DEBUG - FATAL - INFO - NONE - PERFORMANCE - WARN MediaFeature: type: string enum: - ASPECT_RATIO - COLOR - COLOR_INDEX - DEVICE_ASPECT_RATIO - DEVICE_HEIGHT - DEVICE_WIDTH - GRID - HEIGHT - MONOCHROME - ORIENTATION - RESOLUTION - WIDTH MergeMode: type: string enum: - APPEND - ARRANGE - OVERLAY - OVERLAY_BELOW - PREPEND OutputIntentDefaultProfile: type: string enum: - FOGRA39 - GRACOL - IFRA - JAPAN - JAPAN_NEWSPAPER - JAPAN_UNCOATED - JAPAN_WEB - SWOP - SWOP_3 OutputType: type: string enum: - BMP - GIF - JPEG - PDF - PNG - PNG_AI - PNG_TRANSPARENT - PNG_TRANSPARENT_AI - TIFF_CCITT_1D - TIFF_CCITT_GROUP_3 - TIFF_CCITT_GROUP_4 - TIFF_LZW - TIFF_PACKBITS - TIFF_UNCOMPRESSED OverlayRepeat: type: string enum: - ALL_PAGES - LAST_PAGE - NONE - TRIM PageOrder: type: string enum: - BOOKLET - BOOKLET_RTL - EVEN - ODD - REVERSE PagesPerSheetDirection: type: string enum: - DOWN_LEFT - DOWN_RIGHT - LEFT_DOWN - LEFT_UP - RIGHT_DOWN - RIGHT_UP - UP_LEFT - UP_RIGHT PdfScriptTriggerEvent: type: string enum: - AFTER_PRINT - AFTER_SAVE - BEFORE_PRINT - BEFORE_SAVE - CLOSE - OPEN ProcessingPreferences: type: string enum: - SAVE_MEMORY_IMAGES QuirksMode: type: string enum: - DETECT - QUIRKS - STANDARDS ResourceType: type: string enum: - ATTACHMENT - FONT - ICC_PROFILE - IFRAME - IMAGE - MERGE_DOCUMENT - OBJECT - RUNNING_DOCUMENT - SCRIPT - STYLESHEET - UNKNOWN SigningMode: type: string enum: - SELF_SIGNED - VERISIGN_SIGNED - WINCER_SIGNED ViewerPreferences: type: string enum: - CENTER_WINDOW - DIRECTION_L2R - DIRECTION_R2L - DISPLAY_DOC_TITLE - DUPLEX_FLIP_LONG_EDGE - DUPLEX_FLIP_SHORT_EDGE - DUPLEX_SIMPLEX - FIT_WINDOW - HIDE_MENUBAR - HIDE_TOOLBAR - HIDE_WINDOW_UI - NON_FULLSCREEN_PAGE_MODE_USE_NONE - NON_FULLSCREEN_PAGE_MODE_USE_OC - NON_FULLSCREEN_PAGE_MODE_USE_OUTLINES - NON_FULLSCREEN_PAGE_MODE_USE_THUMBS - PAGE_LAYOUT_ONE_COLUMN - PAGE_LAYOUT_SINGLE_PAGE - PAGE_LAYOUT_TWO_COLUMN_LEFT - PAGE_LAYOUT_TWO_COLUMN_RIGHT - PAGE_LAYOUT_TWO_PAGE_LEFT - PAGE_LAYOUT_TWO_PAGE_RIGHT - PAGE_MODE_FULLSCREEN - PAGE_MODE_USE_ATTACHMENTS - PAGE_MODE_USE_NONE - PAGE_MODE_USE_OC - PAGE_MODE_USE_OUTLINES - PAGE_MODE_USE_THUMBS - PICKTRAYBYPDFSIZE_FALSE - PICKTRAYBYPDFSIZE_TRUE - PRINTSCALING_APPDEFAULT - PRINTSCALING_NONE XmpPriority: type: string enum: - HIGH - LOW - NONE Attachment: properties: data: type: string format: base64 description: >

The binary content of the attachment. May be null.

description: type: string description: >

The description of the attachment. If this is not set or null the value of name is used.

name: type: string description: >

The file name associated with the attachment. It is recommended to specify the correct file extension. If this is not set or null the name is derived from url.

url: type: string format: url description: >

If data is not set or set to null, the attachment will be retrieved from this URL.

If this is "#" the input document URL is used instead.

BookletMode: properties: rtl: type: boolean description: >

Whether or not the reading order of the booklet should be right-to-left.

sheetMargin: type: string description: >

The sheet margin as CSS margin value, for example "1in", "1cm 1.5cm" or "10mm 20mm 10mm 30mm". null is interpreted as "0mm".

sheetSize: type: string description: >

The size of the sheet as CSS value, for example "A3", "letter landscape", "15in 20in" or "20cm 30cm".

Callback: properties: contentType: allOf: - $ref: '#/components/schemas/ContentType' description: >

The content type of the payload that is posted.

interval: type: integer description: >

The interval in seconds at which to trigger repeating callbacks.

Only applies "PROGRESS".

timeout: type: integer description: >

An optional timeout for the callback. A value of zero or negative values are treated as an infinite timeout.

type: allOf: - $ref: '#/components/schemas/CallbackType' description: >

The event to trigger the callback.

url: type: string format: url description: >

The URL to call back.

ColorSpaceSettings: properties: cmykIccProfile: allOf: - $ref: '#/components/schemas/Resource' description: >

Specifies the ICC profile which defines the CMYK color space into or from which CSS colors and images are converted, if conversionEnabled.

conversionEnabled: type: boolean description: >

Enables the conversion of CSS colors and images to the targetColorSpace using the cmykIccProfileUrl or naively if there is none.

targetColorSpace: allOf: - $ref: '#/components/schemas/ColorSpace' description: >

Specifies the target color-space of the PDF.

This is the color space, CSS keyword based colors are converted to, as well as, if conversionEnabled, other CSS colors and images.

It also is the color space for PDF/A and PDF/X documents.

Defaults to "RGB RGB".

Configuration: properties: addAttachments: type: boolean description: >

Enables or disables attachments specified in style sheets.

The default value is false.

addBookmarks: type: boolean description: >

Enables or disables bookmarks in the PDF document.

The default value is false.

addComments: type: boolean description: >

Enables or disables comments in the PDF document.

The default value is false.

addLinks: type: boolean description: >

Enables or disables links in the PDF document.

The default value is false.

addOverprint: type: boolean description: >

Enables or disables overprinting.

The default value is false.

addPreviewImages: type: boolean description: >

Enables or disables embedding of image previews per page in the PDF document.

The default value is false.

addTags: type: boolean description: >

Enables or disables tagging of the PDF document.

The default value is false.

allowAnnotations: type: boolean description: >

Enables or disables the 'annotations' restriction in the PDF document.

The default value is false.

allowAssembly: type: boolean description: >

Enables or disables the 'assembly' restriction in the PDF document.

The default value is false.

allowCopy: type: boolean description: >

Enables or disables the 'copy' restriction in the PDF document.

The default value is false.

allowDegradedPrinting: type: boolean description: >

Enables or disables the 'degraded printing' restriction in the PDF document.

The default value is false.

allowFillIn: type: boolean description: >

Enables or disables the 'fill in' restriction in the PDF document.

The default value is false.

allowModifyContents: type: boolean description: >

Enables or disables the 'modify contents' restriction in the PDF document.

The default value is false.

allowPrinting: type: boolean description: >

Enables or disables the 'printing' restriction in the PDF document.

The default value is false.

allowScreenReaders: type: boolean description: >

Enables or disables the 'screen readers' restriction in the PDF document.

The default value is false.

appendLog: type: boolean description: >

Specifies whether or not the log data should be added to the PDF document.

The default value is false.

attachments: type: array items: allOf: - $ref: '#/components/schemas/Attachment' description: >

Adds a file attachment to PDF document.

authenticationCredentials: allOf: - $ref: '#/components/schemas/KeyValuePair' description: >

Enables access to resources that are secured via Basic or Digest authentication.

author: type: string description: >

Sets the value of the author field of the PDF document.

baseURL: type: string description: >

Sets the base URL of the document.

To resolve relative URLs to absolute URLs a reference (base) URL is required. This reference URL is usually the system id of the document.

This method can be used to specify another reference URL. If this URL is not null then it will be used instead of the system id.

The default value is null.

bookletMode: allOf: - $ref: '#/components/schemas/BookletMode' description: >

Convenience method to set pages-per-sheet properties and page order in one step to create a booklet.

callbacks: type: array items: allOf: - $ref: '#/components/schemas/Callback' description: >

Adds callbacks to the conversion which will be called at specific times. All callbacks perform a POST request to the specified URL with the specified content type and a certain model which depends on the callback event.

For each callback, you can specify a timeout. If no timeout is specified, the server's default timeout for callbacks is used. A value of zero or negative values indicate an infinite timeout, however the PDFreactor server may have a maximum timeout configured, in which case that will be the used value.

Some callbacks might be called regularly during the course of a conversion. For these callbacks you can specify an interval to control how frequently they are called.

cleanupTool: allOf: - $ref: '#/components/schemas/Cleanup' description: >

Sets the cleanup tool to use for documents with unparsable content.

The Cleanup constants can be used as value. The default value specified is "CYBERNEKO".

The cleanup tool is only used for documentType "XHTML". HTML5 utilizes an internal cleanup.

colorSpaceSettings: allOf: - $ref: '#/components/schemas/ColorSpaceSettings' description: >

Specifies color space related settings.

conformance: allOf: - $ref: '#/components/schemas/Conformance' description: >

Sets the conformance of the PDF.

The Conformance constants can be used as value. The default value specified is "PDF".

contentObserver: allOf: - $ref: '#/components/schemas/ContentObserver' description: >

Specifies parts of the document's content that should be observed and logged in greater detail. Data logged this way can be programmatically retrieved after the conversion has finished. The following can be observed:

continuousOutput: allOf: - $ref: '#/components/schemas/ContinuousOutput' description: >

Enables the conversion of the input document into one image.

conversionName: type: string description: >

Sets a name for the conversion. If a name is set, it will be logged at level "info". The name can be an arbitrary string but should be unique for every conversion or application so that the log output can be matched to a specific conversion or application later.

cookies: type: array items: allOf: - $ref: '#/components/schemas/KeyValuePair' description: >

Adds a cookie to all outgoing HTTP connections. The parameters are URL encoded (see rawCookies). If the key already exists, the pair is overwritten.

creator: type: string description: >

Sets the value of creator field of the PDF document.

cssSettings: allOf: - $ref: '#/components/schemas/CssSettings' description: >

Specifies the behavior of PDFreactor regarding the support and validation of CSS properties and their declaration. The following modes can be set:

customDocumentProperties: type: array items: allOf: - $ref: '#/components/schemas/KeyValuePair' description: >

Adds a custom property to the PDF document. An existing property of the same name will be replaced.

debugSettings: allOf: - $ref: '#/components/schemas/DebugSettings' description: >

Enables and configures debug settings, which add additional information to the output.

If enabled, exceptions during the conversion will not be thrown. In such a case, instead of a document a string containing the log and exception will be returned.

defaultColorSpace: allOf: - $ref: '#/components/schemas/ColorSpace' deprecated: true description: >

Deprecated as of PDFreactor 10. Use colorSpaceSettings and targetColorSpace instead.

disableFontEmbedding: type: boolean description: >

Sets whether fonts will not be embedded into the resulting PDF. Setting this to true will reduce the file size of the output document. However, the resulting PDF documents are no longer guaranteed to look identical on all systems.

The default value is false.

document: oneOf: - type: string format: xml - type: string format: html - type: string format: url description: >

The input document. This can either be a URL string, XML or HTML source code string.

documentDefaultLanguage: type: string description: >

Sets the language used for documents having no explicit language attribute set.

The language code is used to resolve the lang() selector correct and to determine the correct language used for hyphenation.

documentType: allOf: - $ref: '#/components/schemas/Doctype' description: >

Sets the document type.

The Doctype constants can be used to specify the document type. The default value specified is "AUTODETECT".

enableDebugMode: type: boolean deprecated: true description: >

Deprecated as of PDFreactor 10. Use debugSettings instead.

encoding: type: string description: >

Sets the encoding of the document.

If this value is set to null or it is empty then the encoding will be detected automatically.

The default value is null.

encryption: allOf: - $ref: '#/components/schemas/Encryption' description: >

Sets the encryption.

Use one of the Encryption constants to specify the encryption. The default value is "NONE".

errorPolicies: type: array items: allOf: - $ref: '#/components/schemas/ErrorPolicy' description: >

Specifies error policies that will be used for the conversion. Depending on the policy, the conversion will fail if the appropriate criteria are not met.

fontAliases: type: array items: allOf: - $ref: '#/components/schemas/Font' description: >

Registers an alias font family for an existing font.

This function is limited to fonts loaded automatically from system folders.

fontFallback: type: array items: type: string description: >

Sets a list of fallback font families used for character substitution. This list is iterated for characters that can not be displayed with any of the fonts specified via the CSS property font-family.

fonts: type: array items: allOf: - $ref: '#/components/schemas/Font' description: >

Loads a font from a URL which can be used via the CSS property font-family.

forceGrayscaleImage: type: boolean description: >

If the output format is an image format, this setting controls whether a grayscale image should be returned. This can not be combined with transparency.

fullCompression: type: boolean description: >

Enables or disables full compression of the PDF document.

The default value is false.

httpsMode: allOf: - $ref: '#/components/schemas/HttpsMode' description: >

Sets the HTTPS mode. In closed environment lenient can be the preferred setting to avoid HTTPS issues that are not security critical

The default value specified is "STRICT".

ignoreAlpha: type: boolean description: >

Sets whether the alpha value of CSS RGBA colors is ignored. This can be used to avoid conformance issues in PDF/A-1.

integrationStyleSheets: type: array items: allOf: - $ref: '#/components/schemas/Resource' description: >

Adds an integration style sheet to the document.

There are two ways to specify the style sheet:

  1. Specifying the style sheet only using an URI.
  2. Specifying the style sheet by the content of the style sheet and alternatively setting a URI to resolve relative elements. If no URI is specified then the system id/base URL of the document will be used.
javaScriptMode: allOf: - $ref: '#/components/schemas/JavaScriptMode' deprecated: true description: >

Deprecated as of PDFreactor 10. Use javaScriptSettings instead.

javaScriptSettings: allOf: - $ref: '#/components/schemas/JavaScriptSettings' description: >

Specifies JavaScript related settings.

keepDocument: type: boolean description: >

If set to true prevents the document from being deleted from the PDFreactor Web Service after it has been accessed. This only works for asynchronous conversions.

keywords: type: string description: >

Sets the value of the keywords field of the PDF document.

licenseKey: type: string description: >

Sets the license key using a string. If the license key is set to null then PDFreactor looks for a 'licensekey.xml' file in the same directory where the 'PDFreactor.jar' file is located. If no license key could be found then PDFreactor runs in evaluation mode.

The default value is null.

logExceedingContent: allOf: - $ref: '#/components/schemas/LogExceedingContent' deprecated: true description: >

Deprecated as of PDFreactor 9. Use contentObserver instead.

logLevel: allOf: - $ref: '#/components/schemas/LogLevel' description: >

Sets the log level.

Use one of the LogLevel constants to specify the log level.

The default value is "NONE".

mediaFeatureValues: type: array items: allOf: - $ref: '#/components/schemas/MediaFeatureValue' description: >

Defines the value of a Media Feature which is used to resolve CSS3 media queries.

mediaTypes: type: array items: type: string description: >

Sets the media types that are used to resolve CSS3 media queries.

Please note that this overrides the default media types of PDFreactor, which are:

"print", "paged", "visual", "bitmap", "static", "-ro-pdfreactor"

mergeByteArray: type: string format: base64 deprecated: true description: >

Deprecated as of PDFreactor 9. Use mergeDocuments instead.

mergeByteArrays: type: array items: type: string format: base64 deprecated: true description: >

Deprecated as of PDFreactor 9. Use mergeDocuments instead.

mergeDocuments: type: array items: allOf: - $ref: '#/components/schemas/Resource' description: >

This method sets external PDF documents which will be merged with the PDF document generated by the HTML source.

mergeMode: allOf: - $ref: '#/components/schemas/MergeMode' description: >

Sets the merge mode.

The following merge methods can be used:

The default value is "APPEND".

mergeURL: type: string deprecated: true description: >

Deprecated as of PDFreactor 9. Use mergeDocuments instead.

mergeURLs: type: array items: type: string deprecated: true description: >

Deprecated as of PDFreactor 9. Use mergeDocuments instead.

outputFormat: allOf: - $ref: '#/components/schemas/OutputFormat' description: >

Sets the OutputFormat. The default value is PDF.

For image formats the width or height in pixels must be specified.

When either dimension is <1 it is computed based on the other dimension and the aspect ratio of the input document.

outputIntent: allOf: - $ref: '#/components/schemas/OutputIntent' description: >

Sets the output intent including the identifier and the ICC profile to be embedded into the PDF.

Set either the profile URL or the profile data, not both. Certain PDF/X formats require neither, just a known identifier.

overlayRepeat: allOf: - $ref: '#/components/schemas/OverlayRepeat' description: >

If one of the documents of an overlay process is shorter than the other, this method allows repeating either its last page or all of its pages in order to overlay all pages of the longer document.

Use one of the OverlayRepeat constants to specify the overlay repeat. The default value is "NONE".

ownerPassword: type: string description: >

Sets the owner password of the PDF document.

The default value is null.

pageOrder: oneOf: - $ref: '#/components/schemas/PageOrder' - type: string description: >

Sets the page order of the direct result of the conversion.

If mergeMode is set to "ARRANGE", this method is also used to specify the position of inserted pages from an existing PDF.

A description of the syntax can be found in the manual.

pagesPerSheetProperties: allOf: - $ref: '#/components/schemas/PagesPerSheetProperties' description: >

Sets the properties of a sheet on which multiple pages are being arranged.

If cols or rows is less than 1, no pages-per-sheet processing is done. This is the case by default.

Use one of the PagesPerSheetDirection constants to specify the the direction. The default value is "RIGHT_DOWN".

pdfScriptAction: type: array items: allOf: - $ref: '#/components/schemas/PdfScriptAction' description: >

Sets a pair of trigger event and PDF script. The script is triggered on the specified event.

A PDF script is JavaScript that is executed by a PDF viewer (e.g. Adobe Reader). Note that most viewers do not support this feature.

PDF Scripts can also be set by using the proprietary CSS property pdf-script-action. More information on this property can be found in the manual.

Please note, that scripts set via CSS have a higher priority. If two scripts are registered on the same event, but one via API and the other via the CSS property, the script set in the CSS will override the other one.

pixelsPerInch: type: integer description: >

Sets the pixels per inch.

Changing this value changes the physical length of sizes specified in px (including those specified via HTML attributes).

The default value is 96 ppi.

pixelsPerInchShrinkToFit: type: boolean description: >

Whether the pixels per inch should be adapted automatically to avoid content exceeding pages.

postTransformationDocumentType: allOf: - $ref: '#/components/schemas/Doctype' description: >

Sets the document type after the XSL-Transformations have been applied.

The Doctype constants can be used to specify the document type. The default value specified is "AUTODETECT".

printDialogPrompt: type: boolean description: >

Enables or disables a print dialog to be shown upon opening the generated PDF document by a PDF viewer.

The default value is false.

processingPreferences: type: array items: allOf: - $ref: '#/components/schemas/ProcessingPreferences' description: >

Preferences that influence the conversion process without changing the output.

Use the ProcessingPreferences constants to specify the processing preferences. By default no processing preference is set.

quirksSettings: allOf: - $ref: '#/components/schemas/QuirksSettings' description: >

Allows to enable or disable behaviors that are otherwise depend on the doctype of the input document.

rawCookies: type: array items: allOf: - $ref: '#/components/schemas/KeyValuePair' description: >

Adds a cookie to all outgoing HTTP connections. The parameters are not URL encoded (see cookies). If the key already exists, the pair is overwritten.

requestHeaders: type: array items: allOf: - $ref: '#/components/schemas/KeyValuePair' description: >

Adds a request header to all outgoing HTTP connections. If the key already exists, the pair is overwritten.

resourceConnectTimeout: type: integer description: >

Sets a timeout in milliseconds for connecting to resources, such as HTTP requests to style sheets, images etc. If the connection could not be established until the timeout expires, the request will be aborted and the resource will not be loaded.

A timeout of 0 means that the connection will not time out. A negative value means that no timeout will be set. The default value is 60000 (1min).

resourceReadTimeout: type: integer description: >

Sets a timeout in milliseconds for reading resources, such as HTTP requests to style sheets, images etc. If the download does not start until the timeout expires, the request will be aborted and the resource will not be loaded.

A timeout of 0 means that the download will not time out. A negative value means that no timeout will be set. The default value is 60000 (1min).

resourceRequestTimeout: type: integer deprecated: true description: >

Deprecated as of PDFreactor 10. Use resourceConnectTimeout and resourceReadTimeout instead.

segmentationSettings: allOf: - $ref: '#/components/schemas/SegmentationSettings' description: >

This property configures segmentation of the conversion, which helps with very large documents.

signPDF: allOf: - $ref: '#/components/schemas/SignPDF' description: >

Sets a digital certificate to sign the newly created PDF.

Requires a keystore file. The included certificate may be self-signed.

Use the KeystoreType constants to specify the keystore type.

Use the SigningMode constants to specify the cryptographic filter that is used for signing.

subject: type: string description: >

Sets the value of the subject field of the PDF document.

throwLicenseExceptions: type: boolean deprecated: true description: >

Deprecated as of PDFreactor 9. Use errorPolicies instead.

title: type: string description: >

Sets the value of the title field of the PDF document.

userPassword: type: string description: >

Sets the user password of the PDF document.

The default value is null.

userScripts: type: array items: allOf: - $ref: '#/components/schemas/Resource' description: >

Adds an user script to the document.

There are two ways to specify the script:

  1. Specifying the script only by an URI.
  2. Specifying the script by the content of the script and alternatively setting a URI to resolve relative elements. If no URI is specified then the system id/base URL of the document will be used.
userStyleSheets: type: array items: allOf: - $ref: '#/components/schemas/Resource' description: >

Adds a user style sheet to the document.

There are two ways to specify the style sheet:

  1. Specifying the style sheet only using an URI.
  2. Specifying the style sheet by the content of the style sheet and alternatively setting a URI to resolve relative elements. If no URI is specified then the system id/base URL of the document will be used.
validateConformance: type: boolean description: >

Enables PDFreactor to validate the generated PDF against the Conformance specified via conformance.

Currently only PDF/A validation is supported.

Please note that validation might take several minutes for larger documents.

viewerPreferences: type: array items: allOf: - $ref: '#/components/schemas/ViewerPreferences' description: >

Sets the page layout and page mode preferences of the PDF.

Use the ViewerPreferences constants to specify the viewer preferences. By default no viewer preference is set.

xmp: allOf: - $ref: '#/components/schemas/Xmp' description: >

Sets custom XMP to be embedded into the PDF document.

If both content and uri are not set or null no custom XMP is embedded. If XmpPriority is also set to "HIGH" automatic generation of required XMP is also suppressed. This may cause output PDFs to not archive a specified conformance. xsltMode: type: boolean description: >

Enables or disables XSLT transformations.

Set this value to true to enable XSLT transformations or to false to disable XSLT transformations.

The default value is false.

xsltStyleSheets: type: array items: allOf: - $ref: '#/components/schemas/Resource' description: >

Adds an XSLT style sheet to the document.

There are two ways to specify the style sheet:

  1. Specifying the style sheet only by an URI.
  2. Specifying the style sheet by the content of the style sheet and alternatively setting a URI to resolve relative elements. If no URI is specified then the system id/base URL of the document will be used.
required: - document Connection: properties: cached: type: boolean description: >

Whether the response was retrieved from a cache.

connected: type: boolean description: >

Whether a URL connection could be established by PDFreactor. If this is false, see error for details.

duration: type: integer description: >

The duration in milliseconds how long this connection remained open.

error: type: string description: >

The error message if the connection could not be established.

method: type: string description: >

The request method used by the underlying HTTP request (like "GET", "POST", etc.) or null if this is not an HTTP connection or the connection could not be established.

protocol: type: string description: >

The protocol of the URL connection.

requestHeaders: type: array items: allOf: - $ref: '#/components/schemas/KeyValuePair' description: >

The request headers.

Note: If a header has multiple values, there will be one KeyValuePair for each value with the header name as key.

responseHeaders: type: array items: allOf: - $ref: '#/components/schemas/KeyValuePair' description: >

The response headers.

Note: If a header has multiple values, there will be one KeyValuePair for each value with the header name as key.

statusCode: type: integer description: >

The response code for HTTP connections or 0 for all other connections.

statusMessage: type: string description: >

The response message for the response code or null if the response code is 0 or the message could not be determined.

timestamp: type: integer description: >

The time stamp of this connection.

url: type: string format: url description: >

The URL.

ConnectionSettings: properties: cookies: type: array items: type: string description: > A collection of name-value-pairs representing the cookies that will be added to the HTTP request to the PDFreactor Web Service. This property is empty by default and additional cookies can be added as required. Cookies should only be added in special environments where it is necessary, e.g. when using a load balancer. If the PDFreactor Web Service's response contains any cookies, they will be added to this property, potentially overwriting cookies with the same name. headers: type: array items: type: string description: > A collection of name-value-pairs representing the request headers that will be added to the HTTP request to the PDFreactor Web Service. This property is empty by default and additional headers can be added as required. Headers should only be added in special environments where it is necessary. ContentObserver: properties: connections: type: boolean description: >

Enables observation of URL connections done by PDFreactor.

exceedingContentAgainst: allOf: - $ref: '#/components/schemas/ExceedingContentAgainst' description: >

Enables observation of exceeding content either against the page edges, page content areas or containers.

exceedingContentAnalyze: allOf: - $ref: '#/components/schemas/ExceedingContentAnalyze' description: >

Enables observation of exceeding content and optionally of boxes.

missingResources: type: boolean description: >

Enables observation of resources that could not be loaded.

ContinuousOutput: properties: height: type: integer description: >

Equivalent to the height of a browser window (view port). For values <1 the entire height of the document is used.

width: type: integer description: >

Equivalent to the width of a browser window (view port). Values <1 enable paginated output.

CssSettings: properties: supportQueryMode: allOf: - $ref: '#/components/schemas/CssPropertySupport' description: >

Adjusts the CSS property support behavior.

validationMode: allOf: - $ref: '#/components/schemas/CssPropertySupport' description: >

Adjusts the CSS property validation behavior.

DebugSettings: properties: all: type: boolean description: >

This is a convenience property that enables the following DebugSettings:

appendLogs: type: boolean description: >

Specifies whether the logs will be appended to the resulting PDF.

attachDocuments: type: boolean description: >

Specifies whether all debug files belonging to the group "documents" will be attached to the generated PDF. Please see the manual for more information.

attachLogs: type: boolean description: >

Specifies whether all debug files belonging to the group "logs" will be attached to the generated PDF. Please see the manual for more information.

attachResources: type: boolean description: >

Specifies whether all debug files belonging to the group "resources" will be attached to the generated PDF. Please see the manual for more information.

forceResult: type: boolean description: >

Forces PDFreactor to return a result, regardless of any exceptions or errors that may have occurred during the conversion.

If an exception or error occurred during the conversion, its stack trace and the PDFreactor log is written as-is into the result data stream. This means that the resulting document will not be a valid PDF but can be opened with an appropriate text editor to view the log and errors.

ExceedingContent: properties: bottom: type: boolean description: >

Returns whether the content exceeds the page at the bottom.

box: type: boolean description: >

Returns whether the exceeding content is a box instead of text or image content.

containerBottom: type: integer description: >

Returns the bottom coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.

containerLeft: type: integer description: >

Returns the left coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.

containerRight: type: integer description: >

Returns the right coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.

containerTop: type: integer description: >

Returns the top coordinate of the the container box in the page in pixels. Depending on the settings this box may be the page.

description: type: string description: >

Returns a description of the content. In case of text content, the text is returned. In case of images the URL is returned if available.

exceedingBoxBottom: type: integer description: >

Returns the bottom coordinate of the the exceeding box in the page in pixels.

exceedingBoxLeft: type: integer description: >

Returns the left coordinate of the the exceeding box in the page in pixels.

exceedingBoxRight: type: integer description: >

Returns the right coordinate of the the exceeding box in the page in pixels.

exceedingBoxTop: type: integer description: >

Returns the top coordinate of the the exceeding box in the page in pixels.

html: type: string description: >

Returns the HTML of the box that contains the exceeding content.

left: type: boolean description: >

Returns whether the content exceeds the page to the left.

pageBottom: type: integer description: >

Returns the bottom coordinate of the the page in pixels.

pageLeft: type: integer description: >

Returns the left coordinate of the the page in pixels.

pageNumber: type: integer description: >

Returns the number of the page that contains the exceeding content.

pageRight: type: integer description: >

Returns the right coordinate of the the page in pixels.

pageTop: type: integer description: >

Returns the top coordinate of the the page in pixels.

path: type: array items: type: integer description: >

Returns an array of integers denoting the indexes of the ancestors of the DOM node corresponding to the box containing the exceeding content, starting from below the root node down to the element itself.

right: type: boolean description: >

Returns whether the content exceeds the page to the right.

summary: type: string description: >

Returns a summary of this exceeding content object.

top: type: boolean description: >

Returns whether the content exceeds the page at the top.

Font: properties: bold: type: boolean description: >

Whether the alias will be labeled bold.

family: type: string description: >

The alias name for that font.

italic: type: boolean description: >

Whether the alias will be labeled italic.

source: type: string description: >

The source URL of the font (when adding new fonts) or the name of an existing font family (when creating an alias).

JavaScriptSettings: properties: debugIndentation: type: integer description: >

Specifies the amount of spaces per indentation level when using JavaScript debugging.

The default value is 0.

debugMode: allOf: - $ref: '#/components/schemas/JavaScriptDebugMode' description: >

Specifies the debug mode.

Any other value than the default "NONE" impacts performance significantly and should not be used in production.

enabled: type: boolean description: >

Specifies whether to process JavaScript.

ignoreScriptElements: type: boolean description: >

Specifies whether to ignore