Package com.itextpdf.text

Examples of com.itextpdf.text.Version


    public void setRgbTransparencyBlending(final boolean rgbTransparencyBlending) {
        this.rgbTransparencyBlending = rgbTransparencyBlending;
    }

    protected static void writeKeyInfo(OutputStream os) throws IOException {
      Version version = Version.getInstance();
      String k = version.getKey();
      if (k == null) {
            k = "iText";
      }
        os.write(getISOBytes(String.format("%%%s-%s\n", k, version.getRelease())));
     
    }
View Full Code Here


        String producer = null;
        if (iInfo != null)
            skipInfo = iInfo.getNumber();
        if (oldInfo != null && oldInfo.get(PdfName.PRODUCER) != null)
          producer = oldInfo.getAsString(PdfName.PRODUCER).toUnicodeString();
        Version version = Version.getInstance();
        if (producer == null) {
          producer = version.getVersion();
        }
        else if (producer.indexOf(version.getProduct()) == -1) {
          StringBuffer buf = new StringBuffer(producer);
          buf.append("; modified using ");
          buf.append(version.getVersion());
          producer = buf.toString();
        }
        PdfIndirectReference info = null;
        PdfDictionary newInfo = new PdfDictionary();
        if (oldInfo != null) {
View Full Code Here

        PdfDictionary oldInfo = reader.getTrailer().getAsDict(PdfName.INFO);
        String producer = null;
        if (oldInfo != null && oldInfo.get(PdfName.PRODUCER) != null) {
            producer = oldInfo.getAsString(PdfName.PRODUCER).toUnicodeString();
        }
        Version version = Version.getInstance();
        if (producer == null || version.getVersion().indexOf(version.getProduct()) == -1) {
          producer = version.getVersion();
        }
        else {
            int idx = producer.indexOf("; modified using");
            StringBuffer buf;
            if (idx == -1)
                buf = new StringBuffer(producer);
            else
                buf = new StringBuffer(producer.substring(0, idx));
          buf.append("; modified using ");
          buf.append(version.getVersion());
          producer = buf.toString();
        }
        PdfIndirectReference info = null;
        PdfDictionary newInfo = new PdfDictionary();
        if (oldInfo != null) {
View Full Code Here

    public void setRgbTransparencyBlending(final boolean rgbTransparencyBlending) {
        this.rgbTransparencyBlending = rgbTransparencyBlending;
    }

    protected static void writeKeyInfo(OutputStream os) throws IOException {
      Version version = Version.getInstance();
      String k = version.getKey();
      if (k == null) {
            k = "iText";
      }
        os.write(getISOBytes(String.format("%%%s-%s\n", k, version.getRelease())));

    }
View Full Code Here

TOP

Related Classes of com.itextpdf.text.Version

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.