低分辨率图像jspdf和Html2Canvas

时间:2016-01-21 13:01:39

标签: javascript jquery jspdf html2canvas

我们在jsPDF和HTML2canvas的帮助下创建了pdf。但图像分辨率有点高。

有没有办法用jquery,javascript,jsPDF和html2canvas获取低分辨率图像

public class MyApplet extends Applet {
    Graphics g1;

    ---------------

    public void callerMethod() {
            //call myPrintMethod();         
    }

    public static void myPrintMethod() {
        //Now you can paint here also
        g1.drawString("In method myPrintMethod",20,40);
    }

    @Override
    public void paint(Graphics g) {
        g1 = g;
        g.drawString("In method paint",20,20);
    }
}

1 个答案:

答案 0 :(得分:0)

使用任何工具都可以减少图像的分辨率,但减少使用jquery可能并不容易。 尝试使用工具缩小图像大小并参考。 http://blog.teamtreehouse.com/using-jquery-asynchronously-loading-image

相关问题