-
Notifications
You must be signed in to change notification settings - Fork 3
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
[thanks] This looks very useful for my tax needs #6
Comments
Hi Tom, Hope that Raku and the PDF modules can help take the pain our of form-filling. Let me know how you go.
|
On Wed, Apr 8, 2020 at 12:48 David Warring ***@***.***> wrote:
Hi Tom,
I also came to PDF from PostScript. Was using it extensively in a
mail-house before moving to a PDF based print operation.
Hope that Raku and the PDF modules can help take the pain our of
form-filling. Let me know how you go.
Thanks, David. I have to admit I'm looking to see what 'pdftk' can do at
the moment. I'm wrapping it in Raku mainly to encapsulate my desired ops
and simplify the awkward CLI with its many ops.
A demo prog for grabbing form data and filling them in on your Github
account would be very helpful.
|
backported from Raku FDF (WIP). In turn based on CAM::PDF's fillpdffields.pl
Hi Tom, Usage is:
Based on Probably only works on text fields at the moment. Might also have more to do if CAM::PDF is doing a better job. It doing work on setting up field appearances that I have ported yet. |
On Wed, Apr 8, 2020 at 4:25 PM David Warring ***@***.***> wrote:
I added examples/pdf-fields.raku to the repo with the last commit. Happened to have a script that I adapted unreleased module https://github.com/p6-pdf/FDF-p6
David, good timing! 'pdftk' so far isn't helping a lot. I can see the
fields but no easy way to correlate fields with what's on the page.
However, the good news is my accountant said they use the data
manually (surely he could use appropriate software, but this way I
guess his billable hours are more ;-D).
Your existing programs I think can let me overwrite the form without
any major problems after I get the page measurements down ok.
But I will try the ones you referenced first--thanks so much!
I hope you and yours didn't suffer during the recent fires down under.
Best regards,
…-Tom
P.S. Is Damian Conway anywhere near you?
|
Thanks Tom, It illustrates the point that sometimes fields are laid out in rows and columns, and don't have useful labels. I.e. that script isn't the right approach. Could be that processing fields in tab order would work better. Agree it's a mute point if its being manual copied! Hope they're at least cutting and pasting. I've moved from Australia to the South Island of New Zealand, so wasn't affected by the fires this time. We're both far south.
|
PS was living in Melbourne when in Aussie, so was near Damien, who held some interesting talks at Melbourne PM group. |
Have done some more experimentation on this. I can see what CAM::PDF is doing and why. It's not just a matter of setting the form value. The API also needs to rebuild the appearance dictionary (AP) for the updated values to display reliably on Acrobat Reader. |
Hi Tom, I needed to fix a bug in PDF::Class fields() method, so please upgrade to 0.4.3. This script also sets a
|
On Mon, Apr 13, 2020 at 18:09 David Warring ***@***.***> wrote:
Hi Tom,
I've come up with a quick solution for populating form fields when the
fields are arranged in a table. The fields are ordered left to right from
top to bottom.
Thanks, David!
…-Tom
|
David, thanks for all your tremendous work in this area!
I have seen your module updats reported from CPAN on #raku often and didn't think I had any use for them. I have been generating PostScript files by hand and Perl and now Raku for over 25 years and started converting the PS to pdf as soon as ps2pdf came along.
However, this year I see how your modules can help me greatly! This year, for the first time ever, I signed on with a local CPA so my wife can have financial help in the event of my demise.
He requires us to fill out detailed pdf forms so he can have controlled input for his work flow. Today, while wrestling with some tax stuff for him, I find that it would be nice if I can programmatically update some or all of his 16-page pdf form from my records via Raku filtering from csv dumps from our financial accounts. With the help of your wonderful modules I hope to have some success soon!
Blessings.
-Tom (@tbrowder)
The text was updated successfully, but these errors were encountered: