Examples of PageMaster


Examples of org.apache.fop.layout.PageMaster

           int currentPageNumber,
           boolean thisIsFirstPage,
           boolean isEmptyPage )
  throws FOPException
    {
  PageMaster pageMaster = null;

  // see if there is a page master sequence for this master name   
  PageSequenceMaster sequenceMaster =
      this.layoutMasterSet.getPageSequenceMaster( pageSequenceName );
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

  }
  layoutMasterSet = root.getLayoutMasterSet();
    }

    protected Page makePage(AreaTree areaTree) throws FOPException {
  PageMaster pageMaster;
  // layout this page sequence
   
  // while there is still stuff in the flow, ask the
  // sequence-specification for a new page
     
  if (this.sequenceSpecification == null) {
      throw new FOPException("page-sequence is missing an"
           + " sequence-specification");
  }
   
  PageMasterFactory pmf =
      this.sequenceSpecification.getFirstPageMasterFactory();

  pageMaster = pmf.getNextPageMaster();

  while (pageMaster == null) {
      /* move on to next sequence specifier */
      pmf = pmf.getNext();
      if (pmf == null) {
    throw new FOPException("out of sequence specifiers"
               + " (FOP will eventually allow this)");
      }
      pageMaster = pmf.getNextPageMaster();
  }
  return pageMaster.makePage(areaTree);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.