Skip to content

jsPDF HTML not Printed correctly at PDF #2327

@Shaikhasad10

Description

@Shaikhasad10

Html printed now at pdf. But i have faced another issue is that after loading partial view in pdf css and style are not applying in pdf.
Html are recived from data parameter.

function onSuccess(data) {
try {
var pdf = new jsPDF({
orientation: 'portrait',
format: 'a4'
});
pdf.html(data);
pdf.save('report.pdf');
} catch (e) {
console.error(e);
}
}

Now, i have use this html.
image

so, after i have set width 100% but pdf not set styling and showing pdf like this:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions