combine_pdf icon indicating copy to clipboard operation
combine_pdf copied to clipboard

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

Open Souravgoswami opened this issue 2 years ago • 0 comments

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.

Souravgoswami avatar Sep 30 '22 11:09 Souravgoswami