diff --git a/ChangeLog b/ChangeLog index 05697027..2ee054d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 2023-02-25 Jay Berkenbilt * When performing overlay or underlay operations, convert the - origianal page to a form XObject instead of simply isolating its + original page to a form XObject instead of simply isolating its contents with q/Q operators. This prevents unbalanced q/Q operators in any of the original pages from messing up the graphics state of anything that is overlaid on top of it. Fixes diff --git a/libqpdf/QPDFJob.cc b/libqpdf/QPDFJob.cc index dabbf2ea..71610672 100644 --- a/libqpdf/QPDFJob.cc +++ b/libqpdf/QPDFJob.cc @@ -2178,7 +2178,7 @@ QPDFJob::handleUnderOverlay(QPDF& pdf) // any overlays to form XObjects. Then it concatenates display // of all underlays, the original page, and all overlays. // Prior to 11.3.0, the original page contents were wrapped in - // q/Q, but this didin't work if the original page had + // q/Q, but this didn't work if the original page had // unbalanced q/Q operators. See github issue #904. auto& dest_page = main_pages.at(i); auto dest_page_oh = dest_page.getObjectHandle();