Create PDF, insert it in another and merge pages - ruby PDF tool?
I am searching for a tool for ruby, that allows me to:
- Create pdf with images, texts and barcodes (I use barby). This document has a very precise specification – all elements have to be placed correctly.
- Take that pdf, rotate, scale and place it in another pdf page.
- Merge several pdf pages.
PDFlib was perfect for this and allowed to do all the three steps, but it's too expensive... The same reason keeps me away form checking princely. My in开发者_运维百科vesitigation led me to the following possible solutions:
1 .
- prawn? - wicked PDF? - PDFkit?2 . ???
3 .
- pdf-merger? - pdf toolkit?Is there something else that I missed? Which option could be the best? Which lib can support step 2?
Thanks for any help!
pdfkit should be able to handle all the items you mention. I've had great luck with it. If you can lay it out with html/css, you can make it a pdf. You can handle scaling and rotation in your environment.rb by passing params to the pdfkit middleware.
I would use Prawn to create the PDF with the images and CombinePDF to Rotateit, scale it and place it within a different PDF.
(I'm biased, being CombinePDF's author)
精彩评论