Examples of newTextPageCountElement()


Examples of org.odftoolkit.odfdom.dom.element.text.TextSpanElement.newTextPageCountElement()

  // package constructor, only called by Fields
  PageCountField(OdfElement odfElement) {
    TextSpanElement spanElement = ((OdfFileDom) odfElement.getOwnerDocument()).newOdfElement(TextSpanElement.class);
    odfElement.appendChild(spanElement);
    pageCountElement = spanElement.newTextPageCountElement(null);
    try {
      OdfFileDom dom = (OdfFileDom) odfElement.getOwnerDocument();
      Meta meta = ((Document) dom.getDocument()).getOfficeMetadata();
      int count = meta.getDocumentStatistic().getPageCount();
      pageCountElement.setTextContent(String.valueOf(count));
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.