Cannot use --landscape = true option
See original GitHub issueI tried many times with command line
electron-pdf --input https://google.com --output ~/Desktop/test.pdf -l true -p Letter -w 2
However, I got the error window, then, I cannot generate the PDF with landscape
Shutting down...
Electron(91071,0x7fffc48183c0) malloc: *** error for object 0x7f934e6bacc0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug```
The command without `-l` option works well
electron-pdf --input https://google.com --output ~/Desktop/test.pdf -p Letter -w 2`
Issue Analytics
- State:
- Created 6 years ago
- Comments:8
Top Results From Across the Web
While generating pdf, landscape option doesn't work #3834
We are trying to generate pdf using puppeteer. Previously we had the landscape option working on Puppeteer 1.5.0 and node 8.9.4.
Read more >Android - Emulator in landscape mode, screen does not rotate
Another answer here: in my case the problem was simply that the auto-rotate setting in the android emulator settings (accessible pulling down the ......
Read more >SwiftUI: Force orientation on a pe… | Apple Developer Forums
I have a SwiftUI application in development, and for most screens, I'm fine with them being either landscape or portrait, and making designs...
Read more >How to force landscape or portrait mode in apps like ...
The option always forces your screen to show content in landscape mode, regardless of what app you're using and how you're holding your ......
Read more >Why won't my game rotate to Landscape orientation?
In the “Settings” display, scroll down to the “Lock Orientation” option. Review the current setting to ensure it is either set to “auto”...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve reproduced it, leave true off and just set
-l
(this is what the readme shows, but the description is confusing so I will update that)If you set DEBUG you can see the options sent to
printToPDF
when you set
-l true
the value becomes 'true'
which crashes things.thanks