Pdf Table - Page break, start at top of second page

Hi,

I have a question regarding a table that is split by a page break.

Because of other content on top of the first page I need to give the table a margin top on the first page. When the table needs to be split onto the second page, how can i tell the table to start on top of the page instead of having the same margin top as on the first page.

Table table = new Table();
table.Top = 400;
table.Left = 27;

… content goes here - page break at some point

// Add the table to the document
pdfDocument.Pages[1].Paragraphs.Add(table);

Thanks for your support in advance.
Best regards,
Frank

Hi,

for the moment I did the following: I removed the margin top from the table and added a specific number of empty text fragments before I add the table. I don’t think that this is the best solution, but it works.

Please let me know, if there is a better way.

Best regards,
Frank

@fscherer

Thanks for contacting support.

We were able to observe the same behavior in our environment and for the sake of further investigation, we have logged an investigation ticket as PDFNET-45328 in our issue tracking system. We will further investigate the feasibility of the feature which you require and let you know in case there are definite updates. Please be patient and spare us little time.

We are sorry for the inconvenience.