23. LaTeX Packages
hyperref.sty eforms.sty
• in TeX-Live • not in TeX-Live
(acrotex.net)
• well-maintained • not actively maintained
• lightly documented • richly documented
• more formatting features
24. LaTeX Packages
hyperref.sty eforms.sty
• in TeX-Live • not in TeX-Live
(acrotex.net)
• well-maintained • not actively maintained
• lightly documented • richly documented
• more formatting features
TikZ for placement
35. Pull-down lists w/ keys
% ...
comboBox[textColor{1 0 • Pull-down list
0 }]{Username}{2in}{1.0cm}
{[(Gagner, Liza)(lg271)]
[(Hennen, Guy)(gh46)] • keys are usernames of
[(Lach, Gary)(gl923)] each student
[(Osbourn, Julio)(jo77)]
%...
}
36. Pull-down lists w/ keys
% ...
comboBox[textColor{1 0 • Pull-down list
0 }]{Username}{2in}{1.0cm}
{[(Gagner, Liza)(lg271)]
[(Hennen, Guy)(gh46)] • keys are usernames of
[(Lach, Gary)(gl923)] each student
[(Osbourn, Julio)(jo77)]
%...
}
• pull down menu and
pick a name
37. Stamping form over
documents
• pdftk is an open-
source pdf utility that
works on the command
$ for file in `ls
line.
*_0??.pdf`; do
> pdftk form.pdf
• The pdftk invocation
makes the test file a
multibackground $file
output `basename
background for the
$file .pdf`_form.pdf; form and creates a new
> done file
• The for loop in the
bash shell cycles over
all pdfs sequentially
numbered
38. Other methods for
stamping
documentclass{article}
usepackage{tikz}
usepackage[pdftex]{eforms}
• Use TikZ to include the
scanned page and
begin{document}
begin{tikzpicture} form elements
[remember picture,overlay]
node at (current
page.center) { • Do this once per page
includegraphics[page=1]
{scanned_quiz}
};
• scriptable
% ... form stuff ...
end{tikzpicture} • Can also do a
clearpage watermark in Acrobat
%...
58. Data Extraction
• Adobe Acrobat
Tools > Forms > More Form Options > Manage
Form Data > Merge Files into Spreadsheet
59. Data Extraction
• Adobe Acrobat
Tools > Forms > More Form Options > Manage
Form Data > Merge Files into Spreadsheet
• pdftk
$ pdftk graded_quiz.pdf dump_data_fields
then parse (like Mail headers) to CSV
60. Data Extraction
• Adobe Acrobat
Tools > Forms > More Form Options > Manage
Form Data > Merge Files into Spreadsheet
• pdftk
$ pdftk graded_quiz.pdf dump_data_fields
then parse (like Mail headers) to CSV
• PDF-XChange can export XFDF
then parse to CSV
67. Summary
Pro
• Free data granularity
• Free document
integrity
• Portability
68. Summary
Pro
• Free data granularity
• Free document
integrity
• Portability
• Can adopt in pieces
69. Summary
Pro Con
• Free data granularity
• Free document
integrity
• Portability
• Can adopt in pieces
70. Summary
Pro Con
• Free data granularity
• Not a huge time
• Free document saver
integrity
• Learning curve
• Portability
• Can adopt in pieces
71. Summary
Pro Con
• Free data granularity
• Not a huge time
• Free document saver
integrity
• Learning curve
• Portability
• risk of dissemination
• Can adopt in pieces
72. The Future: 2D Codes
• Can be used to encode
any data
• Identify the file
• Identify the student
• 21st-century Scantron?
73. Thank You
Matthew Leingang
leingang@nyu.edu
twitter: @mleingang