Error printing assesment as PDF

Description

Seen on some assesments but not others:

2011-01-27 12:19:11,828 INFO TP-Processor457 org.sakaiproject.tool.assessment.ui.bean.print.PDFAssessmentBean - starting PDF generation
DocumentException: java.lang.IllegalArgumentException: Font size too small: 0.0
at com.lowagie.text.pdf.PdfContentByte.setFontAndSize(Unknown Source)
at com.lowagie.text.pdf.PdfDocument.writeLineToContent(Unknown Source)
at com.lowagie.text.pdf.ColumnText.go(Unknown Source)
at com.lowagie.text.pdf.ColumnText.goComposite(Unknown Source)
at com.lowagie.text.pdf.ColumnText.go(Unknown Source)
at com.lowagie.text.pdf.ColumnText.go(Unknown Source)
at com.lowagie.text.pdf.PdfPRow.writeCells(Unknown Source)
at com.lowagie.text.pdf.PdfPTable.writeSelectedRows(Unknown Source)
at com.lowagie.text.pdf.PdfPTable.writeSelectedRows(Unknown Source)
at com.lowagie.text.pdf.PdfPTable.writeSelectedRows(Unknown Source)
at com.lowagie.text.pdf.ColumnText.goComposite(Unknown Source)
at com.lowagie.text.pdf.ColumnText.go(Unknown Source)
at com.lowagie.text.pdf.ColumnText.go(Unknown Source)
at com.lowagie.text.pdf.PdfDocument.addPTable(Unknown Source)
at com.lowagie.text.pdf.PdfDocument.add(Unknown Source)
at com.lowagie.text.Document.add(Unknown Source)
at org.sakaiproject.tool.assessment.ui.bean.print.PDFAssessmentBean.getStream(PDFAssessmentBean.java:599)
at org.sakaiproject.tool.assessment.ui.bean.print.PDFAssessmentBean.getPDFAttachment(PDFAssessmentBean.java:464)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Attachments

1

Activity

Show:

Sanghyun Jeon December 6, 2021 at 10:15 PM

We are using Sakai 19 and still experiencing the same issue. Can anybody guide me where I can find the fix?

David Horwitz August 26, 2014 at 8:54 AM

+1

Daniel Merino August 26, 2014 at 5:10 AM

Created and linked to this.

I have quickly tested the change of itext version in pom.xml, I receive an error of the package not being available in the repositories.

David Horwitz August 26, 2014 at 4:52 AM

<dependency>
<groupId>com.lowagie</groupId>
<artifactId>itext</artifactId>
<version>2.1.7</version>
<exclusions>
<exclusion>
<groupId>org.bouncycastle</groupId>
<artifactId>bctsp-jdk14</artifactId>
</exclusion>
<exclusion>
<groupId>bouncycastle</groupId>
<artifactId>bcmail-jdk14</artifactId>
</exclusion>
<exclusion>
<groupId>bouncycastle</groupId>
<artifactId>bcprov-jdk14</artifactId>
</exclusion>
</exclusions>
</dependency>

itext 2.1.7 -> 4.1.2 ?

Stephen Marquard August 26, 2014 at 4:28 AM

I think best to open a new JIRA, and link it to this.

Fixed

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Created January 27, 2011 at 2:20 AM
Updated December 6, 2021 at 10:15 PM
Resolved July 17, 2014 at 11:28 AM