【问题标题】:Problem with CSS transform and writing-mode properties while converting HTML to PDF dink to pdf将 HTML 转换为 PDF 时出现 CSS 转换和写入模式属性的问题
【发布时间】:2019-10-16 21:37:23
【问题描述】:

我正在尝试将 html 转换为 pdf,它在浏览器上运行良好,但是当我下载 pdf 时,css 属性、转换和写入模式不起作用。这是css代码示例。 我正在使用 dinktopdf c# 库。

.left-content h2 {
        color: white;
        text-transform: uppercase;
        bottom: 65px;
        left: -25px;
        position: absolute;
        writing-mode: vertical-rl;
        transform: rotate(-90deg);
        text-orientation: mixed;
      }

【问题讨论】:

  • 你在使用 JSPDF 吗?
  • 不,我正在使用 dinktopdf
  • 与 html2pdf.js 相同的问题。你找到解决办法了吗?
  • 同样的问题 html2pdf.js.,有什么建议吗?

标签: c# html css pdf dinktopdf


【解决方案1】:

试试

-webkit-transform: rotate(90deg);

而不是

transform: rotate(-90deg);

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-04-04
    • 1970-01-01
    • 2014-02-28
    • 2019-09-24
    • 2013-03-09
    • 1970-01-01
    • 1970-01-01
    • 2019-08-26
    相关资源
    最近更新 更多