Load PDF
Ingest a .pdf
file for data extraction.
- curl
- Python
data=$(base64 < myfile.pdf)
curl http://localhost:8088/api/v1/load/document \
--header "content-type: application/json" \
--data \
'{
"data": $data
}'
Install the TrustGraph
SDK:
pip install trustgraph-cli
import trustgraph.api as tg
pdf = open("<myfile.pdf>", "rb").read()
client = tg.Api()
client.load_document(pdf)