Examples of PdfDirectObject


Examples of org.pdfclown.objects.PdfDirectObject

    Gets the file in which the destination is located.
  */
  public FileSpec getFileSpec(
    )
  {
    PdfDirectObject fileSpecObject = getBaseDataObject().get(PdfName.F);
    if(fileSpecObject == null)
      return null;

    return new FileSpec(fileSpecObject,getContainer(),null);
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

            // Key.
            moveNext(); if(tokenType == TokenTypeEnum.DictionaryEnd) break;
            PdfName key = (PdfName)parsePdfObject();
            // Value.
            moveNext();
            PdfDirectObject value = (PdfDirectObject)parsePdfObject();
            // Add the current entry to the dictionary!
            dictionary.put(key,value);
          }

          int oldOffset = (int)stream.getPosition();
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

    )
  {
    /*
      NOTE: 'F' entry may be undefined.
    */
    PdfDirectObject fileSpecObject = getBaseDataObject().get(PdfName.F);
    if(fileSpecObject == null)
      return null;

    return new FileSpec(fileSpecObject,getContainer(),null);
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

  public EnumSet<OptionsEnum> getOptions(
    )
  {
    EnumSet<OptionsEnum> options = EnumSet.noneOf(OptionsEnum.class);

    PdfDirectObject optionObject = getBaseDataObject().get(PdfName.NewWindow);
    if(optionObject != null
      && ((Boolean)((PdfBoolean)optionObject).getValue()).booleanValue())
    {options.add(OptionsEnum.NewWindow);}

    return options;
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

    Gets the field's behavior in response to trigger events.
  */
  public FieldActions getActions(
    )
  {
    PdfDirectObject actionsObject = getBaseDataObject().get(PdfName.AA);
    if(actionsObject == null)
      return null;

    return new FieldActions(actionsObject,getContainer());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

    /*
      NOTE: Terminal fields MUST be associated at least to one widget annotation.
      If there is only one associated widget annotation and its contents
      have been merged into the field dictionary, 'Kids' entry MUST be omitted.
    */
    PdfDirectObject widgetsObject = getBaseDataObject().get(PdfName.Kids);
    if(widgetsObject == null) // Merged annotation.
      return new FieldWidgets(getBaseObject(), null, this);
    else // Annotation array.
      return new FieldWidgets(widgetsObject, getContainer(), this);
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

      NOTE: It moves upward until it finds the inherited attribute.
    */
    PdfDictionary dictionary = getBaseDataObject();
    while(true)
    {
      PdfDirectObject entry = dictionary.get(key);
      if(entry != null)
        return entry;

      dictionary = (PdfDictionary)File.resolve(
        dictionary.get(PdfName.Parent)
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

    )
  {
    /*
      NOTE: 'C' entry may be undefined.
    */
    PdfDirectObject onCalculateObject = getBaseDataObject().get(PdfName.C);
    if(onCalculateObject == null)
      return null;

    return (JavaScript)Action.wrap(onCalculateObject,getContainer());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

    )
  {
    /*
      NOTE: 'K' entry may be undefined.
    */
    PdfDirectObject onChangeObject = getBaseDataObject().get(PdfName.K);
    if(onChangeObject == null)
      return null;

    return (JavaScript)Action.wrap(onChangeObject,getContainer());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

    )
  {
    /*
      NOTE: 'F' entry may be undefined.
    */
    PdfDirectObject onFormatObject = getBaseDataObject().get(PdfName.F);
    if(onFormatObject == null)
      return null;

    return (JavaScript)Action.wrap(onFormatObject,getContainer());
  }
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.