Bug 704627 - SVG creation fails for PDF with shading
Summary: SVG creation fails for PDF with shading
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: svg output (show other bugs)
Version: 1.19.0
Hardware: PC Windows 10
: P4 normal
Assignee: Robin Watts
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-17 20:58 UTC by Jorj
Modified: 2022-05-09 14:21 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
cleaned, 1-page PDF showing the error (91.73 KB, application/pdf)
2021-10-17 20:58 UTC, Jorj
Details

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