Skip to content
Prev 12408 / 15075 Next

Embedding PDF documents created in R in Word documents

Hi Dennis,

Try it with the attached PDF, created with:

pdf("test.pdf", width = 5, height = 3.5)
plot(1:5)
dev.off()

I am using R 3.4.4 on macOS 10.13.3, with Word 2016.

When I drag the pdf file from my desktop into Word, or the thumbnail from Preview, the size of the embedded object is correct and I get the correct preview image of the plot in Word.

If I copy and paste the thumbnail into Word, it has the correct size, the but preview image in Word appears to be bitmapped, instead of vector, so the quality of the image in Word is not as good. Similar to what one might see embedding an EPS file in Word.

Also, if I "Insert" object from the Word menu, and select the PDF file, I get the correct size and the vector based image.

Regards,

Marc Schwartz



-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.pdf
Type: application/pdf
Size: 4529 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20180326/9c6ce625/attachment.pdf>