Examples of PageMaster


Examples of org.apache.fop.layout.PageMaster

  int contentRectangleXPosition = marginLeft;
  int contentRectangleYPosition = pageHeight - marginTop;
  int contentRectangleWidth = pageWidth - marginLeft - marginRight;
  int contentRectangleHeight = pageHeight - marginTop - marginBottom;
   
  this.pageMaster = new PageMaster(pageWidth, pageHeight);
  if (getRegion(RegionBody.REGION_CLASS) != null) {
      this.pageMaster.addBody((BodyRegionArea)getRegion(RegionBody.REGION_CLASS).makeRegionArea(contentRectangleXPosition,contentRectangleYPosition,contentRectangleWidth,contentRectangleHeight));
  }
  else {
      MessageHandler.errorln("ERROR: simple-page-master must have a region of class "+RegionBody.REGION_CLASS);
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

   
        // while there is still stuff in the flow, ask the
        // layoutMasterSet for a new page

  // page number is 0-indexed
        PageMaster pageMaster = getNextPageMaster(masterName, firstAvailPageNumber,
              isFirstPage, isEmptyPage );

    // a legal alternative is to use the last sub-sequence
    // specification which should be handled in getNextSubsequence. That's not done here.
        if ( pageMaster == null )
        {
    throw new FOPException("page masters exhausted. Cannot recover.");
        }
        return pageMaster.makePage(areaTree);
    }
View Full Code Here

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

        // while there is still stuff in the flow, ask the
        // layoutMasterSet for a new page

        // page number is 0-indexed
        PageMaster pageMaster = getNextPageMaster(masterName,
                                firstAvailPageNumber,
                                isFirstPage, isEmptyPage);

        // a legal alternative is to use the last sub-sequence
        // specification which should be handled in getNextSubsequence. That's not done here.
        if (pageMaster == null) {
            throw new FOPException("page masters exhausted. Cannot recover.");
        }
        Page p = pageMaster.makePage(areaTree);
        if (currentPage != null) {
            Vector foots = currentPage.getPendingFootnotes();
            p.setPendingFootnotes(foots);
        }
        return p;
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

    // refactored from LayoutMasterSet
    private PageMaster getNextPageMaster(String pageSequenceName,
                                         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

        int contentRectangleWidth = pageWidth - mProps.marginLeft
                                    - mProps.marginRight;
        int contentRectangleHeight = pageHeight - mProps.marginTop
                                     - mProps.marginBottom;

        this.pageMaster = new PageMaster(pageWidth, pageHeight);
        if (getRegion(RegionBody.REGION_CLASS) != null) {
            BodyRegionArea body =
                (BodyRegionArea)getRegion(RegionBody.REGION_CLASS).makeRegionArea(contentRectangleXPosition,
                                          contentRectangleYPosition,
                                          contentRectangleWidth,
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

        // while there is still stuff in the flow, ask the
        // layoutMasterSet for a new page

        // page number is 0-indexed
        PageMaster pageMaster = getNextPageMaster(masterName,
                                firstAvailPageNumber,
                                isFirstPage, isEmptyPage);

        // a legal alternative is to use the last sub-sequence
        // specification which should be handled in getNextSubsequence. That's not done here.
        if (pageMaster == null) {
            throw new FOPException("page masters exhausted. Cannot recover.");
        }
        Page p = pageMaster.makePage(areaTree);
        if (currentPage != null) {
            Vector foots = currentPage.getPendingFootnotes();
            p.setPendingFootnotes(foots);
        }
        return p;
View Full Code Here

Examples of org.apache.fop.layout.PageMaster

    // refactored from LayoutMasterSet
    private PageMaster getNextPageMaster(String pageSequenceName,
                                         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

        int contentRectangleWidth = pageWidth - mProps.marginLeft
                                    - mProps.marginRight;
        int contentRectangleHeight = pageHeight - mProps.marginTop
                                     - mProps.marginBottom;

        this.pageMaster = new PageMaster(pageWidth, pageHeight);
        if (getRegion(RegionBody.REGION_CLASS) != null) {
            BodyRegionArea body =
                (BodyRegionArea)getRegion(RegionBody.REGION_CLASS).makeRegionArea(contentRectangleXPosition,
                                          contentRectangleYPosition,
                                          contentRectangleWidth,
View Full Code Here

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
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.