Package org.pdfclown.objects

Examples of org.pdfclown.objects.PdfInteger


  */
  @PDF(VersionEnum.PDF14)
  public EnumSet<FlagsEnum> getFlags(
    )
  {
    PdfInteger flagsObject = (PdfInteger)getBaseDataObject().get(PdfName.F);
    if(flagsObject == null)
      return EnumSet.noneOf(FlagsEnum.class);

    return FlagsEnum.toEnumSet(flagsObject.getRawValue());
  }
View Full Code Here


    Gets whether this bookmark's children are displayed.
  */
  public boolean isExpanded(
    )
  {
    PdfInteger countObject = (PdfInteger)getBaseDataObject().get(PdfName.Count);

    return (countObject == null
        || countObject.getRawValue() >= 0);
  }
View Full Code Here

  */
  public void setExpanded(
    boolean value
    )
  {
    PdfInteger countObject = (PdfInteger)getBaseDataObject().get(PdfName.Count);
    if(countObject == null)
      return;

    /*
      NOTE: Non-negative Count entry means open, negative Count entry means closed [PDF:1.6:8.2.2].
    */
    countObject.setRawValue((value ? 1 : -1) * Math.abs(countObject.getRawValue()));
  }
View Full Code Here

    if(value.isEmpty())
    {getBaseDataObject().remove(PdfName.F);}
    else
    {
      checkCompatibility(value);
      getBaseDataObject().put(PdfName.F, new PdfInteger(FlagsEnum.toInt(value)));
    }
  }
View Full Code Here

    Float[] viewParams
    )
  {
    super(
      context,
      new PdfInteger(pageIndex),
      mode,
      viewParams
      );
  }
View Full Code Here

    Gets the font descriptor flags.
  */
  public EnumSet<FlagsEnum> getFlags(
    )
  {
    PdfInteger flagsObject = (PdfInteger)File.resolve(
      getDescriptor().get(PdfName.Flags)
      );
    if(flagsObject == null)
      return EnumSet.noneOf(FlagsEnum.class);

    return FlagsEnum.toEnumSet(flagsObject.getRawValue());
  }
View Full Code Here

    Gets the order of interpolation between samples.
  */
  public InterpolationOrderEnum getOrder(
    )
  {
    PdfInteger interpolationOrderObject = (PdfInteger)getDictionary().get(PdfName.Order);
    return (interpolationOrderObject == null
      ? InterpolationOrderEnum.Linear
      : InterpolationOrderEnum.get(interpolationOrderObject.getRawValue()));
  }
View Full Code Here

    )
  {
    /*
      NOTE: 'Q' entry may be undefined.
    */
    PdfInteger justificationObject = (PdfInteger)getBaseDataObject().get(PdfName.Q);
    if(justificationObject == null)
      return JustificationEnum.Left;

    return JustificationEnum.get(justificationObject);
  }
View Full Code Here

        }
      }
    }
    // Default glyph width.
    {
      PdfInteger defaultGlyphWidthObject = (PdfInteger)getBaseDataObject().get(PdfName.W);
      defaultGlyphWidth = (defaultGlyphWidthObject == null ? 0 : defaultGlyphWidthObject.getRawValue());
    }
  }
View Full Code Here

            },
            new PdfDirectObject[]
            {
              new PdfTextString("Adobe"),
              new PdfTextString("Identity"),
              new PdfInteger(0)
            }
            )
          ); // Generic predefined CMap (Identity-H/V (Adobe-Identity-0)) [PDF:1.6:5.6.4].

        // FontDescriptor.
View Full Code Here

TOP

Related Classes of org.pdfclown.objects.PdfInteger

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.