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

pdf-fields.raku fails on two input files #1

Open
tbrowder opened this issue Apr 8, 2020 · 7 comments
Open

pdf-fields.raku fails on two input files #1

tbrowder opened this issue Apr 8, 2020 · 7 comments

Comments

@tbrowder
Copy link

tbrowder commented Apr 8, 2020

I use two valid PDF files as input for the --list mode:

pdf-fields.raku --list t.fdf
Type check failed in assignment to $doc; expected PDF::Class but got FDF (${:Root(:ind-ref($[1,...)
  in sub MAIN at /home/tbrowde/.raku/resources/925E7C33EED9EA672F51B5EDE9CBA9CB63D97FD6 line 18
  in block <unit> at /home/tbrowde/.raku/resources/925E7C33EED9EA672F51B5EDE9CBA9CB63D97FD6 line 6
  in sub MAIN at /home/tbrowde/.raku/bin/pdf-fields.raku line 3
  in block <unit> at /home/tbrowde/.raku/bin/pdf-fields.raku line 1

And another input file:

pdf-fields.raku --list page-13-of-16.pdf
Earlier failures:
 (HANDLED) Failed to open file /usr/local/git-private-repos/my-win10-docs/Personal/001-Taxes-Finance-Insurance/0-Tax-returns-and-info/2019/TDAmeritrade/raku/demo-clone/page-13-of-16.pdf: No such file or directory
  in method coerce at /home/tbrowde/.raku/sources/9A1227A27EC7660B052D6BC05E82C88FB14D245A (PDF::IO) line 17
  in method open at /home/tbrowde/.raku/sources/6C9000FB47F7CA8CB5039F13245FA33D596CEACA (PDF::Reader) line 282
  in method open at /home/tbrowde/.raku/sources/6C9000FB47F7CA8CB5039F13245FA33D596CEACA (PDF::Reader) line 216
  in method open at /home/tbrowde/.raku/sources/3534A22AA69DD739E638541259ECC395BB942FE1 (PDF) line 41
  in method open at /home/tbrowde/.raku/sources/107FA69D1F1118140500EB4080F4BF8288AC58BF (PDF::Class) line 34
  in sub MAIN at /home/tbrowde/.raku/resources/925E7C33EED9EA672F51B5EDE9CBA9CB63D97FD6 line 22
  in block <unit> at /home/tbrowde/.raku/resources/925E7C33EED9EA672F51B5EDE9CBA9CB63D97FD6 line 6
  in sub MAIN at /home/tbrowde/.raku/bin/pdf-fields.raku line 3
  in block <unit> at /home/tbrowde/.raku/bin/pdf-fields.raku line 1

Final error:
 Cannot resolve caller coerce((IO): Failure); none of these signatures match:
    (PDF::IO: PDF::IO $value, :$path, *%_)
    (PDF::IO: IO::Path $value, |c)
    (PDF::IO: IO::Handle $value, |c)
    (PDF::IO: Str $value where { ... }, |c)
    (PDF::IO: Blob $_, |c)
  in method coerce at /home/tbrowde/.raku/sources/9A1227A27EC7660B052D6BC05E82C88FB14D245A (PDF::IO) line 17
  in method open at /home/tbrowde/.raku/sources/6C9000FB47F7CA8CB5039F13245FA33D596CEACA (PDF::Reader) line 282
  in method open at /home/tbrowde/.raku/sources/6C9000FB47F7CA8CB5039F13245FA33D596CEACA (PDF::Reader) line 216
  in method open at /home/tbrowde/.raku/sources/3534A22AA69DD739E638541259ECC395BB942FE1 (PDF) line 41
  in method open at /home/tbrowde/.raku/sources/107FA69D1F1118140500EB4080F4BF8288AC58BF (PDF::Class) line 34
  in sub MAIN at /home/tbrowde/.raku/resources/925E7C33EED9EA672F51B5EDE9CBA9CB63D97FD6 line 22
  in block <unit> at /home/tbrowde/.raku/resources/925E7C33EED9EA672F51B5EDE9CBA9CB63D97FD6 line 6
  in sub MAIN at /home/tbrowde/.raku/bin/pdf-fields.raku line 3
  in block <unit> at /home/tbrowde/.raku/bin/pdf-fields.raku line 1

The input files have no private data except our names, so I can email them to you or get them to you in whatever way you say.

@tbrowder
Copy link
Author

tbrowder commented Apr 8, 2020

This is the PDF input file:

page-13-of-16-mods.pdf

@tbrowder
Copy link
Author

tbrowder commented Apr 8, 2020

Github won't let me upload the FDF file.

@dwarring
Copy link
Contributor

Hi Tom.
Yes would like the FDF file when you've got a moment. my email is david.warring@gmail.com

@tbrowder
Copy link
Author

tbrowder commented Apr 10, 2020 via email

@dwarring
Copy link
Contributor

currently working on this as part of a push to release FDF. have renamed pdf-fields.raku to fdf-fields.raku.

@dwarring
Copy link
Contributor

Note that the latest version of FDF has renamed pdf-fields.raku to fdf-fields.raku.

Should now work.

@tbrowder
Copy link
Author

Thanks, David. Hope you are staying well.

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