Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after html to pdf, the drop-shadow missed. #247

Open
bk111 opened this issue May 29, 2023 · 0 comments
Open

after html to pdf, the drop-shadow missed. #247

bk111 opened this issue May 29, 2023 · 0 comments

Comments

@bk111
Copy link

bk111 commented May 29, 2023

a1.css

body img{
border-radius: 20px; /* 圆角 /
-webkit-filter: drop-shadow(10px 10px 10px #4444dd);
filter: drop-shadow(10px 10px 10px #4444dd);
margin-top: 20px; /
在图片上方添加10像素的空行 /
margin-bottom: 20px; /
在图片下方添加10像素的空行 */
}

wkhtmltopdf_options = {
'dpi': 600,
# 'page-size': 'A4',
# 'margin-top': '15mm',
"user-style-sheet": "a1.css",
'debug-javascript': [''],
'debug-javascript': True,
'javascript-delay': 10000,
'header-html': 'header.html',
#'header-line': '',
'footer-html': 'footer.html',
'footer-right': '[page]/[topage]', #在页脚加页码
'no-stop-slow-scripts': True,
'load-media-error-handling': 'skip',
'load-error-handling': 'skip',
'enable-local-file-access': True
}

There is drop-shadow picture in html, but no drop-shadow in pdf, why?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant