Examples of page_end()


Examples of com.jagpdf.Document.page_end()

            [lib] converts the strings to UTF-8.*/
        canvas.text(50, 720, full_moon_swe);
        canvas.text(50, 680, full_moon_cze);
        //]

        doc.page_end();
        doc.finalize_doc();
    }
}


View Full Code Here

Examples of com.jagpdf.Document.page_end()

    public static void do_it(String argv[]) {
        CustomStream my_stream = new CustomStream(argv[0] + "/basic_extstream.pdf");
        Document doc = jagpdf.create_stream(my_stream);
        my_stream = null;
        doc.page_start(5.9*72, 3.5*72);
        doc.page_end();
        doc.finalize_doc();
        doc = null;
    }

    public static void collect(int ms, String s)
View Full Code Here

Examples of com.jagpdf.Document.page_end()

            canvas.text(0, 0, arr_b);
            assert false;
        } catch(IllegalArgumentException excpected) {}

        // finalize
        doc.page_end();
        doc.finalize_doc();
    }


    public static void justified_text(Font font, Canvas canvas, double y)
View Full Code Here

Examples of com.jagpdf.Document.page_end()

        {
            // ok, as expected
        }

        // finalize
        doc.page_end();
        doc.finalize_doc();
    }
}
//]
View Full Code Here

Examples of com.jagpdf.Document.page_end()

                    "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +
                    "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +
                    "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +
                    "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
        // -
        doc.page_end();
        doc.finalize_doc();
        doc = null;

//         if (out_stream == null)
//         {
View Full Code Here

Examples of com.jagpdf.Document.page_end()

    //
    public static void main(String argv[]) {
            tests();
            Document doc = jagpdf.create_file(argv[0] + "/basic.pdf");
            doc.page_start(5.9*72, 3.5*72);
            doc.page_end();
            doc.finalize_doc();
    }

    public static void tests() {
        int major = jagpdf.this_version_major;
View Full Code Here

Examples of com.jagpdf.Document.page_end()

        String fspec = "enc=utf-8; size=12; file=" + res_dir + "/fonts/DejaVuSans.ttf";
        Font font_ttf = doc.font_load(fspec);
        canvas.text_font(font_ttf);
        canvas.text(50, 750, horse);
        // finalize
        doc.page_end();
        doc.finalize_doc();
    }
}
View Full Code Here

Examples of com.jagpdf.Document.page_end()

        //<- */
        Document doc = jagpdf.create_file(argv[0] + "/jagpdf_doc_hello.pdf");
        //->
        doc.page_start(597.6, 848.68);
        doc.page().canvas().text(50, 800, "Hello, world!");
        doc.page_end();
        doc.finalize_doc();
    }
}
//]

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.