Package com.lowagie.text.pdf

Examples of com.lowagie.text.pdf.PRIndirectReference


          if (o == null) continue;
          if (o instanceof PdfDictionary) {
            l = (PdfDictionary)o;
          }
          else {
            PRIndirectReference r =(PRIndirectReference)o;
            l = (PdfDictionary)reader.getPdfObject(r.getNumber());
          }
          n = (PdfName)l.get(PdfName.S);
          if (PdfName.LAUNCH.equals(n)) {
            if (l.get(PdfName.F) != null) {
              System.out.println("Removed: " + l.get(PdfName.F));
View Full Code Here


          if (o == null) continue;
          if (o instanceof PdfDictionary) {
            l = (PdfDictionary)o;
          }
          else {
            PRIndirectReference r =(PRIndirectReference)o;
            l = (PdfDictionary)reader.getPdfObject(r.getNumber());
          }
          n = (PdfName)l.get(PdfName.S);
          if (PdfName.LAUNCH.equals(n)) {
            if (l.get(PdfName.F) != null) {
              System.out.println("Removed: " + l.get(PdfName.F));
View Full Code Here

          if (o == null) continue;
          if (o instanceof PdfDictionary) {
            l = (PdfDictionary)o;
          }
          else {
            PRIndirectReference r =(PRIndirectReference)o;
            l = (PdfDictionary)reader.getPdfObject(r.getNumber());
          }
          n = (PdfName)l.get(PdfName.S);
          if (PdfName.LAUNCH.equals(n)) {
            if (l.get(PdfName.F) != null) {
              System.out.println("Removed: " + l.get(PdfName.F));
View Full Code Here

                }

            // deal with indirect references
            }else if(entity.getClass() == PRIndirectReference.class){

                    PRIndirectReference indirect = (PRIndirectReference)entity;

                    // if we've already seen a reference to this object
                    if( haveSeen( indirect.getGeneration(), indirect.getNumber()) ){
                        return;

                    // note that we've seen it if it's new
                    }else{
                        markAsSeen(indirect.getGeneration(), indirect.getNumber() );
                    }

                    // dereference the "pointer" and process the object
                    indirect.getReader(); // FIXME: examine side-effects
                    PdfObject direct = PdfReader.getPdfObject(indirect);

                    this.extractURIs(direct);
            }
    }
View Full Code Here

    private byte[] getContentBytesFromContentObject(final PdfObject contentObject) throws IOException {
          final byte[] result;
          switch (contentObject.type())
          {
            case PdfObject.INDIRECT:
              final PRIndirectReference ref = (PRIndirectReference) contentObject;
              final PdfObject directObject = PdfReader.getPdfObject(ref);
              result = getContentBytesFromContentObject(directObject);
              break;
            case PdfObject.STREAM:
              final PRStream stream = (PRStream) PdfReader.getPdfObject(contentObject);
View Full Code Here

TOP

Related Classes of com.lowagie.text.pdf.PRIndirectReference

Copyright © 2018 www.massapicom. 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.