Bug 26944 - pdftoppm sometimes renders white borders
Summary: pdftoppm sometimes renders white borders
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: splash backend (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-07 16:39 UTC by Jim Paris
Modified: 2018-08-20 22:06 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Black page PDF (1.87 KB, application/pdf)
2010-03-07 16:39 UTC, Jim Paris
Details
Simple Beamer source for test.pdf (157 bytes, text/plain)
2010-03-07 16:39 UTC, Jim Paris
Details

Description Jim Paris 2010-03-07 16:39:12 UTC
Created attachment 33844 [details]
Black page PDF

When passing a resolution to pdftoppm, the resulting image can get a thin (<1px) white border on the bottom and right edges.  For example, the attached test.pdf is all black, but
  pdftoppm -r 203 test.pdf > test.ppm
generates an image with a thin white line at the bottom.

(The Impressive viewer uses pdftoppm in this way, and such artifacts are readily visible against the black background there.)
Comment 1 Jim Paris 2010-03-07 16:39:51 UTC
Created attachment 33845 [details]
Simple Beamer source for test.pdf
Comment 2 ubitux 2017-01-03 15:05:31 UTC
I have the exact same problem in a different scenario:

Generate a small pdf with "Hello world" in red on a black page:

    pdflatex -jobname test "\documentclass[varwidth,border=4pt]{standalone}\usepackage{xcolor}\pagecolor{black}\color{red}\begin{document}Hello World\end{document}"

Convert to an image using pdftocairo:

    pdftocairo -r 300 -png -singlefile test.pdf test

The resulting test.png has bottom and right white-like borders. The intensity of the white can fluctuate depending on the resolution option (-r).

This issue is not reproducible when converting using ghostscript.
Comment 3 GitLab Migration User 2018-08-20 22:06:35 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/198.


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.