FileVerbs API Documentation - Image Conversions

Image Conversions

Image Conversions

The FileVerbs PDF API provides the ability to convert PDF pages into various image formats. This feature allows for exporting high-quality images in different formats like PNG, JPEG, BMP, and more. Below are the available image conversion options and their respective API request formats, along with option settings where applicable.

Available Image Conversions

Convert PDF to PNG

Convert PDF pages into PNG images, commonly used for high-quality image rendering. The following optional settings can be applied:

  • resolutionDpi (optional, default: `150`): Set the resolution in DPI (dots per inch) for the output image.

Request Example (JSON):

{
    "action": "PdfToPng",
    "parameters": {
        "fileIds": ["66b357061b7f9c2032d6d70f"],
        "options": {
            "imageSettings": {
                "resolutionDpi": 300
            }
        }
    }
}

Convert PDF to JPEG

Convert PDF pages into JPEG images, suitable for web use and compression efficiency. The following optional settings can be applied:

  • resolutionDpi (optional, default: `150`): Set the resolution in DPI for the output image.

Request Example (JSON):

{
    "action": "PdfToJpeg",
    "parameters": {
        "fileIds": ["66b357061b7f9c2032d6d70f"],
        "options": {
            "imageSettings": {
                "resolutionDpi": 200
            }
        }
    }
}

Convert PDF to BMP

Convert PDF pages into BMP (Bitmap) images, preserving all image data without compression. The following optional settings can be applied:

  • resolutionDpi (optional, default: `150`): Set the resolution in DPI for the output image.

Request Example (JSON):

{
    "action": "PdfToBmp",
    "parameters": {
        "fileIds": ["66b357061b7f9c2032d6d70f"]
    }
}

Convert PDF to GIF

Convert PDF pages into GIF format, which is often used for web graphics and animations.

Request Example (JSON):

{
    "action": "PdfToGif",
    "parameters": {
        "fileIds": ["66b357061b7f9c2032d6d70f"]
    }
}

Convert PDF to TIFF

Convert PDF pages into TIFF images, often used for high-quality image archiving. The following optional settings can be applied:

  • resolutionDpi (optional, default: `300`): Set the resolution in DPI.
  • compressionType (optional, default: `"None"`): Set the compression type (`EfficientCompression`, `HighQualityFaxCompression`, `NoCompression`, etc.).
  • colorDepth (optional, default: `"Default"`): Choose the color depth (`Default`, `EightBitColor`, `FourBitColor`, `Monochrome`).
  • shape (optional, default: `"Landscape"`): Set the shape of the TIFF (`Landscape`, `Portrait`).
  • skipBlankPages (optional, default: `false`): Skip blank pages in the conversion.

Request Example (JSON):

{
    "action": "PdfToTiff",
    "parameters": {
        "fileIds": ["66b357061b7f9c2032d6d70f"],
        "options": {
            "tiffSettings": {
                "resolutionDpi": 300,
                "compressionType": "EfficientCompression",
                "colorDepth": "EightBitColor",
                "shape": "Landscape",
                "skipBlankPages": true
            }
        }
    }
}

Convert PDF to EMF

Convert PDF pages into EMF (Enhanced Metafile), a format used for high-quality vector graphics.

Request Example (JSON):

{
    "action": "PdfToEmf",
    "parameters": {
        "fileIds": ["66b357061b7f9c2032d6d70f"]
    }
}

Convert PDF to SVG

Convert PDF pages into SVG (Scalable Vector Graphics), widely used for web and responsive graphics. The following optional settings can be applied:

  • zipOutput (optional, default: `false`): If true, the output will be zipped.
  • fileNameAsDirectory (optional, default: `true`): Save each SVG in its own directory named after the file.

Request Example (JSON):

{
    "action": "PdfToSvg",
    "parameters": {
        "fileIds": ["66b357061b7f9c2032d6d70f"],
        "options": {
            "svgSettings": {
                "zipOutput": true,
                "fileNameAsDirectory": false
            }
        }
    }
}