I have ABCPDF version 9 converting an HTML page to a 3 page PDF correctly with MSIE, but the same code truncates after the first page with Gecko. The relevant code is:

var pageRef = theDoc.AddImageUrl(uri, true, 1200, true);
while (theDoc.Chainable(pageRef))
{
    theDoc.Page = theDoc.AddPage();
    pageRef = theDoc.AddImageToChain(pageRef);
}

In debug mode, theDoc.Chainable(pageRef) returns true when the rendering engine is MSIE, but false when the rendering engine is Gecko.

Suggestions for correcting this?

有帮助吗?

解决方案

We had the same problem, and went looking for the specific HTML that was causing the issue. In our case it was the fact that the content that spanned several pages was in a fieldset tag We just swapped the fieldset tag for a div tag.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top