Package com.itextpdf.text.pdf

Examples of com.itextpdf.text.pdf.PdfDictionary.checkType()


    protected void convertToXObject(StructureObject item) throws IOException, DocumentException {
      PdfDictionary structElem = item.getStructElem();
      if (structElem == null)
        return;
      PdfDictionary dict = item.getObjAsDict();
      if (dict == null || !dict.checkType(PdfName.ANNOT))
        return;
      PdfDictionary ap = dict.getAsDict(PdfName.AP);
      if (ap == null)
        return;
      PdfNumber structParent = dict.getAsNumber(PdfName.STRUCTPARENT);
View Full Code Here


        processStructElemKids(structElem, array.getAsIndirectObject(i), array.getDirectObject(i));
      }
      break;
    case PdfObject.DICTIONARY:
      PdfDictionary dict = (PdfDictionary)object;
      if (dict.checkType(PdfName.MCR)) {
        item = new StructureMCID(dict);
        add(item);
        LOGGER.info("Added " + item);
      } else if (dict.checkType(PdfName.OBJR)) {
        item = new StructureObject(structElem, ref, dict);
View Full Code Here

      PdfDictionary dict = (PdfDictionary)object;
      if (dict.checkType(PdfName.MCR)) {
        item = new StructureMCID(dict);
        add(item);
        LOGGER.info("Added " + item);
      } else if (dict.checkType(PdfName.OBJR)) {
        item = new StructureObject(structElem, ref, dict);
        add(item);
        LOGGER.info("Added " + item);
      }
      else {
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.