Skip to content
New issue

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

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

Already on GitHub? # to your account

Use the extract_text data in Ruby rather than a file #42

Closed
geomic opened this issue Apr 29, 2012 · 2 comments
Closed

Use the extract_text data in Ruby rather than a file #42

geomic opened this issue Apr 29, 2012 · 2 comments
Labels

Comments

@geomic
Copy link

geomic commented Apr 29, 2012

Can I just say first.. Docsplit is amazing!

I have this in my code...
Docsplit.extract_text(source_path, :output => destination_path)

Is there a way, however, to "get" the text in Ruby directly?
With the above, I end up with a lovely file that contains text, but it I am to use it, I need to reopen it to get its contents.

As far as I know, setting:

something = Docsplit.extract_text(...)

..would just give me the source filename in "something".

@jashkenas
Copy link
Member

Yep -- the text is purposefully handled outside of the Ruby process, so you're not reading the contents of the document as a Ruby string.

... but feel free to read the file afterwards.

@geomic
Copy link
Author

geomic commented Apr 30, 2012

Thanks for your reply Jeremy.

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

No branches or pull requests

2 participants