unipdf
unipdf copied to clipboard
[PROBLEM] ExtractText() Behaviour differences in new version( 3.0.3 to 3.14.0)
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.
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/
@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 So here is the PDF Screenshot ,
![Screenshot 2020-11-25 at 17 11 19](https://user-images.githubusercontent.com/19804038/100224338-b7077b80-2f42-11eb-84f4-b24f8936b882.png)
Here is the output of extractText() of versions v3.0.3 - v3.8.0
![Screenshot 2020-11-25 at 17 13 02](https://user-images.githubusercontent.com/19804038/100224440-d6060d80-2f42-11eb-93fc-7285cbb20143.png)
Here is the output of extractText() of versions v3.9.0 +
![Screenshot 2020-11-25 at 17 10 42](https://user-images.githubusercontent.com/19804038/100224511-ef0ebe80-2f42-11eb-9b96-e4dcc6221460.png)
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.
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 yeah thanks , Please let us know , as we are deciding on a license renewal as well.
@gunnsth also please let us know if there is any dirty fix to get this behaviour 😅 , Thanks.
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 That sounds great , can you leave an email Id here so I can send it to you ?
peter.wi
@peterwilliams97 That sounds great , can you leave an email Id here so I can send it to you ?
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 .