Szpadel / chrome-headless-render-pdf

223 stars 67 forks source link

Add support for paper width and height options #20

Closed Albitos closed 6 years ago

Albitos commented 6 years ago

Using a new --paper-width and --paper-height arguments

Example for A4: chrome-headless-render-pdf --url http://google.com --pdf test.pdf --paper-width=8.3 --paper-height=11.7

shimondoodkin commented 6 years ago

+1 i need this too

Szpadel commented 6 years ago

@Albitos Can you remove console.log and add update index.d.ts? Then i'll be happy to merge

Albitos commented 6 years ago

I removed the console.log and renamed parameters in index.d.ts + rebased all changes into a nice, single commit :)

boxed commented 3 years ago

It's a bit weird to specify the size in inches. Normally you want to specify a format like letter and A4. You definitely don't want to specify A4 in inches :P