pdf-writer icon indicating copy to clipboard operation
pdf-writer copied to clipboard

Implemented Ruby 2.0 compatibility

Open mwlang opened this issue 11 years ago • 5 comments

mwlang avatar Aug 16 '13 13:08 mwlang

any updated on this? seems this was opened 3 years ago and there is no comment . Is this something that still needs merging? Are there any plans of merging this?

bogdanRada avatar Jul 28 '16 16:07 bogdanRada

@bogdanRada I've moved on to prawn for generating PDF's since opening this ticket. My guess is that this project's pretty much end-of-life.

mwlang avatar Jul 28 '16 17:07 mwlang

:( that's sad to hear. Ok. I will try Prawn. Thanks for suggestion.

bogdanRada avatar Jul 28 '16 17:07 bogdanRada

If you absolutely need pdf-writer, you can use my fork. It mostly works, but not all edge-cases covered. My initial goal was to quickly port an existing Rails 1 project to Rails 4, which was accomplished. Then we ported the PDF generation in the project to Prawn in subsequent sprints. Prawn has much better encoding support and most likely why this project's gone dormant.

mwlang avatar Jul 28 '16 18:07 mwlang

ok. Thanks. Well honestly i only needed it for measuring the width of a string using Verdana as font family, and after spending few hours trying to make this gem somehow detect the font path, i gave up and switched to prawn as you suggested. The changes are already here: https://github.com/bogdanRada/ruby-gem-downloads-badge/blob/feature/show-default-template-in-case-shields.io-down/lib/svg_template.rb#L42

Although I admit i liked this gem better because is more intuitive and uses standard Ruby classes instead of using a DSL . Prawn uses a DSL mostly but the documentation is poorly written and i had to search through the code to find what i need.

Would really love to see this gem updated honestly. The manual for this gem is really great, Everything is explained very good.

bogdanRada avatar Jul 28 '16 19:07 bogdanRada