# Interface with Google Cloud Document AI API

## Documentation for package ‘daiR’ version 0.9.9

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

.onAttach | Run when daiR is attached
build_block_df | Build block dataframe
build_token_df | Build token dataframe
dai_async | OCR documents asynchronously
dai_async_tab | OCR asynchronously and get table data
dai_auth | Check authentication
dai_notify | Notify on job completion
dai_status | Check job status
dai_sync | OCR document synchronously
dai_sync_tab | OCR synchronously and get table data
dai_token | Produce access token
dai_user | Get user information
draw_blocks | Draw block bounding boxes on source document
draw_lines | Inspect line bounding boxes
draw_paragraphs | Draw paragraph bounding boxes on source document
draw_tokens | Inspect token bounding boxes
from_labelme | Extract block coordinates from labelme files
get_processors | List all processors available in a project
get_processor_info | Get information about processor
get_processor_versions | List available processor versions
get_project_id | Get project id
image_to_pdf | Convert images to PDF
img_to_binbase | Image to base64 tiff
is_colour | Check that a string is a valid colour representation
is_json | Check that a file is JSON
is_pdf | Check that a file is PDF
make_hocr | Make hOCR file
merge_shards | Merge shards
pdf_to_binbase | PDF to base64 tiff
reassign_tokens | Assign tokens to new blocks
reassign_tokens2 | Assign tokens to a single new block
redraw_blocks | Inspect revised block bounding boxes
split_block | Split a block bounding box
tables_from_dai_file | Get tables from output file
tables_from_dai_response | Get tables from response object
text_from_dai_file | Get text from output file
text_from_dai_response | Get text from HTTP response object