簡體   English   中英

以 PDF 作為模板在 Python 中創建報告

[英]Creating report in Python with PDF as templates

我正在嘗試使用 Python 在 PDF 中生成報告。 根據要求,它應該基於預定義的格式(所見即所得模板),包括徽標和其他帶有格式的標准文本。 業務用戶(非技術人員)將使用 pdf 中的表單字段創建自己的模板。 我的應用程序應該能夠填寫這些表單域。 用戶應該能夠在模板中的字段上應用條件邏輯。 例如

1. if <condition is true> fill and show field 1
 else fill and show field 2

2. Have loops like. <start loop field> repeat the text and Fields depending on the input <end loop field>.

3. These conditional parts should be reusable. Save the template in one pdf and refer to it in other pdf templates.

我看過 ReportLab 和 pdfrw。 雖然可以填充 static 模板,但我無法使循環和條件工作正常工作。 我並不具體使用 PDF,但我的框架是 Python。

任何幫助將不勝感激。

我終於開始使用 MS-Word 使用 Python。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM