Make PDF document in .NET Visual C# Example: sample <- data.frame(a=c(1,2,3),b=c(2,3,4),c=c("name1","name2","name3"),d=c(1,2,3)) pdf(path,width=15,height=11) par(mfrow=c(2,1)) plot.new() vps <- baseViewports() pushViewport(vps . )) pdf(path,width=5,height=4) grid.arrange(tableGrob(sample, show.rownames=F),tableGrob(sample, show.rownames=F),nrow=2) dev.off() By playing with the pdf width/height one can actually somewhat reduce the gap, but is this the correct way of doing it? .