POST
Extracts metadata from a given PDF document.
The following example returns contained metadata in a given PDF document.
# Request:
curl --location --request POST 'https://trial.dsserver.io/documentprocessing/pdf/metadata' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer fePFHv8OtIyRSCAdOnn7USc9kKdYB2rg' \
--data-raw '"JVBERi0xLjQN[..]=="'
# Result:
"<?xpacket begin=\"\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?>\n<x:xmpmeta xml[..]<?xpacket end=\"w\"?>"
Type | Value |
---|---|
string | The PDF document encoded as a Base64 string. |
Status | Description |
---|---|
200 | On success, the HTTP status code in the response header is 200 (OK). The response contains the metadata string. |
Status | Description |
---|---|
401 | A 401 (Unauthorized) is returned, if the user is not authorized. |
400 | A 400 (Bad Request) is returned, if DS Server is not licensed or the license is invalid. |
400 | A 400 (Bad Request) is returned, if no metadata is found in the PDF document. |