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

lineWidth undefined #5

Open
55cc opened this issue Jul 8, 2020 · 1 comment
Open

lineWidth undefined #5

55cc opened this issue Jul 8, 2020 · 1 comment

Comments

@55cc
Copy link

55cc commented Jul 8, 2020

pdf-table-extractor.js 代码运行报错,变量未定义

https://github.com/ronnywang/pdf-table-extractor/blob/390ceb5b183e64897e7be86c32b4253569e65e42/pdf-table-extractor.js#L75L77

第75 和第77行有个变量 lineWidth , 没有定义,没有赋值, 处理特定的pdf时运行报错.

临时做了如下更改:

第53 行添加: var lineWidth = null;

第75 和 第77 行 前面插入 if (lineWidth) 语句

共3处改动, 问一下改动的影响, 和实际的运行效果

@ajeeq
Copy link
Contributor

ajeeq commented Aug 22, 2020

Check on my fork, it might fix your problem.

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