redraw_blocks | R Documentation |
Tool to visually check the order of block bounding boxes after
manual processing (e.g. block reordering or splitting). Takes as its main
input a token dataframe generated with build_token_df()
,
reassign_tokens()
, or reassign_tokens2()
.
The function plots the block bounding boxes onto images of the submitted
document. Generates an annotated .png file for each page in the
original document.
redraw_blocks(json, token_df, dir = getwd())
json |
filepath of a JSON file obtained using |
token_df |
a token data frame generated with |
dir |
path to the desired output directory. |
Not vectorized, but documents can be multi-page.
no return value, called for side effects
## Not run:
redraw_blocks("pdf_output.json", revised_token_df, dir = tempdir())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.