software.authoring.scantegrity
Class FormMaker
java.lang.Object
software.authoring.FormMaker
software.authoring.scantegrity.FormMaker
public class FormMaker
- extends FormMaker
|
Constructor Summary |
FormMaker(org.gwu.voting.standardFormat.electionSpecification.ElectionSpecification es,
BallotGeometry geom)
|
|
Method Summary |
static void |
main(java.lang.String[] args)
|
void |
make(java.lang.String background,
java.lang.String outFile)
creates a pdf from representing a ballot, with the only thing missing
being the letters. |
static com.lowagie.text.Rectangle |
translate(com.lowagie.text.Rectangle rect,
float tx,
float ty)
|
| Methods inherited from class software.authoring.FormMaker |
getFontSize, getFontSize, getFontSize, getJsFunctions, getJsInitValues, getQs, makeButtonAlignmentMark, makeButtonFinishVoting, makeButtonHighlightCandidate, makeButtonOrangeBoth, makeButtonOrangeBottom, makeButtonOrangeTop, makeButtonTopHoles, makeButtonVoteBottom, makeButtonVoteTop, makeText |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormMaker
public FormMaker(org.gwu.voting.standardFormat.electionSpecification.ElectionSpecification es,
BallotGeometry geom)
throws java.io.IOException,
com.lowagie.text.DocumentException
- Throws:
java.io.IOException
com.lowagie.text.DocumentException
make
public void make(java.lang.String background,
java.lang.String outFile)
throws com.lowagie.text.DocumentException,
java.io.IOException
- Description copied from class:
FormMaker
- creates a pdf from representing a ballot, with the only thing missing
being the letters.
All the fonts are embeded, the pdf is compressed. Version 1.3 of the pdf is used.
To properly view the pdf Adobe Reader or Adobe Acrobat must be used.
Other viewers will not display it properly (do not imperpret javascript correctly)
- Overrides:
make in class FormMaker
- Parameters:
background - - the background to be used. If null or there is an error reading the background, a white background is usedoutFile - - where the form is produced
- Throws:
com.lowagie.text.DocumentException
java.io.IOException
translate
public static com.lowagie.text.Rectangle translate(com.lowagie.text.Rectangle rect,
float tx,
float ty)
main
public static void main(java.lang.String[] args)
throws org.gwu.voting.standardFormat.electionSpecification.exceptions.ESException,
org.xml.sax.SAXException,
java.io.IOException,
com.lowagie.text.DocumentException
- Throws:
org.gwu.voting.standardFormat.electionSpecification.exceptions.ESException
org.xml.sax.SAXException
java.io.IOException
com.lowagie.text.DocumentException