Package com.itextpdf.text.exceptions

Examples of com.itextpdf.text.exceptions.IllegalPdfSyntaxException


    public void moveTo(final float x, final float y) {
      if (inText) {
            if (autoControlTextBlocks) {
                endText();
            } else {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
      }
        content.append(x).append(' ').append(y).append(" m").append_i(separator);
    }
View Full Code Here


    public void lineTo(final float x, final float y) {
      if (inText) {
            if (autoControlTextBlocks) {
                endText();
            } else {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
      }
        content.append(x).append(' ').append(y).append(" l").append_i(separator);
    }
View Full Code Here

    public void curveTo(final float x1, final float y1, final float x2, final float y2, final float x3, final float y3) {
      if (inText) {
            if (autoControlTextBlocks) {
                endText();
            } else {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
      }
        content.append(x1).append(' ').append(y1).append(' ').append(x2).append(' ').append(y2).append(' ').append(x3).append(' ').append(y3).append(" c").append_i(separator);
    }
View Full Code Here

    public void curveTo(final float x2, final float y2, final float x3, final float y3) {
      if (inText) {
            if (autoControlTextBlocks) {
                endText();
            } else {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
      }
        content.append(x2).append(' ').append(y2).append(' ').append(x3).append(' ').append(y3).append(" v").append_i(separator);
    }
View Full Code Here

    public void curveFromTo(final float x1, final float y1, final float x3, final float y3) {
      if (inText) {
            if (autoControlTextBlocks) {
                endText();
            } else {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
      }
        content.append(x1).append(' ').append(y1).append(' ').append(x3).append(' ').append(y3).append(" y").append_i(separator);
    }
View Full Code Here

    public void rectangle(final float x, final float y, final float w, final float h) {
      if (inText) {
            if (autoControlTextBlocks) {
                endText();
            } else {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
      }
        content.append(x).append(' ').append(y).append(' ').append(w).append(' ').append(h).append(" re").append_i(separator);
    }
View Full Code Here

    public void closePath() {
      if (inText) {
            if (autoControlTextBlocks) {
                endText();
            } else {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
      }
        content.append("h").append_i(separator);
    }
View Full Code Here

    public void newPath() {
      if (inText) {
            if (autoControlTextBlocks) {
                endText();
            } else {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
      }
        content.append("n").append_i(separator);
    }
View Full Code Here

    public void stroke() {
      if (inText) {
            if (autoControlTextBlocks) {
                endText();
            } else {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
      }
        content.append("S").append_i(separator);
    }
View Full Code Here

    public void closePathStroke() {
      if (inText) {
            if (autoControlTextBlocks) {
                endText();
            } else {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
      }
        content.append("s").append_i(separator);
    }
View Full Code Here

TOP

Related Classes of com.itextpdf.text.exceptions.IllegalPdfSyntaxException

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.