Bug 704627

Summary: SVG creation fails for PDF with shading
Product: MuPDF Reporter: Jorj <jorj.x.mckie>
Component: svg outputAssignee: Robin Watts <robin.watts>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P4    
Version: 1.19.0   
Hardware: PC   
OS: Windows 10   
Customer: Word Size: ---
Attachments: cleaned, 1-page PDF showing the error

Description Jorj 2021-10-17 20:58:35 UTC
Created attachment 21767 [details]
cleaned, 1-page PDF showing the error

Page of attached file cannot be converted to PDF using command

mutool draw -o cleaned.svg cleaned.pdf

Tested on both Linux and Windows. Error messages:

page cleaned.pdf 1error: Overly large image
warning: Ignoring error during interpretation

On Linux only, similar conversion to HTML also fails with message

page cleaned.pdf 1error: Illegal dimensions for pixmap 0 -128
warning: Ignoring error during interpretation
Comment 2 Robin Watts 2022-05-09 14:21:20 UTC
Fixed ages ago as:

commit 04a22444b3d486787a6ba060717ef5422843812f
Author: Robin Watts <Robin.Watts@artifex.com>
Date:   Fri Oct 22 17:23:12 2021 +0100

    Bug 704627: Fix infinite bounded shade problem when writing SVGs.

    We render the shade to an image for SVG generation. For infinitely
    bounded shades, this can lead to impossibly large images.

    Clip to the size of the page.

I forgot to close the bug.