code: protected NodeData createPageStyle()
      {
          NodeData ret = createBlockStyle();
          TermFactory tf = CSSFactory.getTermFactory();
          ret.push(createDeclaration("position", tf.createIdent("relative")));
  		ret.push(createDeclaration("border-width", tf.createLength(1f, Unit.px)));
  		ret.push(createDeclaration("border-style", tf.createIdent("solid")));
  		ret.push(createDeclaration("border-color", tf.createColor(0, 0, 255)));
  		ret.push(createDeclaration("margin", tf.createLength(0.5f, Unit.em)));
  		
          PDRectangle layout = getCurrentMediaBox();
          if (layout != null)
          {
              float w = layout.getWidth();
              float h = layout.getHeight();
              final int rot = pdpage.getRotation();
              if (rot == 90 || rot == 270)
              {
                  float x = w; w = h; h = x;
              }
              
              ret.push(createDeclaration("width", tf.createLength(w, unit)));
              ret.push(createDeclaration("height", tf.createLength(h, unit)));
          }
          else
              log.warn("No media box found");
          
          return ret;
      }
docs: Creates a style definition used for pages.
  @return The page style definition.