PDF Conversion API
PDF Conversion API is a powerful tool designed to extract Text or HTML from URL or File.
About
Curl Request and Response :
For /pdf-to-html-url/ endpoint, the data would be :
/pdf-to-html-url/ endpoint, the data would be :Request :
curl -X 'POST' \
'https://prod.api.market/api/v1/magicapi/pdf-extract/pdf-to-html-url/' \
-H 'accept: text/html' \
-H 'x-api-market-key: API-KEY' \
-H 'Content-Type: application/json' \
-d '{
"pdf_url": "https://www.cedarville.edu/-/media/Files/PDF/Web-Development-Services/SamplePDF.pdf?la=en&hash=1B9D390C8225C1DDE2155F786C6515A3CEF9D4EC"
}'const fetch = require('node-fetch');
let url = 'https://prod.api.market/api/v1/magicapi/pdf-extract/pdf-to-html-url/';
let options = {
method: 'POST',
headers: {'x-api-market-key': 'SOME_STRING_VALUE', 'content-type': 'application/json'},
body: '{"pdf_url":"https://www.sbs.ox.ac.uk/sites/default/files/2019-01/cv-template.pdf"}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));Response :
For /pdf-to-text-url/ endpoint , the data would be :
/pdf-to-text-url/ endpoint , the data would be :Request :
Response :
For /pdf-to-text-file/ endpoint, the data would be :
/pdf-to-text-file/ endpoint, the data would be : Response :
For /pdf-to-html-file/ endpoint, the data would be :
/pdf-to-html-file/ endpoint, the data would be :CURL :
Response :
Last updated