codehero / opentaxformfiller Goto Github PK
View Code? Open in Web Editor NEWProgrammatically fill out PDF tax forms
Programmatically fill out PDF tax forms
Greetings,
I am trying this:
`#!/usr/bin/python
from fdfgen import forge_fdf
fields = [
('topmostSubform[0].Page1[0].HeaderPg1[0].f1_01[0]','January'),
('topmostSubform[0].Page1[0].HeaderPg1[0].f1_02[0]','December'),
('topmostSubform[0].Page1[0].HeaderPg1[0].f1_03[0]','16'),
('topmostSubform[0].Page1[0].f1_04[0]','Paul'),
('topmostSubform[0].Page1[0].f1_05[0]','Flint')
]
fdf = forge_fdf("",fields,[],[],[])
fdf_file = open("data.fdf","wb")
fdf_file.write(fdf)
fdf_file.close()
`
I need to put comments into every entry...
Regards,
flintiii
I created two issues, which displayed nicely.
Since I provided the solution, I closed them.
They disappearred from the issue list.
Clicking on the closed issues tab did not bring them back.
I hacked the get url parameters to:
https://github.com/codehero/OpenTaxFormFiller/issues?state=closed
This brought them back, where upon I reopened them, and they still didn't appear.
Finally I hacked the get URL again to make them reappear:
https://github.com/codehero/OpenTaxFormFiller/issues?state=opened
Until I understand this better, I won't be closing any issues.
Node.js is in Unstable (aka Sid) on Debian. I was running Stable.
I added to my /etc/apt/sources.lis the following line:
deb http://ftp.us.debian.org/debian sid main
Then I used aptitude to install:
sudo aptitude install nodejs/sid
I rejected the first proposed solution which was full of uninstalls, and selected the second which was full of installs. There were a lot of changes including updating libc6, which required many more unrelated upgrades.
After I file my federal forms, I take a look at this.
I entered:
node ./script/json_ots.js OpenTaxSolver/examples_and_templates/US_1040/US_1040_example.txt > US_1040_example.json
where OpenTaxSolver is a soft link to the OpenTaxSolver installation directory.
US_1040_example.json contains only:
{}
I'll look around for any other examples to try.
Needed upgrade of pdftk from version 1.41 to version 1.44.
For Debian see issue #1 for installation from unstable.
Open Tax Solver utility only processes lines starting with 'L'. It would be useful to also handle lines starting with A and D for forms A and D that also appear in the ots 1040.out file. Perhaps add another optional parameter that defaults to L.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.