Web browsers displays artifacts for svg images generated from pdf documents
Submitted by Alex
Assigned to poppler-bugs
Link to original bug (#103296)
Description
Created attachment 134865 original pdf file
After converting some pdf documents to svg images by pdftocairo all web browsers (at least Firefox 56.0, Safari 11.0, Chrome 61.0.3163.100 in MAC OSX) show artifacts on images. To reproduce the issue make the following steps:
-
convert the attached pdf to SVG: pdftocairo -svg -f 1 -l 1 err-doc-5.pdf err-doc-5.svg
-
open the SVG image by any mentioned web browser and check how it looks. It expects no any artifacts on the image but it contains black rectangles. Researching the SVG content showed that these elements have the following structure:
This issue has been tested with latest poppler versions 0.60 and 0.60.1. Previous versions of pdftocairo also contain this problem.
PS: here is the environment info on my Ubuntu 14.04 after running "cmake .." -- checking for module 'nss>=3.19' -- package 'nss>=3.19' not found -- Could NOT find NSS3 (missing: NSS3_LIBRARIES NSS3_CFLAGS) -- Found Qt-Version 4.8.6 (using /usr/bin/qmake) -- checking for modules 'glib-2.0>=2.41;gobject-2.0>=2.41;gio-2.0>=2.41' -- package 'glib-2.0>=2.41' not found -- package 'gobject-2.0>=2.41' not found -- package 'gio-2.0>=2.41' not found -- Could NOT find GLib (missing: GLIB2_LIBRARIES GLIB2_CFLAGS) -- checking for module 'libopenjp2' -- package 'libopenjp2' not found -- Found lcms version 2.05, /usr/lib/x86_64-linux-gnu/liblcms2.so -- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR) Building Poppler with support for: font configuration: fontconfig splash output: yes cairo output: yes qt4 wrapper: yes qt5 wrapper: yes glib wrapper: no introspection: no gtk-doc: no cpp wrapper: yes use libjpeg: yes use libpng: yes use libtiff: yes use zlib compress: yes use zlib uncompress: no use nss3: no use curl: no use libopenjpeg: yes with openjpeg1 use cms: yes with lcms2 command line utils: yes test data dir: /home/alex/poppler/../test -- Configuring done
Attachment 134865, "original pdf file":
err-doc-5.pdf