feat: wasm update and annotations

This commit is contained in:
Furqan-14
2026-05-26 15:52:04 +05:30
parent ec265c663e
commit 39794ca65f
20 changed files with 604 additions and 87 deletions
+3
View File
@@ -96,6 +96,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;