Examples of PdfDirectObject


Examples of org.pdfclown.objects.PdfDirectObject

    List<PdfDirectObject> operands = operation.getOperands();
    if(operands != null)
    {
      for(int index = 0, length = operands.size(); index < length; index++)
      {
        PdfDirectObject operand = operands.get(index);
        if(operand instanceof PdfArray)
        {
          PdfArray operandElements = (PdfArray)operand;
          int operandElementIndex = -1;
          for(PdfDirectObject operandElement : operandElements)
          {
            model.addRow(
              new Object[]
              {
                "(operand " + index + "." + (++operandElementIndex) + ")",
                operandElement.toString()
              }
              );
          }
        }
        else if(operand instanceof PdfDictionary)
        {
          PdfDictionary operandEntries = (PdfDictionary)operand;
          int operandEntryIndex = -1;
          for(Map.Entry<PdfName,PdfDirectObject> operandEntry : operandEntries.entrySet())
          {
            model.addRow(
              new Object[]
              {
                "(operand " + index + "." + (++operandEntryIndex) + ") " + operandEntry.getKey().toString(),
                operandEntry.getValue().toString()
              }
              );
          }
        }
        else
        {
          model.addRow(
            new Object[]
            {
              "(operand " + index + ")",
              operand.toString()
            }
            );
        }
      }
    }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

    )
  {
    /*
      NOTE: Either 'Annotation' or 'T' entry MUST exist.
    */
    PdfDirectObject annotationObject = getBaseDataObject().get(PdfName.Annotation);
    if(annotationObject == null)
    {
      annotationObject = getBaseDataObject().get(PdfName.T);
      throw new NotImplementedException("No by-title movie annotation support currently: we have to implement a hook to the page of the referenced movie to get it from its annotations collection.");
    }
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

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

Examples of org.pdfclown.objects.PdfDirectObject

    ArrayList<PdfObjectWrapper<?>> objects = new ArrayList<PdfObjectWrapper<?>>();

    /*
      NOTE: 'T' entry MUST exist.
    */
    PdfDirectObject objectsObject = getBaseDataObject().get(PdfName.T);
    fillObjects(objectsObject,objects);

    return objects;
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

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

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

    return options;
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

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

    return new TargetObject(targetObject,getContainer());
  }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

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

      return new TargetObject(targetObject,getContainer());
    }
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

    {
      if(value == null)
      {getBaseDataObject().remove(PdfName.P);}
      else
      {
        PdfDirectObject pageRefObject;
        if(value instanceof Integer)
        {pageRefObject = new PdfInteger((Integer)value);}
        else if(value instanceof String)
        {pageRefObject = new PdfString((String)value);}
        else
View Full Code Here

Examples of org.pdfclown.objects.PdfDirectObject

    {
      if(value == null)
      {getBaseDataObject().remove(PdfName.A);}
      else
      {
        PdfDirectObject annotationRefObject;
        if(value instanceof Integer)
        {annotationRefObject = new PdfInteger((Integer)value);}
        else if(value instanceof String)
        {annotationRefObject = new PdfTextString((String)value);}
        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.