Also fixes small bug with invalid page-number-references
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193536
13f79535-47bb-0310-9956-
ffa450edef68
this.renderPage((Page) e.nextElement());
}
- if ( !idReferences.isEveryIdValid() ) {
- throw new FOPException("The id \""+idReferences.getNextInvalidId()+"\" was referenced but does not exist\n");
+ if ( !idReferences.isEveryIdValid() ) {
+ throw new FOPException("The following id's were referenced but not found: "+idReferences.getInvalidIds()+"\n");
}
MessageHandler.logln("writing out PDF");
String s;
if ( area.getPageNumberID()!=null ) { // this text is a page number, so resolve it
s = idReferences.getPageNumber(area.getPageNumberID());
+ if(s==null)
+ {
+ s="";
+ }
}
else {
s = area.getText();