问题标签 [reportlab]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
python - 将图表添加到 Reportlab PDF
我看过很多reportlab 绘图示例。生成图表不是问题,我似乎无法弄清楚如何在 pdf 上显示图表。
这是代码:
这就是我显示文本的方式。p.setFillColorRGB(1,1,1) header = p.beginText(100, 765) header.textLine("页面标题文本") p.drawText(header)
python - Highcharts SVG Export from Python Server Side Code
I am using reportlab in python to render a pdf server side.
I really like the look of highcharts graphs. But I am building a pdf server side which needs to include some graphs. The server side graphing (reportlab and matplotlib) do not have nearly as much choices for formatting / design.
Is there a way I can run a client side javascript graphing solution (highcharts) from the server side?
Here is a post with that request and this is what they said: You feed this Java tool a URL, it fires up its internal WebKit browser, executes the JavaScript code and dumps the rendered page to PDF.
I am looking for resources on how this could be accomplished in python.
python - Appengine - Reportlab(从模型中获取照片)
我正在使用 Reportlab 生成 PDF。无法从模型中检索照片。
当我在生成 PDF 时创建时,出现此错误:
如果我评论 n.º 419 的行,即调用照片,一切都很好。我已经在 Datastore Viewer 中检查过,模型没问题。
有人可以指出出了什么问题吗?
我应该使用 %s 而不是 str 吗?但抛出同样的错误。
python - Reportlab - 如果段落对于一行来说太长,如何引入换行符
我有一个要添加到 reportlab 框架的文本列表
如果图例太长,则末尾的文本根本不可见。在这种情况下如何引入换行符。
python - Reportlab - 饼图填充颜色
我正在reportlab 中制作一个简单的饼图。我在文档中找不到如何更改每个单独的馅饼填充颜色。
python - 我们可以使用reportlab 创建交互式PDF 表单吗?
我们可以使用reportlab 创建交互式PDF 表单吗?也就是说,一种从阅读器中获取数据并将其保存到数据库中的表单。
python - 在 Python 中隐藏 PDF 文件中的信息
在 Python 中,我有 ReportLab 生成的文件。现在,我需要从该 PDF 中提取一些页面并隐藏机密信息。
我可以创建一个带有黑点的 PDF 文件并使用 pyPdf 来合并页面,但人们仍然可以选择并复制粘贴黑点下的信息。
有没有办法让这些地点完全保密?
例如,我需要在页面上隐藏地址,我该怎么做?
谢谢,
python - Reportlab PDF版本生成问题
我正在使用带有鸭嘴兽的reportlab PDF包来生成一些PDF文件。在 linux 服务器和 windows 机器上,我有相同的 python 应用程序,相同版本的 reportlab 包(尽管 python 版本略有不同 - 2.6.5 与 2.6.6)。我使用自己的字体,不依赖系统字体。最近,我注意到在这两个平台上生成的 PDF 有点不同 - 与另一个版本相比,一个版本中的某些段落垂直向上几个点。
我试图找出这些平台之间的区别,但我没有找到区别。
最后,当我比较PDF文件时,一个文件是PDF 1.3,第二个是PDF 1.4版本,所以我认为问题一定是这个。我不知道如何在reportlab中设置PDF版本的任何选项,请任何人指出如何设置生成的PDF文件的正确版本,或者设置reportlab输出的一些附加属性?
更新:
使用reportlab 2.4版:
reportlab.__version__: $Id: __init__.py 3649 2010-01-20 14:45:53Z damian $
python - 使用 Reportlab 预览图像?
我正在使用 Web 界面使用 Reportlab 和 Django 生成一些 pdf。pdf总是会是一页。我想生成生成页面的 png 或 jpg 图像并将其返回给浏览器供用户预览,然后再保存最终的 pdf 并将其交付给最终用户。有没有办法做到这一点?
python - 带有reportlab的编号段落
我正在尝试使用reportlab,但我发现用户指南不够清楚.. (也许只是我)
我有以下代码
它完全按照预期呈现。
但是如果我想要编号而不是项目符号怎么办?
用户指南对这种情况真的很模糊......