PDF to GIF

POST https://api.pdfrest.com/gif

Convert a PDF into one or more GIF image files.

Required form-data body parameters:

  • One of:
    • file - File to be uploaded and processed
    • id - Alphanumeric ID (UUID) of existing file on server to be processed

Optional form-data body parameters (bold = default):

  • output - File name of output file (without extension)

  • pages - Any mix of individual pages and/or ranges seperated by commas. last can be used to represent the number of the last page of the document. Examples include:

    • 1-last
    • 14-last
    • 2-9
    • 1,2,5-10,12-last
  • resolution - Output image resolution in Dots Per Inch (DPI). Can range from 12 to 2400. Defaults to 300 if absent.

  • color_model - Color model of the output file. Accepted values are rgb or gray.

Request Body

[{"name"=>"file", "value"=>nil, "datatype"=>"null"}, {"name"=>"id", "value"=>"xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "datatype"=>"string"}, {"name"=>"output", "value"=>"pdfrest_img", "datatype"=>"string"}, {"name"=>"pages", "value"=>"1-last", "datatype"=>"string"}, {"name"=>"resolution", "value"=>"300", "datatype"=>"number"}, {"name"=>"color_model", "value"=>"rgb", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Api-Keystring