Package com.itextpdf.text.pdf

Examples of com.itextpdf.text.pdf.PdfObject.type()


    if (node.getChildCount() > 0) {
      return;
    }
    PdfObject object = node.getPdfObject();
    PdfObjectTreeNode leaf;
    switch (object.type()) {
    case PdfObject.INDIRECT:
      PdfIndirectReference ref = (PdfIndirectReference)object;
      leaf = getNode(ref.getNumber());
      addNodes(node, leaf);
      if (leaf instanceof PdfPagesTreeNode)
View Full Code Here


    structTreeRoot.remove(PdfName.STRUCTPARENTS);
    // Examining the StructTreeRoot
    PdfObject object = structTreeRoot.getDirectObject(PdfName.K);
    if (object == null)
      return;
    switch(object.type()) {
    case PdfObject.DICTIONARY:
      LOGGER.info("StructTreeRoot refers to dictionary");
      processStructElems((PdfDictionary)object, structTreeRoot.getAsIndirectObject(PdfName.K));
      break;
    case PdfObject.ARRAY:
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.