Skip to content

go-pardocs plan fails for JWP DR 151018.pdf #2

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

Closed
kaerumy opened this issue Jul 8, 2019 · 3 comments
Closed

go-pardocs plan fails for JWP DR 151018.pdf #2

kaerumy opened this issue Jul 8, 2019 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@kaerumy
Copy link
Member

kaerumy commented Jul 8, 2019

GetPlainText ERROR: %!w(string=)

JWP DR 151018.pdf

@kaerumy kaerumy added the bug Something isn't working label Jul 8, 2019
@leowmjw
Copy link
Contributor

leowmjw commented Jul 8, 2019

This is a bug in the underlying library (https://github.com/ledongthuc/pdf
); which does not take filing an issue; will have to fix that library first.

Workaround is to open and re-export back out; it works!

Screen Shot 2019-07-09 at 12 32 46 AM

Output of plan on the clean PDF:

$ go-pardocs plan -session par1sesi1 -type L ~/Downloads/JWP.DR.151018_clean.pdf 
2019/07/09 00:33:12 Welcome to Sinar Project go-pardocs!
2019/07/09 00:33:12 In plan Execute ..
2019/07/09 00:33:12 AbsoluteSourcePDFPath:  /Users/leow/Downloads/JWP.DR.151018_clean.pdf
2019/07/09 00:33:12 AbsoluteWorkingDir:  /Users/leow/GOMOD/go-pardocs
2019/07/09 00:33:12 In Plan ..
In ExtractPDF ...
...
no code space found
Probably front page; do semthign with this ..

Screen Shot 2019-07-09 at 12 34 45 AM

@leowmjw
Copy link
Contributor

leowmjw commented Jul 8, 2019

Will need to fork; can try this fork as the base --> https://github.com/dcu/pdf

Can also review the original upstream PR GetPlainText --> rsc/pdf#21

@leowmjw
Copy link
Contributor

leowmjw commented Jul 12, 2019

Caveat is https://github.com/Sinar/go-pardocs/files/3368054/JWP.DR.151018.pdf needs to be named "JWP_DR_151018.pdf" until #6 is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants