unipdf icon indicating copy to clipboard operation
unipdf copied to clipboard

[PROBLEM] ExtractText() Behaviour differences in new version( 3.0.3 to 3.14.0)

Open cyberlord29 opened this issue 3 years ago • 10 comments

Description

We have migrated from v 3.0.3 to 3.14.0 to get the table extraction features.

The extractText function behaviour has changed when the line is part of a table, it seems to parse each cell row by row and then move to the next column , instead of just spitting out the whole row as it did in the previous versions.

Please let me know if you are able to recognize this issue , I can add detailed screenshots etc if you aren't.

Thanks a lot.

cyberlord29 avatar Nov 25 '20 09:11 cyberlord29

Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized, other issues go into our backlog where they are assessed and fitted into the roadmap when suitable. If you need to get this done, consider buying a license which also enables you to use it in your commercial products. More information can be found on https://unidoc.io/

github-actions[bot] avatar Nov 25 '20 09:11 github-actions[bot]

@cyberlord29 Can you define the problem and provide the actual files where the regression can be clearly seen. As such it is not unexpected that the output can change, as long as the quality, in terms of visual comparison is getting better. The engine is still under active development and being refined continuously.

gunnsth avatar Nov 25 '20 10:11 gunnsth

@gunnsth So here is the PDF Screenshot ,

Screenshot 2020-11-25 at 17 11 19

Here is the output of extractText() of versions v3.0.3 - v3.8.0

Screenshot 2020-11-25 at 17 13 02

Here is the output of extractText() of versions v3.9.0 +

Screenshot 2020-11-25 at 17 10 42

Can we still utilize the legacy behaviour in the newer packages ?

Tables is not an option here as PageText.Tables() is not able to properly parse the table as there are some sparse rows in between, (will add screenshots for those shortly).

Thanks.

cyberlord29 avatar Nov 25 '20 11:11 cyberlord29

Thanks, that makes sense, we will look into this and get back to you. Might make sense to have some options here as for some cases the tables make sense whereas others not.

gunnsth avatar Nov 25 '20 12:11 gunnsth

@gunnsth yeah thanks , Please let us know , as we are deciding on a license renewal as well.

cyberlord29 avatar Nov 25 '20 12:11 cyberlord29

@gunnsth also please let us know if there is any dirty fix to get this behaviour 😅 , Thanks.

cyberlord29 avatar Nov 25 '20 12:11 cyberlord29

Hi @cyberlord29 It looks like my table extraction code changes caused this problem. Those changes improve extraction of many other types of tables. We can give you a better experience by fixing those changes to work with your table than by reverting the changes, Are you able to share the PDF file that contains the table with us?

peterwilliams97 avatar Nov 25 '20 21:11 peterwilliams97

@peterwilliams97 That sounds great , can you leave an email Id here so I can send it to you ?

cyberlord29 avatar Nov 25 '20 22:11 cyberlord29

peter.wi

@peterwilliams97 That sounds great , can you leave an email Id here so I can send it to you ?

[email protected]

peterwilliams97 avatar Nov 30 '20 21:11 peterwilliams97

Hi Maneesh

Sorry for the late reply. This is my email.


Peter Williams 0488 783 700 / +61 488 783 700

On Thu, Nov 26, 2020 at 9:40 AM Maneesh [email protected] wrote:

@peterwilliams97 https://github.com/peterwilliams97 That sounds great , can you leave an email Id here so I can send it to you ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/unidoc/unipdf/issues/427#issuecomment-733976760, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAZKXMCFQEPOGOZIJZDBCDSRWBURANCNFSM4UCDYNKQ .

peterwilliams97 avatar Jan 11 '21 11:01 peterwilliams97