Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top