如何在PDFsharp中获取表格高度?

发布于 2024-07-25 07:16:35 字数 139 浏览 4 评论 0原文

我正在使用 PDFsharp 生成 PDF 文档,这些文档(发票)包含表格。

有什么方法可以确定桌子的高度吗? 我需要知道高度,因为增值税和总计表格必须位于页面底部。 我认为行数不会起作用,因为产品描述可能会被包装,导致某些行的行高增加

I'm using PDFsharp to generate PDF documents and these documents (invoices) contain tables.

Is there any way to determine the height of a table? I need to know the height as VAT and Total tables have to be positioned at the bottom of the page. I don't think a count of the rows would do because product descriptions can get wrapped resulting in increased row height for some rows

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

生生漫 2024-08-01 07:16:35

不确定我是否理解这个问题。
我认为您想要创建一个跨越多个页面的表格,但您需要在每个页面的底部有一个摘要。

听起来您使用的是 MigraDoc,而不是 PDFsharp。

MigraDoc 的工作方式与 Word 类似:您定义内容,MigraDoc 负责分页符。

不支持底部有总和行的表。

您可以手动添加总行和分页符。 为此,您必须估计一页上可以容纳多少个项目(考虑到描述的长度)。

Not sure if I understand the problem.
I think you want to create a table that spans several pages, but you need a summary at the bottom of each page.

Sounds like you're using MigraDoc, not PDFsharp.

MigraDoc works similar to Word: you define the contents, MigraDoc cares for the pagebreaks.

Tables with sum rows at the bottom are not supported.

You can add sum rows and pagebreaks manually. To do this you must estimate how many items fit on one page (taking the length of descriptions into account).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文