Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 2.7 Python Pisa压缩表中的文本_Python 2.7_Pisa - Fatal编程技术网

Python 2.7 Python Pisa压缩表中的文本

Python 2.7 Python Pisa压缩表中的文本,python-2.7,pisa,Python 2.7,Pisa,我正在处理一个与工作相关的问题,我似乎被HTML到PDF的转换卡住了。我有一个XML正在转换为HTML,这个HTML文件有一部分文本 <table> <tr> <td> Large amount of text. Large enough to not fit on a page </td> </tr> </table> 但是只要我在CSS中使用这个属性,不管它的行为如何(收缩、截断、

我正在处理一个与工作相关的问题,我似乎被HTML到PDF的转换卡住了。我有一个XML正在转换为HTML,这个HTML文件有一部分文本

<table>
   <tr>
      <td> Large amount of text. Large enough to not fit on a page
       </td>
   </tr>
</table>
但是只要我在CSS中使用这个属性,不管它的行为如何(收缩、截断、溢出、错误),它总是会进一步收缩。我尝试在中使用标记,但它们也没有帮助。 基本上,我已经尝试了几乎所有我能在网上找到的东西,但没有任何帮助。有人能在这方面指导我吗。 很抱歉,我不能在这里发布代码,因为这是一个与工作相关的问题


谢谢你

你有没有想过?
table {
-pdf-keep-in-frame-mode: Overflow
}