Cordova插件在客户端生成pdf(cesarvr)

时间:2018-02-10 07:58:41

标签: cordova pdf cordova-plugins phonegap

在iOS中构建手机间隙apache ..如何将视图从纵向更改为横向..?

makePDFAndShare: function(e) {
    e.preventDefault();
    progressShow();
    /* generate pdf using url. */
    pdf.htmlToPDF({
        url: this.$urlShare.val(),
        landscape : "portrait",
        type: "share"
    }, this.success, this.failure);


},

THIS IMAGE

1 个答案:

答案 0 :(得分:0)

你尝试使用横向而不是肖像吗?

makePDFAndShare: function(e) {
    e.preventDefault();
    progressShow();
    /* generate pdf using url. */
    pdf.htmlToPDF({
        url: this.$urlShare.val(),
        landscape : "landscape",
        type: "share"
    }, this.success, this.failure);
}