Convert PDF to PostgreSQL using an API

Use our API to convert your PDF data to PostgreSQL

Convert to
POST https://dataconverter.io/api/v1/convert/pdf-to-postgresql

After signing up and verifying your email, you will be able to create an API Token in your account settings.

Headers
  • Authorization (required) Bearer <<YOUR_API_TOKEN_HERE>>
Request Body — (multipart/form-data)
  • file (required) string <binary>
  • uploadSettings

    object
    {
      "pages" : [ 0 ],
      "password" : null
    }
  • downloadSettings

    object
    {
      "tableName" : "bookstore",
      "pretty" : true,
      "dropTable" : true,
      "checkIfDropTableExists" : true,
      "checkIfTableNotExists" : true,
      "defaultBigIntegerPrecision" : 20,
      "defaultBigDecimalPrecision" : 20,
      "defaultBigDecimalScale" : 5,
      "useInferredType" : true,
      "sqlScriptType" : "DDL_AND_DML"
    }
Request Sample

curl -X POST "https://dataconverter.io/api/v1/convert/pdf-to-postgresql" \
-H "Authorization: Bearer YOUR_TOKEN_HERE" \
-F "file=@data.pdf;type=application/pdf" \
-F "uploadSettings={\"pages\":[0],\"password\":null};type=application/json" \
-F "downloadSettings={\"tableName\":\"bookstore\",\"pretty\":true,\"dropTable\":true,\"checkIfDropTableExists\":true,\"checkIfTableNotExists\":true,\"defaultBigIntegerPrecision\":20,\"defaultBigDecimalPrecision\":20,\"defaultBigDecimalScale\":5,\"useInferredType\":true,\"sqlScriptType\":\"DDL_AND_DML\"};type=application/json" \
--output converted.sql
          
Show All APIs