[Bug]: Missing Text read from Excel converted Pdf #19377
Unanswered
danielharvellwork
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Attach (recommended) or Link to PDF file
We do not store the pdf files they are kept in memory, Is there a way to download them by modifying the pdf.js code.
Web browser and its version
chrome 132.0.6834.83
Operating system and its version
dotnet:7 on linux 20
PDF.js version
pdfjsVersion = "4.9.155"
Is the bug present in the latest PDF.js version?
Yes
Is a browser extension
No
Steps to reproduce the problem
Hello,
In the old pdfjsVersion = '2.3.0' viewer this document displayed the full text from this test document "Testing Excel Document." but after updating the viwer to pdfjsVersion = "4.9.155" the text has the last 2 characters stripped ("t.") off of it "Testing Excel Documen" the last "t" and the last "." This occurs when trying to preview a test excel document that has been converted to pdf using pdfTron. We know the issue is not with pdfTron because when using the old pdf.js v2.3.0 it works fine
In the attached "Excel Document.xlsx" the issue is present, but in the attached "Excel Document Resaved.xlsx" the issue does not occur because the cell in the excel file was widened to include the entire "Testing Excel Document." text in the cell. Not sure why this matters.
Could you please advise, it appears that it occurs when it gets the text from the following code, I included a screenshot of some trace logging.
const loadingTask = getDocument({
...apiParams,
...args
});
thank you,
Daniel Harvell
(Software Developer - NetDocuments)
Excel Document Resaved.xlsx
Excel Document (1).xlsx
What is the expected behavior?
Behavior should be same as version pdf.js 2.3.0 the full text should be shown "Testing Excel Document."
What went wrong?
See attached screenshot.
Excel.Document.Trimmed.off.mp4
Link to a viewer
can't provide but happy to demo
Additional context
Please advise
Beta Was this translation helpful? Give feedback.
All reactions