This commit is contained in:
Kovid Goyal 2023-06-22 09:59:05 +05:30
parent e365da1dc2
commit 44eb122aba
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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