Package com.itextpdf.text.exceptions

Examples of com.itextpdf.text.exceptions.IllegalPdfSyntaxException


     * @param       y3      y-coordinate of the ending point (= new current point)
     */

    public void curveFromTo(final float x1, final float y1, final float x3, final float y3) {
      if (inText) {
        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


     * @param       h       height
     */

    public void rectangle(final float x, final float y, final float w, final float h) {
      if (inText) {
        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

     * to the starting point of the subpath.
     */

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

     * Ends the path without filling or stroking it.
     */

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

     * Strokes the path.
     */

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

     * Closes the path and strokes it.
     */

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

     * Fills the path, using the non-zero winding number rule to determine the region to fill.
     */

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

     * Fills the path, using the even-odd rule to determine the region to fill.
     */

    public void eoFill() {
      if (inText) {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
        content.append("f*").append_i(separator);
    }
View Full Code Here

     * Fills the path using the non-zero winding number rule to determine the region to fill and strokes it.
     */

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

     * Closes the path, fills it using the non-zero winding number rule to determine the region to fill and strokes it.
     */

    public void closePathFillStroke() {
      if (inText) {
        throw new IllegalPdfSyntaxException(MessageLocalization.getComposedMessage("path.construction.operator.inside.text.object"));
      }
        content.append("b").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.