Remove PoDoFo 0.10.0 compat path

Since podofo 0.10.1 is released and has various performance and security
fixes over 0.10.0, everyone should use that.
This commit is contained in:
Kovid Goyal 2023-06-30 09:50:16 +05:30
parent 27981cd3aa
commit ca2b4e02ed
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -391,11 +391,7 @@ PDFDoc_append(PDFDoc *self, PyObject *args) {
unsigned total_pages_to_append = 0;
for (auto src : docs) total_pages_to_append += src->GetPages().GetCount();
unsigned base_page_index = dest->GetPages().GetCount();
#if PODOFO_VERSION > PODOFO_MAKE_VERSION(0, 10, 0)
dest->GetPages().CreatePagesAt(base_page_index, total_pages_to_append, Rect());
#else
while (total_pages_to_append--) dest->GetPages().CreatePage(Rect());
#endif
for (auto src : docs) {
MapReferences ref_map;
std::vector<AppendPagesData> pages;