diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-12-08 18:31:12 -0800 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-12-08 19:14:21 -0800 |
commit | 519087f4f29aad524c9e12c64946cb242a05a5a9 (patch) | |
tree | 00af83c8527af61888badfcff1e83aaa7e47dacb | |
parent | 311b9e178444a9c80db441fe8707dd7512f503ea (diff) | |
download | mupdf-519087f4f29aad524c9e12c64946cb242a05a5a9.tar.xz |
Fix blend.ai.pdf - Missing "exclusion" text
When creating a group around text, the text bbox was being used as the
group bbox without transforming it. This results in missing text in
blends.
Various text sections are now appearing in some test files too.
-rw-r--r-- | pdf/pdf_interpret.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c index 05494348..ff0eb388 100644 --- a/pdf/pdf_interpret.c +++ b/pdf/pdf_interpret.c @@ -599,7 +599,8 @@ pdf_flush_text(pdf_csi *csi) fz_try(ctx) { - pdf_begin_group(csi, csi->text_bbox); + fz_rect tb = fz_transform_rect(gstate->ctm, csi->text_bbox); + pdf_begin_group(csi, tb); if (doinvisible) fz_ignore_text(csi->dev, text, gstate->ctm); |