Examples of PdfDirectObject


Examples of org.pdfclown.objects.PdfDirectObject

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

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

Examples of org.pdfclown.objects.PdfDirectObject

    @see #getProperties(IContentContext)
  */
  public Object getProperties(
    )
  {
    PdfDirectObject propertiesObject = operands.get(1);
    if(propertiesObject == null)
      return null;
    else if(propertiesObject instanceof PdfName)
      return propertiesObject;
    else if(propertiesObject instanceof PdfDictionary)
      return PropertyList.wrap(propertiesObject, null);
    else
      throw new UnsupportedOperationException("Property list type unknown: " + propertiesObject.getClass().getName());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

      if(operands.size() > 1)
      {operands.remove(1);}
    }
    else
    {
      PdfDirectObject operand;
      if(value instanceof PdfName)
      {operand = (PdfName)value;}
      else if(value instanceof PropertyList)
      {operand = ((PropertyList)value).getBaseDataObject();}
      else
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

  @Override
  public Widget remove(
    int index
    )
  {
    PdfDirectObject widgetObject = ensureArray().remove(index);

    return newWidget(widgetObject);
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

    PdfArray elements = new PdfArray();
    operands.set(0,elements);
    boolean textItemExpected = true;
    for(Object valueItem : value)
    {
      PdfDirectObject element;
      if(textItemExpected)
      {element = new PdfString((byte[])valueItem);}
      else
      {element = new PdfReal((Double)valueItem);}
      elements.add(element);
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

  */
  @PDF(VersionEnum.PDF12)
  public AnnotationActions getActions(
    )
  {
    PdfDirectObject actionsObject = getBaseDataObject().get(PdfName.AA);
    return actionsObject == null ? null : new AnnotationActions(this, actionsObject, getContainer());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

  */
  @PDF(VersionEnum.PDF12)
  public Appearance getAppearance(
    )
  {
    PdfDirectObject appearanceObject = getBaseDataObject().get(PdfName.AP);
    return appearanceObject == null ? null : new Appearance(appearanceObject, getContainer());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

  */
  @PDF(VersionEnum.PDF11)
  public Border getBorder(
    )
  {
    PdfDirectObject borderObject = getBaseDataObject().get(PdfName.BS);
    return borderObject == null ? null : new Border(borderObject, getContainer());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

  */
  @PDF(VersionEnum.PDF11)
  public Date getModificationDate(
    )
  {
    PdfDirectObject modificationDateObject = getBaseDataObject().get(PdfName.M);
    if(modificationDateObject == null
      || !(modificationDateObject instanceof PdfDate)) // NOTE: Non-well-formed dates are ignored.
      return null;

    return ((PdfDate)modificationDateObject).getValue();
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

  @Override
  public ChoiceItem remove(
    int index
    )
  {
    PdfDirectObject itemObject = getBaseDataObject().remove(index);

    return new ChoiceItem(itemObject,getContainer(),null);
  }
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.