Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault: 11 when running text-extraction example on Chrome printed pdf #9

Open
lizschwab opened this issue Oct 17, 2017 · 1 comment

Comments

@lizschwab
Copy link

Hello,

I'm not sure if it's more appropriate to post this here or over in HummusJS, but I'm trying to use your sample library for text extraction. The project I'm working on will be using headless chrome to create pdfs, so I'm trying it against a pdf I manually saved from chrome. I've tried a couple of different pdfs with the same results. I get a Segmentation fault: 11 error when running the text-extraction/test.js

It works fine with the supplied pdf and with another pdf I created using PDF writer, so I think there's something unexpected about how Chrome is creating the pdf.

Attached is an example of a pdf I've had this error with. I got as far as finding it seems to be happening inside the translateText function in lib/text-extraction.js but I don't have a whole lot of time to look into it at the moment. Let me know if you need more info.
HummusJS.pdf

@chunyenHuang
Copy link
Contributor

Segmentation fault: 11 is usually caused by unresolved font file path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants