boazsegev / combine_pdf

A Pure ruby library to merge PDF files, number pages and maybe more...
MIT License
733 stars 154 forks source link

no implicit conversion of Symbol into Integer when using fonts() #223

Open Souravgoswami opened 1 year ago

Souravgoswami commented 1 year ago

TypeError is raised when calling fonts() method on CombinePDF::PDF object.

CombinePDF.new(file).fonts()

Or

CombinePDF.load(file).fonts()

Result:

TypeError - no implicit conversion of Symbol into Integer

It doesn't matter if I pass true to the argument or use default false.

EDIT: Only happens with latest version 1.0.22. Works fine on 1.0.21. Although even with embedded Calibri and MS Reference Sans Serif, the fonts() method returns and empty array.