causing null pointer exceptions when the Ant task is run (although not with
command-line usage); switched to "LogFactory.getLog(PDFObject.class.getName())",
which works for both command-line and Ant task.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197533
13f79535-47bb-0310-9956-
ffa450edef68
* @return a new PDF Pages object for adding pages to
*/
public PDFPages makePages() {
- PDFPages pdfPages = new PDFPages(++this.document.objectcount);
+ PDFPages pdfPages = new PDFPages(++(this.document.objectcount));
getDocument().addTrailerObject(pdfPages);
return pdfPages;
}
public abstract class PDFObject {
/** logger for all PDFObjects (and descendants) */
- protected static Log log = LogFactory.getLog(PDFObject.class.getPackage().getName());
+ protected static Log log = LogFactory.getLog(PDFObject.class.getName());
/**
* the object's number
*/
private PDFDocument document;
- /**
- * Create a PDFObject
- */
- public PDFObject() {
- // do nothing
- }
-
/**
* Returns the object's number.
* @return the PDF Object number
* @param objnum the object's number
*/
public PDFPages(int objnum) {
- super();
setObjectNumber(objnum);
}