Bug 707826

Summary: Incorrect SVG conversion result
Product: MuPDF Reporter: Jorj <jorj.x.mckie>
Component: mupdfAssignee: MuPDF bugs <mupdf-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: robin.watts
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Customer: Word Size: ---

Description Jorj 2024-06-13 12:02:44 UTC
Providing an example where the generated SVG for a PDF page is incorrect.

PyMuPDF Discussion item: https://github.com/pymupdf/PyMuPDF/discussions/3573

File link: https://github.com/user-attachments/files/15817322/test.pdf

Reproducer: mutool draw -o test.svg test.pdf

Result: Showing a black page.
Comment 1 Robin Watts 2024-06-13 22:31:31 UTC
Fixed with:

commit 0982783bca8f52513c8f282df70405e70095930a (golden/master)
Author: Robin Watts <Robin.Watts@artifex.com>
Date:   Thu Jun 13 19:23:03 2024 +0100

    Bug 707826: Fix SVG clip path mistake.

    SVG clipPaths use clip-rule, not fill-rule. This was causing even-odd
    clipping regions to be drawn as non-zero.