Bug 103296 - Web browsers displays artifacts for svg images generated from pdf documents
Summary: Web browsers displays artifacts for svg images generated from pdf documents
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: cairo backend (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-16 14:50 UTC by Alex
Modified: 2018-08-21 11:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
original pdf file (2.00 MB, application/pdf)
2017-10-16 14:50 UTC, Alex
Details

Description Alex 2017-10-16 14:50:16 UTC
Created attachment 134865 [details]
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:

<path xmlns="http://www.w3.org/2000/svg" style=" stroke:none;fill-rule:evenodd;fill:rgb(0%,0%,0%);fill-opacity:1;" d="M 394.175781 101.183594 L 570.613281 102.773438 L 571.117188 40 L 394.679688 38.410156 Z M 394.175781 101.183594 "/>

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
Comment 1 GitLab Migration User 2018-08-21 11:14:56 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/581.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.