Package com.jagpdf

Examples of com.jagpdf.Profile


public class encrypted {
    static String horse = "\u017elu\u0165ou\u010dk\u00fd k\u016f\u0148 \u00fap\u011bl";

    public static void main(String argv[]) {
        Profile profile = jagpdf.create_profile();
        profile.set("doc.encryption", "standard");
        profile.set("doc.static_file_id", "1");
        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";
View Full Code Here

TOP

Related Classes of com.jagpdf.Profile

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.