Document AI

Hello team,

I want to set up Document AI (OCR processor) for parsing a single PDF document from an input bucket in GCS into another bucket in GCS in JSON. I can find only batch process and with a local PDF file and I want to take a single PDF from one bucket, parse it into a JSON file and save it in another bucket. Is this possible?

Thank you!

1 Like

You can try adding this to your request json body:

 },
  "documentOutputConfig": {
    "gcsOutputConfig": {
      "gcsUri": "",
      "fieldMask": ""
    }

You can find the full request body here:

https://cloud.google.com/document-ai/docs/send-request#batch-process