我在 python 中使用 pylatex 来生成 PDF。我想在生成的 PDF 中添加页面边框,但我无法这样做。我没有在 pylatex 文档中找到添加边框的任何参考。有什么方法可以奏效吗?以下是 Document 类的几何选项:
geometry_options = {
"head": "40pt",
"margin": "0.5in",
"bottom": "0.6in",
"includeheadfoot": True
}
doc = Document(geometry_options=geometry_options)
如果您需要更多详细信息,请告诉我。