Hi,
I am adding borders in my PDF but my content is not coming inside that borders.
I am using the code you shared with me in my previous topic. I am using aspose.PDF for .NET.
so i just want to know how to add border to my pages without effecting my content.
Thanks.
@shubhamkataria143
Thank you for creating separate post.
We would like to update you that you may specify some suitable top, bottom, left or right margin values while adding a page in order to control that the content does not overflow.
page.PageInfo.Margin.Left = 72;
page.PageInfo.Margin.Right = 72;
Please note that the basic measuring unit in Aspose.PDF for .NET is point, where 1 inch = 72 points and 1 cm = 1/2.54 inch = 0.3937 inch = 28.3 points.
In case you still face the issue then please share a narrowed down code snippet along with generated PDF document so that we may investigate further to help you out.