crossnote icon indicating copy to clipboard operation
crossnote copied to clipboard

The exported html's css makes wkhtmltopdf work incorrectly

Open leozzyzheng opened this issue 6 years ago • 0 comments

I'm using wkhtmltopdf to convert html to pdf(cause I need bookmarks in pdf), but I found the .markdown-preview{left:50%;transform:translateX(-50%)} in style-template.css will make wkhtmltopdf only use right half page to print the pdf content.

After I changed the style to .markdown-preview{/*left:50%;transform:translateX(-50%)*/left:0%;transform:translateX(0%)}, the html still shows correct and wkhtmltopdf also works.

So should I do this to make wkhtmltopdf working? Will it break some browsers' compatibility?

leozzyzheng avatar May 24 '18 11:05 leozzyzheng