Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing rtf file with simple text result junk in output #16

Open
ShockwaveNN opened this issue Aug 13, 2020 · 0 comments
Open

Parsing rtf file with simple text result junk in output #16

ShockwaveNN opened this issue Aug 13, 2020 · 0 comments

Comments

@ShockwaveNN
Copy link

Try to parse attached file
test.zip

LibreOffice and all other known to me editors correctly opens it
image

But parsing it with ruby-rtf result are:

require_relative 'lib/ruby-rtf'

rtf = RubyRTF::Parser.new.parse(File.open('/home/lobashov/temp/test.rtf').read)
rtf.sections.each do |sec|
  puts sec[:text]
end

Outpus (ignoring warnings about unknown control):

�đėĔ

ĖāĠĖ

ĄāĔā




�āĕĖ


 

Tested on ruby-rtf v0.0.5 with ruby 2.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant