You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question regarding the conversion to HTML of the PDF file: Is it possible to detect the paragraphs?
In the following screenshot you can see that the each line of a paragraph is a div, so there is no way (without playing with tops, etc) to know where each paragraph ends.
<divclass="textLayer"><div>Line of text of the first p,</div><div>another line of text of the first one</div><div>This is another p</div></div>
Expected:
<divclass="textLayer"><div>Line of text of the first p, another line of text of the first one</div><div>This is another p</div></div>
The same file has the expected paragraph separation when opening it in native viewers like the Adobe one or in Safari web viewer. We receive that info when doing a copy-paste event of the selected text.
The text was updated successfully, but these errors were encountered:
fjaguero
changed the title
Support line-breaks and paragraphs in the same div
Support paragraphs grouping in the same div
Nov 9, 2014
Hello sorry if I'm reopening this issue, but I would like to know if this feature has been added to PDF.js. I couldn't find any solution to grouping paragraphs on the same span instead of having different spans for each line of the text.
Hello,
I have a question regarding the conversion to HTML of the PDF file: Is it possible to detect the paragraphs?
In the following screenshot you can see that the each line of a paragraph is a div, so there is no way (without playing with tops, etc) to know where each paragraph ends.
Demo PDF
Example:
Right now:
Expected:
The same file has the expected paragraph separation when opening it in native viewers like the Adobe one or in Safari web viewer. We receive that info when doing a copy-paste event of the selected text.
The text was updated successfully, but these errors were encountered: