小编mer*_*art的帖子

Python Reportlab中的动态帧大小

我尝试使用Python中的生成一个发货清单.我试图通过使用Platypus将所有部件(如发件人地址,收件人地址,表格)放在适当的位置Frames.

我遇到的第一个问题是我需要很多Frames东西以正确的方式定位所有东西,使用Platypus有更好的方法吗?因为我希望发件人地址和我的地址处于相同的高度,如果我只是将它们添加到我的地址,story = []它们会一个接一个地对齐.

接下来的问题是我正在绘制的表格是动态的,当我到达Frame(我希望表格去的空间)的末尾时,它只是FrameBreak在下一帧中进行并且连续.那么如何让Frame(我的桌子的空间)动态?

python pdf pdf-generation reportlab

3
推荐指数
1
解决办法
1487
查看次数

多选列表,每个项目都有数量选项

I have a free text field in my html page, but I want to fill it with given strings. So lets say I have strings, "apple", "banana" and "pineapple", and now I want to have a button "add content" that opens a modal box, or if it's easier simply a list embedded in my page, that gives me a list where I can select multiple items with the option to enter a quantity for each selected item and adds the …

html javascript web2py

3
推荐指数
1
解决办法
2080
查看次数

标签 统计

html ×1

javascript ×1

pdf ×1

pdf-generation ×1

python ×1

reportlab ×1

web2py ×1