pdfToolbox in the cloud- Dieline

Extract dieline(s) from PDF.

Required parameters

  • profile: pdfToolbox Profile for selecting PDF objects
    • example: https://s3.eu-central-1.amazonaws.com/ccapi-sample/sample.kfpx
    • type: url
    • the URLs of all predefined Profiles can be found in the article: Predefined Profiles
    • mandatory: true
  • finput: input file to be processed
    • example: https://s3.eu-central-1.amazonaws.com/ccapi-sample/sample.pdf
    • type: url
    • mandatory: true
  • format: the output dieline format
    • example: SVG-FilledStroked
    • type: enum
    • values:
      • SVG-Filled (DEFAULT): SVG output format, fills the dieline

      • SVG-FilledStroked: SVG output format, fills and strokes the dieline

      • SVG-Stroked: SVG output format, strokes the dieline

      • CVS: CF2 output format

      • DXF: DXF output format

    • mandatory: false
  • includeclippingpaths: include clipping paths in exported dieline
    • example: false
    • type: boolean
    • default value: false
    • mandatory: false

Data Example

Usage example

curl -X POST https://api.callassoftware.io/v1/pdfToolbox/dieline -H 'x-api-key: your-api-key' -d @dieline.json
Click to copy

Response and error codes

  • 200: operation completed (retrieve result files from the result_url field)
    • description": the result_url field points to a .json file containing the produced files
    • state: COMPLETED
    • progress: 100
    • result_url: https://a_server/some_sub_folder/a_json_file_containing_the_resulting_urls
  • 202: operation pending (keep going using a GET on the belonging path ...)
    • description: processing has not finished yet. it is essential to wait until one of the final HTTP states is reached (such as HTTP/200 or HTTP/4xx or HTTP/5xx). The state and progress fields can be used to indicate progress
    • state: PROCESSING
    • progress: 10
  • 4xx: a client error has occurred
  • 5xx: a server error has occurred