在Python中使用XHTMLPDF2;很棒的工具!你知道吗
我正在生成PDF以集成到另一个PDF中,因此我需要从顶部的某个高度开始第一页(有时是432pt,有时是200pt;它在一个变量中)。你知道吗
然而,之后的每一页都应该从顶部开始。你知道吗
我试过这个CSS,它就像我想要的那样工作。。。除了第二页和以后的开始写在第一页和你得到这个网格的原始第一页和第二页开始在第一页。每隔一页就可以了。你知道吗
这是我的风格:
<style>
@page {
size: letter landscape;
@frame content1_frame {left: 50pt; width: 512pt; top: 494pt; height: 118pt;}
@frame content2_frame {left: 50pt; width: 512pt; top: 20pt; height: 612pt;}
}
</style>
我也试过只使用一个框架(仅限于content1u框架),但每个页面都从顶部开始494pt。提前谢谢
在内容之前,使用
所以您的源HTML可能看起来像
还有你的Python代码
相关问题 更多 >
编程相关推荐