![](/img/trans.png)
[英]pdf file rendered in portrait instead of landscape
我們正在使用王子寶石在rails 4應用程序上生成pdf文檔。 在最后幾天,生成的pdf將以縱向模式而不是指定的橫向模式渲染; 多年來,此功能一直運行良好。 服務器上的ruby / rails版本已進行了一些更新,但pdf生成代碼本身未作任何更改。 一個有趣的方面是,當我在自己的 ...
[英]pdf file rendered in portrait instead of landscape
我們正在使用王子寶石在rails 4應用程序上生成pdf文檔。 在最后幾天,生成的pdf將以縱向模式而不是指定的橫向模式渲染; 多年來,此功能一直運行良好。 服務器上的ruby / rails版本已進行了一些更新,但pdf生成代碼本身未作任何更改。 一個有趣的方面是,當我在自己的 ...
[英]Not finding images when generating pdf's with Prince using the Princely plugin Rails 4.2.1
當我渲染html視圖時,我在app / assets / images /中有一堆圖像。 當我通過王子渲染pdf視圖時,它們不存在,我得到的是這樣的東西:Bd header70 b cc0e9cd02bd0b2ec1f31f22bbfe90be47fec42de002e9f5445603b82 ...
[英]how to force long URL/text to wrap in table cell when generating PDF in rails?
我正在使用princely( https://github.com/mbleigh/princely )在Rails中生成PDF。 我在一個表格單元格中有長網址。 生成PDF時,它將延長頁邊距。 在html中,“斷字:全部”; 效果很好。 但是這條規則是“斷字:全部”; 在PDF中不 ...
[英]Princely is generation text/html instead application/pdf?
我正在使用Princely和Rails3。當我嘗試呈現這樣的pdf時.. respond_to do |format| format.pdf do render :pdf => "filename", :template => "path/template.pdf" end ...
[英]Assistance using respond_to to find the right actions to render PDF in ruby on rails
我正在嘗試使用Princely插件試用Prince,該插件應該將具有.pdf的模板格式化為PDF生成器。 這是我的控制器: 我將routes.db更改為包括以下內容: 我的預期行為是當我輸入todo / today.pdf時,它嘗試執行show_date,但根據王子插件進行 ...