From dec4f9f82e6edc3ed7b5ea8dcce6b2ef2ea59cea Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 16 Nov 2023 20:08:10 +0530 Subject: [PATCH] Restore garbage removal on podofo save as we now bundle a version of podofo with the fix --- src/calibre/utils/podofo/global.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/calibre/utils/podofo/global.h b/src/calibre/utils/podofo/global.h index 74bc124c54..d819afb60b 100644 --- a/src/calibre/utils/podofo/global.h +++ b/src/calibre/utils/podofo/global.h @@ -130,8 +130,7 @@ object_as_reference(const PdfObject *o) { } // NoMetadataUpdate needed to avoid PoDoFo clobbering the /Info and XMP metadata with its own nonsense -// NoCollectGarbage needed to avoid slowdowns on writing, see https://github.com/podofo/podofo/issues/108 -static const PdfSaveOptions save_options = PdfSaveOptions::NoMetadataUpdate | PdfSaveOptions::NoCollectGarbage; +static const PdfSaveOptions save_options = PdfSaveOptions::NoMetadataUpdate; class PdfReferenceHasher { public: