private String generatePDF(boolean borders, boolean showAnswers, String seq, int howmany)
throws DocumentException, NumberFormatException,
IllegalStateException, IndexOutOfBoundsException, FileNotFoundException {
//int[] numbs = {n1, n2, n3, n4, n5};
ParseSequence ps = new ParseSequence("(?<numbers>[\\d]{1,2})");
//Maximum two digit integers with any seperator in between.
Integer ii = null;
ArrayList<Character> charList = null;
ArrayList<Integer> oneDataList = ps.matchIntAllCapturingGroups(seq);
ArrayList<QuestionData> qdList = generateQuestions(oneDataList, howmany);
// step 1
Document document = new Document(PageSize.LETTER);
// step 2
ServletContext sc = ServletActionContext.getServletContext();