mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
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:
parent
27981cd3aa
commit
ca2b4e02ed
@ -391,11 +391,7 @@ PDFDoc_append(PDFDoc *self, PyObject *args) {
|
|||||||
unsigned total_pages_to_append = 0;
|
unsigned total_pages_to_append = 0;
|
||||||
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)
|
|
||||||
dest->GetPages().CreatePagesAt(base_page_index, total_pages_to_append, Rect());
|
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) {
|
for (auto src : docs) {
|
||||||
MapReferences ref_map;
|
MapReferences ref_map;
|
||||||
std::vector<AppendPagesData> pages;
|
std::vector<AppendPagesData> pages;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user