0

pdfreactor 服务器不适用于文本区域text-indentline-height属性。如何固定?

<textarea style="height: 79px;width: 767px; text-indent: 63px; background-size: 100% 16px; line-height: 16px; left: 33px;top: 593px;font-size: 11px;font-family: Arial;background-image: none;background-color: white;color: black;"> This is a comment This is a comment This is a comment This is a comment This is a comment This is a comment This is a commentThis is a commentThis is a comment This is a comment This is a comment This is a commentThis is a commentThis is a comment This is a commentThis is a comment This is a comment This is a comment This is a commentThis is a commentThis is a comment This is a comment This is a comment This is a comment This is a comment This is a comment This is a comment This is a comment This is a comment This is a comment This is a comment This is a comment This is a comment This is a comment This is a commentThis is a comment This is a comment This is a comment This is a comment 123456789123 </textarea>

以下图片展示了它在浏览器和 pdf 中的呈现方式(使用 pdfreactor 转换后)

1.0在此处输入图像描述

上图(1.0)显示了它在浏览器中的显示方式。

2.0在此处输入图像描述

上面的 (2.0) 图像显示了使用pdfreactor转换为 PDF 后的呈现方式

这些图像清楚地显示了转换上述 html 片段时未应用的文本区域的 text-indent 和 line-height 属性。在pdfreactor中呈现 textarea 的这些属性的任何解决方案?

4

1 回答 1

0

这是文本区域的一个已知问题。但是,如果不需要 PDF 中表单元素的交互性,您可以将文本区域重新设置为普通 HTML 元素的样式。这可以这样做:

textarea {
    -ro-replacedelement: none;
    display: block;
    border: 1px solid black;
}

现在样式“line-height”和“text-indent”将正常工作。

于 2017-07-11T09:14:21.340 回答