From kwright68 at gmail.com  Thu Oct 19 22:14:27 2006
From: kwright68 at gmail.com (Kevin Wright)
Date: Thu, 19 Oct 2006 15:14:27 -0500
Subject: [Rd] Bug in Acrobat Reader 7 (or R?) with translucent text
Message-ID: <adf71a630610191314q5c40042dw9528a48f9ef55ce7@mail.gmail.com>

My setup:  R 2.4.0, Windows 2000, Acrobat Reader 7.

When I create a .pdf with translucent colors, the translucency works
correctly for points, but not for text.  Below is some R code that
creates a .pdf with this phenomenon.

I was going to report this as a bug in R, but then I tried to view the
pdf with a couple of other viewers and found that at least one of the
viewers correctly displayed the file (with translucent text), so maybe
it is a bug with Acrobat Reader.  It might be worth checking to see if
colors for "text" are handled any differently than colors for "points"
that might cause this problem.

Best,

Kevin Wright


black <- rgb(0,0,0,.75)
blue <- rgb(0, .2, 1, .75)
red <- rgb(1,0,0,.75)
pdf("pdfcols.pdf", version="1.4")
set.seed(50)
plot(.5,.5,type="n",xlim=c(0,1),ylim=c(0,1))
points(runif(200),runif(200), col=black)
points(runif(200),runif(200), col=blue)
points(runif(200),runif(200), col=red)
text(.1, .1, "This is red", col=red)
text(.1, .1, "Also red", col=red)
text(.2, .2, "This is blue", col=blue)
text(.2, .2, "Also blue", col=blue)
text(.3, .3, "This is black", col=black)
text(.3, .3, "Also black", col=black)
points(runif(200),runif(200), col=black)
points(runif(200),runif(200), col=blue)
points(runif(200),runif(200), col=red)
dev.off()




[Rd] Bug in Acrobat Reader 7 (or R?) with translucent text
Kevin Wright