hotpdf.sparse_matrix.SparseMatrix¶
- class hotpdf.sparse_matrix.SparseMatrix(rows: int = 0, columns: int = 0)¶
2D representation of a PDF in plain text format.
Sparse matrix removes the need to keep in memory the blank spaces that are present in a PDF. Thus reducing memory usage drastically.
Methods
__init__([rows, columns])get(row_idx, column_idx)insert(value, row_idx, column_idx)