fix pdf parsing

This commit is contained in:
Pete Matsyburka
2024-05-22 21:37:23 +03:00
parent f84fdd51de
commit 2a75055fb6
+7
View File
@@ -14,6 +14,13 @@ module HexaPDF
end
module Type
class Page
# fix NoMethodError (undefined method `color_space' for an instance of HexaPDF::Type::Page)
def color_space(name)
GlobalConfiguration.constantize('color_space.map', name).new
end
end
# fix NoMethodError: undefined method `field_value' for #<HexaPDF::Type::AcroForm::Field
module AcroForm
class Field