是否有任何选项可以自定义stroke_bounds?(铁轨大虾) [英] Is there any options to customize stroke_bounds? (Rails Prawn)

查看:47
本文介绍了是否有任何选项可以自定义stroke_bounds?(铁轨大虾)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为我的 PDF 中的所有页面绘制边框.但是在使用 stroke_bounds 时,我只能单独绘制单个暗线边框.我无法自定义任何内容?

I want to draw borders for all the pages in my PDF. But while using stroke_bounds, I can only draw single dark lined borders alone. I couldn't customize anything?

有人知道如何更改我的 stroke_bounds 边框的样式吗?

Does anybody have any idea on how to change the style of my stroke_bounds borders?

推荐答案

我遇到了同样的问题.我发现你可以使用stroke_color"函数来改变这个颜色.

I had the same problem. I found out that you can use the "stroke_color" function to change this color.

http://prawnpdf.org/docs/0.11.1/Prawn/Graphics/Color.html#method-i-stroke_color

stroke_color "FF0000"
stroke_bounds

这篇关于是否有任何选项可以自定义stroke_bounds?(铁轨大虾)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆