Rotating a pdf using prawn

46 views
Skip to first unread message

Yash Madane

unread,
Oct 22, 2018, 11:39:22 PM10/22/18
to Prawn
Hello,

I am trying to rotate a pdf by a certain amount of degrees using prawn. 

 pdf = Prawn::Document.new( :template => 'rotated_pdf.pdf') do |p|
 p.rotate(90)
 end
pdf.render("test.pdf")

I have failed using this. Any suggestions?

rotated_pdf.pdf

Alexander Mankuta

unread,
Oct 22, 2018, 11:43:42 PM10/22/18
to Prawn
Hello,

Templates support have been removed from Prawn a while ago and there's no replacement.

--
Regards,
Alex
Reply all
Reply to author
Forward
0 new messages