(page_grids, output_file)
Save a dict <page_grids> with page number -> grid structure as JSON to <output_file>.
    The grid can be generated with extract.make_grid_from_positions.
    This file can be displayed with pdf2xml-viewer.
Save a dict <page_grids> with page number -> grid structure as JSON to <output_file>.
    The grid can be generated with extract.make_grid_from_positions.
    This file can be displayed with pdf2xml-viewer.
Save a dict <page_grids > with page number - > grid structure as JSON to <output_file > . The grid can be generated with extract . make_grid_from_positions . This file can be displayed with pdf2xml - viewer .
def save_page_grids(page_grids, output_file):
    """
    Save a dict <page_grids> with page number -> grid structure as JSON to <output_file>.
    The grid can be generated with extract.make_grid_from_positions.
    This file can be displayed with pdf2xml-viewer.
    """
    with open(output_file, 'w') as f:
        json.dump(page_grids, f, cls=JSONEncoderPlus)
def save_page_grids ( page_grids , output_file ) : with open ( output_file , 'w' ) as f : json . dump ( page_grids , f , cls = JSONEncoderPlus )