Split Row Across Page

I've looked around trying to find an answer to this, but couldn't find anything relevant. Simply I want to control whether a row moves to a new page or splits across a page. In the below example, I want the second row to draw the first 50 pts on the first page and the remaining 25 pts on the second page.


void Main()
{
var doc = new PdfDocument();
doc.PageSettings.Size = new SizeF(100, 100);
doc.PageSettings.Margins = new PdfMargins { All = 0};
PdfPage page = doc.Pages.Add();

var parent = new PdfGrid();
parent.AllowRowBreakAcrossPages = true;
parent.Columns.Add(1);

// first row that is taller than the page
var row = parent.Rows.Add();
row.Height = 50; 
// I want this row to split across the page break, so 50 on the first page and 25 on the next
row = parent.Rows.Add();
row.Height = 75;
parent.Draw(page, new RectangleF(0, 0, page.Size.Width, page.Size.Height));

using (var stream = new MemoryStream())
{
doc.Save(stream);
Display(stream.ToArray());
}
}

static void Display(byte[] pdf)
{
var proc = Process.GetProcessesByName("Acrobat").FirstOrDefault();
if (proc != null)
{
proc.Kill();
Thread.Sleep(100);
}

string filename = Path.GetTempFileName();
File.WriteAllBytes(filename, pdf);
Process.Start(@"C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Acrobat.exe", filename);
}

3 Replies 1 reply marked as answer

GK Gowthamraj Kumar Syncfusion Team May 28, 2021 12:04 PM UTC

Hi Mitch, 
 
Thank you for contacting Syncfusion support. 
 
We were able to reproduce the reported issue with provided details on our end. Currently, we are validating on this and we will update the further details on June 1st 2021. 
 
Regards, 
Gowthamraj K 



GK Gowthamraj Kumar Syncfusion Team June 1, 2021 02:25 PM UTC

Hi Mitch, 
 
Thank you for your patience. 
  
We confirmed the issue “PdfGrid row is not paginated properly if the row does not fit on that page” as a defect in our product. Since you are using a weekly NuGet release version, we will include the fix for this issue in our weekly NuGet release, which will be available on June 15, 2021. 
  
Please use the below feedback link to track the status of the reported bug. 
 
Note: If you require patch for the reported issue in any of our Essential Studio Main or SP release version, then kindly let us know the version, so that we can provide a patch in that version based on our SLA policy. 
  
Please let us know if you need any further assistances in this. 
 
Regards, 
Gowthamraj K 



GK Gowthamraj Kumar Syncfusion Team June 15, 2021 12:14 PM UTC

Hi Mitch, 
 
Thank you for your patience. 
 
We have included the fix for the reported issue “PdfGrid row is not paginated properly if the row does not fit on that page” in our latest weekly NuGet release (v19.1.0.69). Please use the below link to download our latest weekly NuGet,      
 
 
Please let us know if you have any concerns on this. 
 
Regards, 
Gowthamraj K 


Marked as answer
Loader.
Up arrow icon