我使用tinymce编辑器编写内容并为其生成pdf报告,当编辑器中的文本字体大小与pdf报告的字体大小进行比较时,pdf报告中的字体大小与文本字体大小相比变小生成相应的pdf时,微小的mce编辑器。我以下列方式呈现pdf。
`render:pdf => “#{} report.name”, :orientation => paper_orientation.nil? ? '肖像':paper_orientation, :page_height => @ page_height.nil? ? '27 .94cm':@ page_height +“cm”, :page_width => @ page_width.nil? ? '21 .59cm':@ page_width +“cm”,
:margin => paper_orientation =='肖像'? paper_margin.nil? ? {:top => '2.1cm',:bottom => '2.5cm',:left => '2cm',:right => '2.1cm'}:{:top => (paper_margin [:top] .to_f + 2.1)。to_s +“cm”,:bottom => paper_margin [:bottom] +“cm”,:left => paper_margin [:left] +“cm”,:right => (paper_margin [:right] .to_f + 0.1)。to_s +“cm”}:
paper_margin.nil? ? {:top => '2.8cm',:bottom => '2.5cm',:left => '2cm',:right => '2.2cm'}:{:top => (paper_margin [:top] .to_f + 2.8)。to_s +“cm”,:bottom => paper_margin [:bottom] +“cm”,:left => paper_margin [:left] +“cm”,:right => (paper_margin [:right] .to_f + 0.2)。to_s +“cm”}, :footer => {}` 谁能帮帮我吗。