Package com.itextpdf.text.pdf

Examples of com.itextpdf.text.pdf.PdfName


   * different units or conversion factors)
   *
   * @param y
   */
  public void setY(NumberFormatArray y) {
    put(new PdfName("Y"), y);
  }
View Full Code Here


   * the distance function.
   *
   * @param d
   */
  public void setD(NumberFormatArray d) {
    put(new PdfName("D"), d);
  }
View Full Code Here

   * function.
   *
   * @param a
   */
  public void setA(NumberFormatArray a) {
    put(new PdfName("A"), a);
  }
View Full Code Here

   * angle function.
   *
   * @param t a PdfArray containing PdfNumber objects
   */
  public void setT(NumberFormatArray t) {
    put(new PdfName("T"), t);
  }
View Full Code Here

   * appropriate units before applying the slope function.
   *
   * @param s a PdfArray containing PdfNumber objects
   */
  public void setS(NumberFormatArray s) {
    put(new PdfName("S"), s);
  }
View Full Code Here

   * rectangle specified by the viewport's BBox entry.
   *
   * @param o an XYArray
   */
  public void setO(XYArray o) {
    put(new PdfName("O"), o);
  }
View Full Code Here

   * Constructs a PDF Collection Sort Dictionary.
   * @param key  the key of the field that will be used to sort entries
   */
  public PdfCollectionSort(String key) {
    super(PdfName.COLLECTIONSORT);
    put(PdfName.S, new PdfName(key));
  }
View Full Code Here

   */
  public PdfCollectionSort(String[] keys) {
    super(PdfName.COLLECTIONSORT);
    PdfArray array = new PdfArray();
    for (int i = 0; i < keys.length; i++) {
      array.add(new PdfName(keys[i]));
    }
    put(PdfName.S, array);
  }
View Full Code Here

  /**
   * Sets the value of the collection item.
   * @param value
   */
  public void addItem(String key, String value) {
    PdfName fieldname = new PdfName(key);
    PdfCollectionField field = (PdfCollectionField)schema.get(fieldname);
    put(fieldname, field.getValue(value));
  }
View Full Code Here

  /**
   * Sets the value of the collection item.
   * @param value
   */
  public void addItem(String key, PdfString value) {
    PdfName fieldname = new PdfName(key);
    PdfCollectionField field = (PdfCollectionField)schema.get(fieldname);
    if (field.fieldType == PdfCollectionField.TEXT) {
      put(fieldname, value);
    }
  }
View Full Code Here

TOP

Related Classes of com.itextpdf.text.pdf.PdfName

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.