Skip to content

zoomFactor doesn't seem to change the output of pdf rendered #149

@a0js

Description

@a0js

I've been experimenting with this fantastic module, but I can't seem to get the zoom factor to work. (I'm attempting to get 100px per inch on a Letter size pdf). Logs are printing the following when I try a zoomFactor of 3.0

electron-html-to:electron-log [Worker 8fd99f30-2dc5-11e6-b9c6-079a8d60bf2a] +1ms creating new browser window with options: { width: 600,
height: 600,
webPreferences:
{ nodeIntegration: false,
javascript: true,
webSecurity: false,
zoomFactor: 3,
preload: '/Volumes/code/pdfaas/node_modules/electron-html-to/lib/scripts/preload.js' },
show: false }

But the resulting pdf is the same as when the zoomFactor is 1. Any guidance would be greatly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions