unidoc / unipdf

Golang PDF library for creating and processing PDF files (pure go)
https://unidoc.io
Other
2.48k stars 250 forks source link

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

Open cyberlord29 opened 3 years ago

cyberlord29 commented 3 years ago

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.

github-actions[bot] commented 3 years ago

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/

gunnsth commented 3 years ago

@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.

cyberlord29 commented 3 years ago

@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.

gunnsth commented 3 years ago

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.

cyberlord29 commented 3 years ago

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

cyberlord29 commented 3 years ago

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

peterwilliams97 commented 3 years ago

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?

cyberlord29 commented 3 years ago

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

peterwilliams97 commented 3 years ago

peter.wi

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

peter.williams.97@gmail.com

peterwilliams97 commented 3 years ago

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 notifications@github.com 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 .