Closed UWinch closed 3 months ago
What's in the PR?
Support the analyse pdf endpoint with two new methods analyse_pdf_to_pdf (returns bytes) and analyse_pdf_to_json (returns json).
analyse_pdf_to_pdf
analyse_pdf_to_json
How to test manually?
E.g send a pdf to be analysed and saved to an annotated pdf file with
client = Client(PRODUCT_URL, api_token=API_TOKEN) project = client.get_project("Test") pipeline = project.get_pipeline("pipeline") with open(TARGET_FILE_PATH, 'wb') as target_file: target_file.write(pipeline.analyse_pdf_to_pdf(PDF_FILE_PATH))
What's in the PR?
Support the analyse pdf endpoint with two new methods
analyse_pdf_to_pdf
(returns bytes) andanalyse_pdf_to_json
(returns json).How to test manually?
E.g send a pdf to be analysed and saved to an annotated pdf file with