![](/img/trans.png)
[英]How do I modify external link in an existing PDF such that it points to an internal page within document using IText7 and C#?
[英]How can I set top margin of the first page of pdf document using iText7?
我想设置第一页的上边距。 不幸的是它不起作用。 我尝试了document.SetTopMargin(100)
但它设置了所有页面。 我只想设置我的第一页。
下一页的边距必须在分页符之前设置。
document.SetTopMargin(100);
document.Add(new Paragraph("Text on first page"));
document.SetTopMargin(0);
document.Add(new AreaBreak(AreaBreakType.NEXT_PAGE));
document.Add(new Paragraph("Text on second page"));
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.