PDF Text Extractor

פרמיום
על ידי Jeremy zhang | מְעוּדכָּן 2 महीने पहले | Tools
פּוֹפּוּלָרִיוּת

9 / 10

חֶבִיוֹן

790ms

רמת שירות

87%

Health Check

N/A

חזרה לכל ההדרכות (1)

Extract Text Code Example

Extract Text Example (Python)

import requests

filepath = "your_local_file.pdf"
files = {'file': open(filepath, 'rb')}

url = "https://pdf-text-extractor.p.rapidapi.com/extract_text"

# remember not to put 'content-type': "multipart/form-data" in the header!
headers = {
    'x-rapidapi-host': "pdf-text-extractor.p.rapidapi.com",
    'x-rapidapi-key': {your_key}  
    }

response = requests.post(url, files=files, headers=headers)
print(response.text)