Hello Aspose,
we are suffering from a major bug if images appear in a table. The resulting PDF is incomplete if two following images are too large for one page. The expected result would be that the 2nd image is appearing on the next page. The actual result is that the complete content of the page after the 1st image is not part of the PDF (what ever will follow, e.g. text).
See this snippet:
private static string ImageInTableBug(Page page)
{
const string path = @“…”;
AddImageTable("Overlay of QA Projections for (ZY) Plane [red = LSO, blue = HwMuMap]");
AddImageTable("Overlay of QA Projections for (XY) Plane [red = LSO, blue = HwMuMap]");
AddImageTable("Overlay of QA Projections for (XZ) Plane[red = LSO, blue = HwMuMap]");
Console.WriteLine("Images in page: {0}", page.Paragraphs.Count);
return Path.Combine(myDataDir, "ImageInTableBug.pdf");
void AddImageTable(string image)
{
var imageTable1 = new Table() { IsBroken = false, Broken = TableBroken.None, ColumnAdjustment = ColumnAdjustment.AutoFitToWindow};
var row11 = imageTable1.Rows.Add();
var cell11 = row11.Cells.Add();
var image11 = new Image
{
File = Path.Combine(path,image + ".png")
};
cell11.Paragraphs.Add(image11);
var row12 = imageTable1.Rows.Add();
var cell12 = row12.Cells.Add();
var image12 = new Image
{
File = Path.Combine(path, "good.png")
};
cell12.Paragraphs.Add(image12);
var row13 = imageTable1.Rows.Add();
var cell13 = row13.Cells.Add();
var text13 = new TextFragment(image);
cell13.Paragraphs.Add(text13);
page.Paragraphs.Add(imageTable1);
}
}
The images I use are attached.
Please provide a fix or a workaround.
Regards
Gerd
good.png (605 Bytes)
Overlay of QA Projections for (ZY) Plane [red = LSO, blue = HwMuMap].png (51.6 KB)
Overlay of QA Projections for (XZ) Plane [red = LSO, blue = HwMuMap].png (71.9 KB)
Overlay of QA Projections for (XY) Plane [red = LSO, blue = HwMuMap].png (53.3 KB)
ImageInTableBug.pdf (139.2 KB)