Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

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 1 199
1 REPLY 1

You can try adding this to your request json body:

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

 You can find the full request body here: