Ruby Windows 8阅读器中虾生成PDF的PDF图形问题

Ruby Windows 8阅读器中虾生成PDF的PDF图形问题,ruby,pdf,windows-8,pdf-generation,prawn,Ruby,Pdf,Windows 8,Pdf Generation,Prawn,我有一个Rails应用程序,它使用Prawn生成PDF 在AdobeReader中有一些rounded\u矩形声明可以正确呈现,但在Windows8的Reader中却不能。在Windows Reader中,这些元素根本不显示。唯一断裂的元素是圆形的_矩形 我的一些虾代码: pdf.stroke do pdf.rounded_rectangle [box_left, box_top], box_width, box_height, box_radius end 这在AdobeReader中非

我有一个Rails应用程序,它使用Prawn生成PDF

在AdobeReader中有一些
rounded\u矩形
声明可以正确呈现,但在Windows8的Reader中却不能。在Windows Reader中,这些元素根本不显示。唯一断裂的元素是圆形的_矩形

我的一些虾代码:

pdf.stroke do
  pdf.rounded_rectangle [box_left, box_top], box_width, box_height, box_radius
end

这在AdobeReader中非常有效。

我使用

pdf.bounding_box([0, height], :width => width) do
  pdf.image background, :fit => [width, height]
end
但由于某些原因,这导致任何图形都落在该图像下面的一层中。使用图像作为背景或干脆不将其放入边界框解决了问题