Tables containing HTML Lists (OL/UL)

Hello,

I have couple of issues with tables containing HTML Lists (OL/UL) that span more than one page:

- Header of the first column is missing (Coll1) - All contents of the first column are missing

- Table-Cells overwrite footers (and sometimes lack content)

See resultant PDF "PureTabelrowBreak.pdf" and "PureTabelRowBreak_Work.pdf" for the desired output as well as the following code:

			Pdf pdf1 = new Pdf();
			pdf1.TextInfo.FontName = "Trebuchet MS";
			pdf1.TextInfo.FontSize = 10;
		pdf1.IsBookmarked = <span style="color: blue;">true</span>;
		<span style="color: rgb(43, 145, 175);">Section</span> sec1 = pdf1.Sections.Add();

		<span style="color: rgb(43, 145, 175);">Table</span> attributetable = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Table</span>();

		attributetable.IsFirstRowRepeated = <span style="color: blue;">true</span>;
		<span style="color: green;">//attributetable.IsBroken = false;</span>
		attributetable.IsRowBroken = <span style="color: blue;">false</span>;

		attributetable.Border = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">BorderInfo</span>((<span style="color: blue;">int</span>)<span style="color: rgb(43, 145, 175);">BorderSide</span>.All, 0.1F);

		attributetable.DefaultCellBorder = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">BorderInfo</span>((<span style="color: blue;">int</span>)<span style="color: rgb(43, 145, 175);">BorderSide</span>.All, 0.1F);

		<span style="color: rgb(43, 145, 175);">TextInfo</span> textFormat2 = pdf1.TextInfo.Clone() <span style="color: blue;">as</span> <span style="color: rgb(43, 145, 175);">TextInfo</span>;
		textFormat2.FontSize = 11;

		attributetable.DefaultCellTextInfo = textFormat2;
		attributetable.DefaultCellPadding.Top = 3;
		attributetable.DefaultCellPadding.Bottom = 3;
		attributetable.DefaultCellPadding.Left = 3;
		attributetable.DefaultCellPadding.Right = 3;

		<span style="color: rgb(43, 145, 175);">Row</span> headerrow = attributetable.Rows.Add();

		headerrow.BackgroundColor = <span style="color: blue;">new</span> Aspose.Pdf.Generator.<span style="color: rgb(43, 145, 175);">Color</span>(210, 210, 210);

		<span style="color: rgb(43, 145, 175);">TextInfo</span> textformatheader = pdf1.TextInfo.Clone() <span style="color: blue;">as</span> <span style="color: rgb(43, 145, 175);">TextInfo</span>;
		textformatheader.FontSize = 12;
		textformatheader.IsTrueTypeFontBold = <span style="color: blue;">true</span>;

		headerrow.DefaultCellTextInfo = textformatheader;

		<span style="color: rgb(43, 145, 175);">Cell</span> numbercell = headerrow.Cells.Add(<span style="color: rgb(163, 21, 21);">"No."</span>);

		<span style="color: rgb(43, 145, 175);">List</span><<span style="color: blue;">string</span>> descriptionstrings = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">List</span><<span style="color: blue;">string</span>>();

		descriptionstrings.Add(<span style="color: rgb(163, 21, 21);">"Coll1"</span>);
		descriptionstrings.Add(<span style="color: rgb(163, 21, 21);">"Coll2"</span>);
		<span style="color: blue;">foreach</span> (<span style="color: blue;">string</span> headerstr <span style="color: blue;">in</span> descriptionstrings)
		{
			headerrow.Cells.Add(headerstr);
		}

		<span style="color: blue;">int</span> rowvar = 0;

		<span style="color: blue;">for</span> (<span style="color: blue;">int</span> i = 0; i < 50; i++)
		{
			<span style="color: rgb(43, 145, 175);">Row</span> row1 = attributetable.Rows.Add();

			<span style="color: blue;">if</span> (rowvar % 2 != 0)
			{
				row1.BackgroundColor = <span style="color: blue;">new</span> Aspose.Pdf.Generator.<span style="color: rgb(43, 145, 175);">Color</span>(235, 235, 235);
			}

			rowvar++;
			row1.Cells.Add(rowvar.ToString());
			row1.Cells.Add(<span style="color: rgb(163, 21, 21);">"Value Coll1"</span>);
			<span style="color: green;">//see Result in PureTabelrowBreak.pdf</span>
			<span style="color: rgb(43, 145, 175);">Text</span> desc = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Text</span>(<span style="color: rgb(163, 21, 21);">"<ul>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>sad</li>   <li>asda</li>   <li>sda</li>   <li>sdas</li>   <li>dsad</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>sad</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asda</li>   <li>sda</li>   <li>sd</li>   <li>asd</li>   <li>ada</li>   <li>sd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>as</li>   <li>dasdasdasda</li>   <li>sd</li>   <li>asd</li>   <li>asd</li>   <li>asdsdasdasdasdasda</li>   <li>sda</li>   <li>sda</li>   <li>sdasd</li>   <li>asdasdasdasdasd</li>  </ul>  <ol>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asda</li>   <li>sdasdasdasd</li>   <li>ads</li>   <li>asd</li>   <li>asda</li>   <li>sdasd</li>   <li>as</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>dsddasdasdsa</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>da</li>   <li>sda</li>   <li>sdas</li>   <li>dsdasdasdasd</li>   <li>asdasdasd</li>   <li>a</li>   <li>sda</li>   <li>sda</li>   <li>sd</li>  </ol>"</span>);
			<span style="color: green;">//se Result in PureTabelRowBreak_Work.pdf</span>
			<span style="color: rgb(43, 145, 175);">Text</span> desc = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Text</span>(<span style="color: rgb(163, 21, 21);">"Value Coll1<BR/>second row"</span>);
			desc.IsHtmlTagSupported = <span style="color: blue;">true</span>;
			desc.Bookmarked = <span style="color: rgb(43, 145, 175);">BookmarkIncludeType</span>.NonIncluded;
			<span style="color: rgb(43, 145, 175);">Cell</span> rowCell = row1.Cells.Add();
			rowCell.Paragraphs.Add(desc);
			<span style="color: green;">//row1.Cells.Add()</span>
			<span style="color: green;">//row1.Cells.Add("Value Coll1\nsecond row");</span>
			
		}
		attributetable.ColumnAdjustment = <span style="color: rgb(43, 145, 175);">ColumnAdjustmentType</span>.AutoFitToContent;

		sec1.Paragraphs.Add(attributetable);

		<span style="color: green;">// Save the resultant PDF document</span>
		pdf1.Save(<span style="color: rgb(163, 21, 21);">@"c:/temp/PureTabelRowBreak_Work.pdf"</span>);

			Pdf pdf1 = new Pdf();
pdf1.TextInfo.FontName = “Trebuchet MS”;
pdf1.TextInfo.FontSize = 10;
		pdf1.IsBookmarked = <span style="color: blue;">true</span>;
		<span style="color: rgb(43, 145, 175);">Section</span> sec1 = pdf1.Sections.Add();

		<span style="color: rgb(43, 145, 175);">Table</span> attributetable = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Table</span>();

		attributetable.IsFirstRowRepeated = <span style="color: blue;">true</span>;
		<span style="color: green;">//attributetable.IsBroken = false;</span>
		attributetable.IsRowBroken = <span style="color: blue;">false</span>;

		attributetable.Border = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">BorderInfo</span>((<span style="color: blue;">int</span>)<span style="color: rgb(43, 145, 175);">BorderSide</span>.All, 0.1F);

		attributetable.DefaultCellBorder = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">BorderInfo</span>((<span style="color: blue;">int</span>)<span style="color: rgb(43, 145, 175);">BorderSide</span>.All, 0.1F);

		<span style="color: rgb(43, 145, 175);">TextInfo</span> textFormat2 = pdf1.TextInfo.Clone() <span style="color: blue;">as</span> <span style="color: rgb(43, 145, 175);">TextInfo</span>;
		textFormat2.FontSize = 11;

		attributetable.DefaultCellTextInfo = textFormat2;
		attributetable.DefaultCellPadding.Top = 3;
		attributetable.DefaultCellPadding.Bottom = 3;
		attributetable.DefaultCellPadding.Left = 3;
		attributetable.DefaultCellPadding.Right = 3;

		<span style="color: rgb(43, 145, 175);">Row</span> headerrow = attributetable.Rows.Add();

		headerrow.BackgroundColor = <span style="color: blue;">new</span> Aspose.Pdf.Generator.<span style="color: rgb(43, 145, 175);">Color</span>(210, 210, 210);

		<span style="color: rgb(43, 145, 175);">TextInfo</span> textformatheader = pdf1.TextInfo.Clone() <span style="color: blue;">as</span> <span style="color: rgb(43, 145, 175);">TextInfo</span>;
		textformatheader.FontSize = 12;
		textformatheader.IsTrueTypeFontBold = <span style="color: blue;">true</span>;

		headerrow.DefaultCellTextInfo = textformatheader;

		<span style="color: rgb(43, 145, 175);">Cell</span> numbercell = headerrow.Cells.Add(<span style="color: rgb(163, 21, 21);">"No."</span>);

		<span style="color: rgb(43, 145, 175);">List</span><<span style="color: blue;">string</span>> descriptionstrings = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">List</span><<span style="color: blue;">string</span>>();

		descriptionstrings.Add(<span style="color: rgb(163, 21, 21);">"Coll1"</span>);
		descriptionstrings.Add(<span style="color: rgb(163, 21, 21);">"Coll2"</span>);
		<span style="color: blue;">foreach</span> (<span style="color: blue;">string</span> headerstr <span style="color: blue;">in</span> descriptionstrings)
		{
			headerrow.Cells.Add(headerstr);
		}

		<span style="color: blue;">int</span> rowvar = 0;

		<span style="color: blue;">for</span> (<span style="color: blue;">int</span> i = 0; i < 50; i++)
		{
			<span style="color: rgb(43, 145, 175);">Row</span> row1 = attributetable.Rows.Add();

			<span style="color: blue;">if</span> (rowvar % 2 != 0)
			{
				row1.BackgroundColor = <span style="color: blue;">new</span> Aspose.Pdf.Generator.<span style="color: rgb(43, 145, 175);">Color</span>(235, 235, 235);
			}

			rowvar++;
			row1.Cells.Add(rowvar.ToString());
			row1.Cells.Add(<span style="color: rgb(163, 21, 21);">"Value Coll1"</span>);
			<span style="color: green;">//see Result in PureTabelrowBreak.pdf</span>
			<span style="color: rgb(43, 145, 175);">Text</span> desc = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Text</span>(<span style="color: rgb(163, 21, 21);">"<ul>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>sad</li>   <li>asda</li>   <li>sda</li>   <li>sdas</li>   <li>dsad</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>sad</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asda</li>   <li>sda</li>   <li>sd</li>   <li>asd</li>   <li>ada</li>   <li>sd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>as</li>   <li>dasdasdasda</li>   <li>sd</li>   <li>asd</li>   <li>asd</li>   <li>asdsdasdasdasdasda</li>   <li>sda</li>   <li>sda</li>   <li>sdasd</li>   <li>asdasdasdasdasd</li>  </ul>  <ol>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asd</li>   <li>asda</li>   <li>sdasdasdasd</li>   <li>ads</li>   <li>asd</li>   <li>asda</li>   <li>sdasd</li>   <li>as</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>dsddasdasdsa</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>das</li>   <li>da</li>   <li>sda</li>   <li>sdas</li>   <li>dsdasdasdasd</li>   <li>asdasdasd</li>   <li>a</li>   <li>sda</li>   <li>sda</li>   <li>sd</li>  </ol>"</span>);
			<span style="color: green;">//se Result in PureTabelRowBreak_Work.pdf</span>
			<span style="color: rgb(43, 145, 175);">Text</span> desc = <span style="color: blue;">new</span> <span style="color: rgb(43, 145, 175);">Text</span>(<span style="color: rgb(163, 21, 21);">"Value Coll1<BR/>second row"</span>);
			desc.IsHtmlTagSupported = <span style="color: blue;">true</span>;
			desc.Bookmarked = <span style="color: rgb(43, 145, 175);">BookmarkIncludeType</span>.NonIncluded;
			<span style="color: rgb(43, 145, 175);">Cell</span> rowCell = row1.Cells.Add();
			rowCell.Paragraphs.Add(desc);
			<span style="color: green;">//row1.Cells.Add()</span>
			<span style="color: green;">//row1.Cells.Add("Value Coll1\nsecond row");</span>
			
		}
		attributetable.ColumnAdjustment = <span style="color: rgb(43, 145, 175);">ColumnAdjustmentType</span>.AutoFitToContent;

		sec1.Paragraphs.Add(attributetable);

		<span style="color: green;">// Save the resultant PDF document</span>
		pdf1.Save(<span style="color: rgb(163, 21, 21);">@"c:/temp/PureTabelRowBreak_Work.pdf"</span>);

Regards Markusv<?xml:namespace prefix = o ns = “urn:schemas-microsoft-com:office:office” /><o:p></o:p>

Hi Markus,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for sharing the sample code.

We have found your mentioned issue after an initial test. Your issue has been registered in our issue tracking system with issue id: PDFNEWNET-32120. We will notify you via this forum post regarding update against your issue.

Sorry for the inconvenience,

The issues you have found earlier (filed as PDFNEWNET-32120) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Hi,

updating to version 6.6 solved quite a lot of issues - however there's still problems with long tables spanning more than one page:

the resultant document (generated from the above source code) still contains table cells covering the footer of pages (e.g. on pages 3,5,7,9…)

Regards
Markus

Hi Markus,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for the feedback.

I am able to notice the issue you have mentioned with the latest version of Aspose.Pdf for .NET v6.6. I have re-opened the issue for our development team to further look into it. I will update you regarding any further update against your issue.

Sorry for the inconvenience,

hi

Now we have 7.0.0 and the Problem is alwas there. What is the State of this issue?

Regards

Markus

Hi Markus,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

<o:p> </o:p>

Sorry
for the delay and inconvenience,<o:p></o:p>

<o:p> </o:p>

I am
afraid your reported issue regarding table cells
covering the footer in the generated PDF file. I have created a high priority
issue in our issue tracking system with issue id:
PDFNEWNET-33759 for the
resolution of this issue. We will update you via this forum thread once we have
any update.<o:p></o:p>

<o:p> </o:p>

Sorry for the inconvenience,

Hi everybody,

it's been over three months now and test-runs with the current release 7.3 shows that this issue unfortunatly still exists. Is there any date or release when this "high priority issue" will finally be fixed?

Thanks in advance for keeping us updated!

Regards
Andreas

Hi Andreas,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Please accept our apologies for the delay and inconvenience in the resolution of your issue.

I have shared your feedback and my test results with the latest version of Aspose.Pdf for .NET v7.3. I have asked the development team to look into this issue and share the updates / ETA regarding when the fix can be provided. I will keep you updated regarding the progress and feedback of the development team.

Sorry for the inconvenience,

Hi everyone,

any updates on this issue or an ETA for the resolution of it? Still no improvements with version 7.5.

Regards
Andreas

Hi Andreas,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Sorry for the delay.

However, due to some priority issues, your issue has not yet been resolved. I have request the development team to share the updates. As soon as I get any information, I will update you via this forum thread.

Sorry for the inconvenience,

Hello everybody,

it's a bit disappointing that this issue that has been posted 15 months ago still hasn't been resolved and there's not even an ETA on that.

As we're using tables a lot in our output dcouments and the content is really messed up due to this bug it's a really bothering issue that needs to be resolved asap!

Would you mind sharing an ETA (as promised in the last post) so we can at least inform our customers!?

Regards
Andreas

Hi Andreas,


First of all, please accept our humble apologies for the inconvenience that you have been facing due to PDFNEWNET-33759. Please note that HTML to PDF rendering is a bit complex area and over the years, development team has been trying their level to make this feature as robust as they can. The team initially investigated the issue and I am afraid they problem is still not resolved.

However I have again sent an intimation to share any possible ETA and as soon as I have the required information, I would be more than happy to update you with the status of correction. Please be patient and spare us little time.

Hi,

is there any news on this issue after another nine months?

Regards

Andreas

Hi Andreas,


Thanks for your patience. I’m afraid the reported issue is still not resolved. Actually our development team is working to improve new Generator(DOM approach) instead fixing issues in Old Geneator (Aspose.Pdf.Generator) issues. We have almost fixed all the issues and currently working over HTML text support in new Generator. Hopefully it would be fixed till the end of this quarter.

Moreover, We’ve also requested our development team to share update on the issue. We will get back to you soon.

We are sorry for the inconvenience caused.

Best Regards,

Thank you for NOT sharing an ETA or further information or even a FIX for this issue that has been posted on 11-22-2011. Just to let you know - this is far from professional. We’ll surely reconsider our choice to pick Aspose for PDF generation.

Hi Thomas,


Thanks for your patience.<o:p></o:p>

The development team has been busy resolving other priority issues and I am afraid the issue reported earlier is not yet resolved. Nevertheless, I have requested the team to share any possible ETA regarding its resolution. As soon as we have some definite updates regarding its resolution, we would be more than happy to update you with the status of correction. Please be patient and spare us little more time.

We are really sorry for this inconvenience.

Hi Thomas,


Thanks for your patience.

The development team has further investigated the issue PDFNEWNET-33759 reported earlier and I am afraid its blocked by another internal issue. Nevertheless, we will keep you posted on the status of correction.

Hi Thomas,


Thanks for your patience.

The development team has further investigated the issue PDFNEWJAVA-33759 reported earlier and as per our current estimates, we plan to get this problem resolved in Aspose.Pdf for .NET 9.8.0. The current release of Aspose.Pdf for .NET is 9.5.0. So please be patient and wait for the resolution.

Hi Thomas,


Thanks for your patience.

The development team has further investigated the issue PDFNEWNET-33759 reported earlier but I am afraid due to some technical difficulties, the problem is not yet resolved. Please note that the new ETA is Aspose.Pdf for .NET 10.0.0. As soon as we have some further updates, we will let you know.