feat: updated text handling bugs

This commit is contained in:
Furqan-14
2026-06-30 21:18:46 +05:30
parent bc92adfb0c
commit 17023abf27
22 changed files with 583 additions and 178 deletions
+4
View File
@@ -492,5 +492,9 @@ PYBIND11_MODULE(pdfengine, m) {
.def("save_full", [](const pdfengine::PdfDocument& self) {
std::vector<uint8_t> res = get_or_throw(self.saveFull());
return py::bytes(reinterpret_cast<const char*>(res.data()), res.size());
})
.def("save_full_for_export", [](const pdfengine::PdfDocument& self) {
std::vector<uint8_t> res = get_or_throw(self.saveFullForExport());
return py::bytes(reinterpret_cast<const char*>(res.data()), res.size());
});
}