Skip to content
6 changes: 4 additions & 2 deletions documentai/snippets/handle_response_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
# file_path = "/path/to/local/pdf"
# mime_type = "application/pdf" # Refer to https://cloud.google.com/document-ai/docs/file-types for supported file types


# [END documentai_process_ocr_document]
# [END documentai_process_form_document]
# [END documentai_process_specialized_document]
Expand Down Expand Up @@ -469,7 +468,10 @@ def process_document_layout_sample(
chunking_config=documentai.ProcessOptions.LayoutConfig.ChunkingConfig(
chunk_size=1000,
include_ancestor_headings=True,
)
),
https://cloud.google.com/document-ai/docs/layout-parse-chunk#layout_parser_features
enable_image_annotation=True, # Optional
enable_table_annotation=True, # Optional
)
)

Expand Down