Closed kapso closed 4 months ago
Is this the only way to create HexaPDF::Document instance using StringIO?
HexaPDF::Document
StringIO
I could not find anything in the docs.
form = HTTP.get(FORM_URL).to_s HexaPDF::Document.new(*[], io: StringIO.new(form))
Yes, you can directly pass any IO instance to HexaPDF::Document.new. The HexaPDF::Document.open method can additionally be used when opening files.
HexaPDF::Document.new
HexaPDF::Document.open
Is this the only way to create
HexaPDF::Document
instance usingStringIO
?I could not find anything in the docs.