Bug 707826 - Incorrect SVG conversion result
Summary: Incorrect SVG conversion result
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-13 12:02 UTC by Jorj
Modified: 2024-06-13 22:31 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.