Development suspended. Use https://github.com/codehero/OpenTaxFormFiller Joe Rothweiler's IRS fill-in PDF form hack
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
COPYING
IRS Field Mapping.html
README
f1040--2007_fields.txt
f1040.flds
f1040_fields.txt
fdf_gen.c
kat.in
kat_ref.fdf

README

#!/bin/sh
# $Id: README,v 1.2 2008/03/04 20:05:45 jrothwei Exp jrothwei $
# This readme is actually an annotated bash shell script.
# Just do 'sh README' to build and test the program.

cat <<!EOD
program fdf_gen.c is a quick hack, for formatting data so that
it can be inserted into a PDF form. I've used it for a few
forms, but it hasn't had wide use, so be sure to check the
the output, because it might not be what you expect.

This needs program pdftk, which is in some Linux distributions,
or available from its author at www.accesspdf.com.
!EOD

##########################################
echo
echo BUILDING
if [ ! -e fdf_gen -o fdf_gen -ot fdf_gen.c ] ; then
	gcc -Wall -o fdf_gen fdf_gen.c -lm
else
	echo fdf_gen already built.
fi
ls -l fdf_gen

##########################################

echo
echo Running sample program.
./fdf_gen f1040.flds kat.in kat_new.fdf
echo kat_new.fdf should be the same as kat_ref.fdf,
echo 'except for comment lines (lines beginning with %)'

echo
echo Filling in a form.

if [ ! -e f1040--2007.pdf ] ; then
  echo The example uses f1040.pdf. Trying to download it from www.irs.gov.
  wget http://www.irs.gov/pub/irs-prior/f1040--2007.pdf
fi
pdftk f1040--2007.pdf fill_form kat_new.fdf output f1040_kat.pdf

echo
echo Done. You can look at f1040_kat.pdf with xpdf or you favorite pdf viewer.
echo now download the current year 1040.
wget -N http://www.irs.gov/pub/irs-pdf/f1040.pdf
pdftk f1040.pdf dump_data_fields >f1040_fields.txt