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

A4 尺寸导出后底部有空白问题 #176

Open
toplyb opened this issue Dec 4, 2023 · 0 comments
Open

A4 尺寸导出后底部有空白问题 #176

toplyb opened this issue Dec 4, 2023 · 0 comments

Comments

@toplyb
Copy link

toplyb commented Dec 4, 2023

场景描述:
后端使用 itext 将 HTML 模板导出成 A4 尺寸大小的 PDF,HTML 模板中设置图片的尺寸是 210mm x 297mm,目的是让图片占满整个 A4 纸

问题描述:
导出 PDF 使用插件预览的时候,使用浏览器查看,图片的高度是 507.93px,但是图片所在页面的高度是 510.73px,图片的宽高是继承父标签的 100%

截图如下:
图片的样式:
image
图片父标签的样式:
image

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