Examples of page_start()


Examples of com.jagpdf.Document.page_start()

//             strings

    static void strings(String[] args)
    {
        Document doc = jagpdf.create_file(args[0] + "/jagpdf_doc_java_strings.pdf");
        doc.page_start(597.6, 848.68);
        Canvas canvas = doc.page().canvas();

        //[java_example_string
        /*` An example should make it clear. Let's load a standard ISO-8859-2
            encoded font. */
 
View Full Code Here

Examples of com.jagpdf.Document.page_start()

    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;
    }

View Full Code Here

Examples of com.jagpdf.Document.page_start()

        static String horse3 = horse + ' ' + horse + ' ' + horse;


    public static void main(String argv[]) {
        Document doc = jagpdf.create_file(argv[0] + "/basic_text.pdf");
        doc.page_start(597.6, 848.68);
        Canvas canvas = doc.page().canvas();
        doc.outline().item(horse);
        // adobe core font
        Font font_14 = doc.font_load("standard;name=Times-Roman;size=12;enc=windows-1250");
        canvas.text_font(font_14);
View Full Code Here

Examples of com.jagpdf.Document.page_start()

import testlib.testlib;

public class basic_image {
    public static void main(String argv[]) {
        Document doc = jagpdf.create_file(argv[0] + "/basic_image.pdf");
        doc.page_start(597.6, 848.68);
        Canvas canvas = doc.page().canvas();
        String res_dir = testlib.getResourcesDir();
        String image_path = res_dir + "/images/lena.jpg";
        //
        // image format autodetection
View Full Code Here

Examples of com.jagpdf.Document.page_start()

        }

        jagpdf.create_profile_from_string(s_profile);

        Document doc = jagpdf.create_stream(my_stream);
        doc.page_start(5.9*72, 3.5*72);
        Canvas canvas = doc.page().canvas();
        // meat
        String res_dir = testlib.getResourcesDir();
        String image_path = res_dir + "/images-jpeg/PalmTree-CMYK-icc-FOGRA27.jpg";
        Image img = doc.image_load_file(image_path);
View Full Code Here

Examples of com.jagpdf.Document.page_start()

    //
    //
    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() {
View Full Code Here

Examples of com.jagpdf.Document.page_start()

        profile.set("info.static_producer", "1");
        profile.set("info.creation_date", "0");
        profile.set("stdsh.pwd_user", "user");
        profile.set("stdsh.pwd_owner", "owner");
        Document doc = jagpdf.create_file(argv[0] + "/encrypted.pdf", profile);
        doc.page_start(597.6, 848.68);
        Canvas canvas = doc.page().canvas();
        String res_dir = testlib.getResourcesDir();
        String image_path = res_dir + "/images/lena.jpg";
        // bookmark
        doc.outline().item(horse);
View Full Code Here

Examples of com.jagpdf.Document.page_start()

        /* //->
        Document doc = jagpdf.create_file("hello.pdf");
        //<- */
        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.