This commit is contained in:
saqib mir
2026-05-26 15:56:44 +05:30
20 changed files with 606 additions and 88 deletions
+3
View File
@@ -120,6 +120,9 @@ PYBIND11_MODULE(pdfengine, m) {
.def("extract_text", [](const pdfengine::PdfPage& self) {
return get_or_throw(self.extractText());
})
.def("extract_annotations_text", [](const pdfengine::PdfPage& self) {
return get_or_throw(self.extractAnnotationsText());
})
.def("extract_text_with_bounds", [](const pdfengine::PdfPage& self) {
auto res = get_or_throw(self.extractTextWithBounds());
py::list py_list;