简体   繁体   English

HTML到PDF转换的规范?

[英]Specification for HTML to PDF conversion?

Is their any specific pattern or specific set of tags or css properties that should used in html to make it properly work in pdf format ? 是否应该在html中使用它们的任何特定模式或特定标记或CSS属性集,以使其以pdf格式正常工作?

For eg. 例如。

  1. Does "float" property work in PDF? PDF中的“浮动”属性是否起作用?
  2. Does "position" property work in PDF? PDF中的“ position”属性是否起作用?
  3. Is usage of "table" preferable over "div" in PDF? 在PDF中,“表格”的用法是否优于“ div”?

CSS doesn't work in PDF. CSS在PDF中不起作用。

The elements and styles you use will depend on the software you use to transform the HTML+CSS into PDF, not anything that is intrinsic to PDF. 您使用的元素和样式将取决于用于将HTML + CSS转换为PDF的软件,而不取决于PDF固有的任何软件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM