mgieseki / dvisvgm

A fast DVI, EPS, and PDF to SVG converter
https://dvisvgm.de
GNU General Public License v3.0
306 stars 33 forks source link

Converting PDFs (without background) to svg with mutool #220

Closed povpie closed 1 year ago

povpie commented 1 year ago

On my workflow I need to remove the background from the pdf before converting it to svg(with mutool).

Issue: on some PDFs the removal of the background makes the conversion become very messed when there is a curved text on the pdf. The problem don't seem to show up on straight text.

PDF with background: image

PDF to SVG (with background) image

PDF with no background: image

PDF to SVG (no background) image

I attach below the pdf with background and the one without. (with background) complex3.pdf

(without background) complex3noBG.pdf

mgieseki commented 1 year ago

Thanks for reporting the issue. It's a bug in dvisvgm's new PDF handler. I've fixed it and am going to commit the patch shortly.