Skip to content

Instantly share code, notes, and snippets.

@FarazPatankar
Created January 8, 2017 19:38
Show Gist options
  • Select an option

  • Save FarazPatankar/f01643a72db03a477ae7061ef1ca10b1 to your computer and use it in GitHub Desktop.

Select an option

Save FarazPatankar/f01643a72db03a477ae7061ef1ca10b1 to your computer and use it in GitHub Desktop.
Additional code for the phantomjsPDF_one.js file.
page.paperSize = {
format: 'A4',
orientation: 'portrait',
margin: {top: '10px', right: '25px', bottom: '10px', left: '25px'},
};
page.settings.dpi = 300
page.viewportSize = {
height: 800,
width: 2200
}
page.zoomFactor = 4;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment