Package org.pdfclown.objects

Examples of org.pdfclown.objects.PdfReference


      int i = 0;
      i < kids.size();
      i++
      )
    {
      PdfReference kidReference = (PdfReference)kids.get(i);
      PdfDictionary kid = (PdfDictionary)File.resolve(kidReference);
      // Is current kid a page object?
      if(kid.get(PdfName.Type).equals(PdfName.Page)) // Page object.
      {
        // Did we reach the searched position?
View Full Code Here


            parent = (PdfDictionary)File.resolve(parent.get(PdfName.Parent));
            kids = (PdfArray)File.resolve(parent.get(PdfName.Kids));
          }
          else // Page subtree incomplete.
          {
            PdfReference kidReference = (PdfReference)kids.get(levelIndex);
            PdfDictionary kid = (PdfDictionary)File.resolve(kidReference);
            // Is current kid a page object?
            if(kid.get(PdfName.Type).equals(PdfName.Page)) // Page object.
            {
              // 2. Page found.
View Full Code Here

    )
  {
    /*
      NOTE: 'IX' entry may be undefined (anyway, MUST be an indirect reference).
    */
    PdfReference alternateIconObject = (PdfReference)getBaseDataObject().get(PdfName.IX);
    if(alternateIconObject == null)
      return null;

    return new FormXObject(alternateIconObject);
  }
View Full Code Here

    )
  {
    /*
      NOTE: 'I' entry may be undefined (anyway, MUST be an indirect reference).
    */
    PdfReference normalIconObject = (PdfReference)getBaseDataObject().get(PdfName.I);
    if(normalIconObject == null)
      return null;

    return new FormXObject(normalIconObject);
  }
View Full Code Here

    )
  {
    /*
      NOTE: 'RI' entry may be undefined (anyway, MUST be an indirect reference).
    */
    PdfReference rolloverIconObject = (PdfReference)getBaseDataObject().get(PdfName.RI);
    if(rolloverIconObject == null)
      return null;

    return new FormXObject(rolloverIconObject);
  }
View Full Code Here

TOP

Related Classes of org.pdfclown.objects.PdfReference

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.