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

[Request] getTextBlocks line seprated by list instead of space #131

Closed
thebestnom opened this issue Feb 3, 2018 · 4 comments
Closed

[Request] getTextBlocks line seprated by list instead of space #131

thebestnom opened this issue Feb 3, 2018 · 4 comments

Comments

@thebestnom
Copy link

thebestnom commented Feb 3, 2018

Im using getTextBlocks and I have a problem that the line have space in it, so I need somehow to know if two words are single line or two seprate lines (im reading a xps file)

@thebestnom thebestnom changed the title Request getTextBlocks line seprated by list instead of space [Request] getTextBlocks line seprated by list instead of space Feb 3, 2018
@JorjMcKie
Copy link
Collaborator

I assume you cannot use the "standard" getText method? It separates lines by newline characters.

I could change getTextBlocks output such that lines are separated by \n instead of by a space. Depending on the further use this may or may not be helpful.

How about introducing a new option argument e.g. linesep with space as default?

@thebestnom
Copy link
Author

getText gives a non-standard list... I specifically need a by block list... a new option for separator sounds great, I would be more than happy to have it!
thank you so much!

@JorjMcKie
Copy link
Collaborator

JorjMcKie commented Feb 9, 2018

Just uploaded a fix for issues #130 and #132.
As part of these I have included a small change to Page.getTextBlocks(): lines within a block are now separated by linebreaks \n instead of spaces - without changing anything in the programmer API. This should address your request.
Please confirm.

@thebestnom
Copy link
Author

I will have time to check it today, thank you!

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

2 participants