// Java
import java.io.IOException;
import java.io.OutputStream;
-import java.util.List;
import java.util.Iterator;
+import java.util.List;
-// XML
import org.xml.sax.SAXException;
-// FOP
import org.apache.fop.apps.FOPException;
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.fonts.FontInfo;
try {
renderer.renderPage(page);
} catch (RuntimeException re) {
+ String err = "Error while rendering page " + page.getPageNumberString();
+ log.error(err, re);
throw re;
} catch (Exception e) {
//TODO use error handler to handle this FOP or IO Exception or propagate exception
*/
public void setObjectNumber(int objnum) {
this.objnum = objnum;
- log.trace("Assigning " + this + " object number " + objnum);
+ if (log.isTraceEnabled()) {
+ log.trace("Assigning " + this + " object number " + objnum);
+ }
}
/**