Skip to content
This repository has been archived by the owner on Apr 12, 2019. It is now read-only.

White border #6

Closed
daankets opened this issue Apr 27, 2015 · 1 comment
Closed

White border #6

daankets opened this issue Apr 27, 2015 · 1 comment

Comments

@daankets
Copy link

It seems as if there is no way to get rid of the white border of 1cm. I had to change the

var paperBorder = "0cm";

variable in phantomjs-pdf.js in order to do this.

@befreestudios
Copy link

You should be able to set this in the "paperSize" property of the configuration object.. this worked for me.

return { html: htmlData, css: pdfStyle, "paperSize": { format: "A4", orientation: "portrait", border: "0.5cm" }, "deleteOnAction": true };

@dustin-H dustin-H closed this as completed Apr 3, 2016
@dean0916 dean0916 mentioned this issue Oct 30, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants