Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (13 sloc) 463 Bytes
import requests
import json
# Convert a PDF document to JPEG/PNG image via /pdftoimg endpoint -
req = requests.get('',params={
'export': 'jpeg',
reply = req.json()
if reply['status'] != 200:
print (reply['error'])
print ("Link to the image output (Converted PDF page): "+ reply['link'])
You can’t perform that action at this time.