Package com.itextpdf.text.pdf

Examples of com.itextpdf.text.pdf.PdfNumber


            img = new ImgRaw(iw, ih, 1, m_bpc, m_out);
            PdfArray colorspace = new PdfArray();
            colorspace.add(PdfName.INDEXED);
            colorspace.add(PdfName.DEVICERGB);
            int len = m_curr_table.length;
            colorspace.add(new PdfNumber(len / 3 - 1));
            colorspace.add(new PdfString(m_curr_table));
            PdfDictionary ad = new PdfDictionary();
            ad.put(PdfName.COLORSPACE, colorspace);
            img.setAdditional(ad);
            if (transparency) {
View Full Code Here


   * you need to specify the page number (or use setFileAttachmentPagename to specify a named destination).
   * Once you have specified the page, you still need to specify the attachment using another method.
   * @param page  the page number of the page with the file attachment.
   */
  public void setFileAttachmentPage(int page) {
    put(PdfName.P, new PdfNumber(page));
  }
View Full Code Here

   * you need to specify the page with setFileAttachmentPage or setFileAttachmentPageName,
   * and then specify the index of the attachment added to this page (or use setFileAttachmentName).
   * @param annotation    the number of the attachment
   */
  public void setFileAttachmentIndex(int annotation) {
    put(PdfName.A, new PdfNumber(annotation));
  }
View Full Code Here

  /**
   * The relative order of the field name. Fields are sorted in ascending order.
   * @param i  a number indicating the order of the field
   */
  public void setOrder(int i) {
    put(PdfName.O, new PdfNumber(i));
  }
View Full Code Here

    case TEXT:
      return new PdfString(v, PdfObject.TEXT_UNICODE);
    case DATE:
      return new PdfDate(PdfDate.decode(v));
    case NUMBER:
      return new PdfNumber(v);
    }
    throw new IllegalArgumentException(MessageLocalization.getComposedMessage("1.is.not.an.acceptable.value.for.the.field.2", v, get(PdfName.N).toString()));
  }
View Full Code Here

  /**
   * Sets the value of the collection item.
   * @param i
   */
  public void addItem(String key, int i) {
    addItem(key, new PdfNumber(i));
  }
View Full Code Here

  /**
   * Sets the value of the collection item.
   * @param f
   */
  public void addItem(String key, float f) {
    addItem(key, new PdfNumber(f));
  }
View Full Code Here

  /**
   * Sets the value of the collection item.
   * @param d
   */
  public void addItem(String key, double d) {
    addItem(key, new PdfNumber(d));
  }
View Full Code Here

            this.setTextCharacterSpacing = setTextCharacterSpacing;
            this.moveNextLineAndShowText = moveNextLineAndShowText;
        }

        public void invoke(PdfContentStreamProcessor processor, PdfLiteral operator, ArrayList<PdfObject> operands) {
            PdfNumber aw = (PdfNumber)operands.get(0);
            PdfNumber ac = (PdfNumber)operands.get(1);
            PdfString string = (PdfString)operands.get(2);

            ArrayList<PdfObject> twOperands = new ArrayList<PdfObject>(1);
            twOperands.add(0, aw);
            setTextWordSpacing.invoke(processor, null, twOperands);
View Full Code Here

            this.moveStartNextLine = moveStartNextLine;
        }

        public void invoke(PdfContentStreamProcessor processor, PdfLiteral operator, ArrayList<PdfObject> operands) {
            ArrayList<PdfObject> tdoperands = new ArrayList<PdfObject>(2);
            tdoperands.add(0, new PdfNumber(0));
            tdoperands.add(1, new PdfNumber(-processor.gs().leading));
            moveStartNextLine.invoke(processor, null, tdoperands);
        }
View Full Code Here

TOP

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

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.