Hi,
It turns out that for this HTML:
first div: paragraph
second div: paragraph
second div: second paragraph
paragraph outside of div
paragraph outside of div
paragraph outside of div
we get different results in the browser and in the PDF.
I'm attaching the outputs of Aspose components and plain html file rendered by IE 7 (in this case).
On the Aspose.png picture you can see that Aspose PDF produced additional line when there’s paragraph inside the div element.
Normally additional lines are created by browser by paragraph and the div element when those are used separately (see green and yellow blocks). But when those two tags are combined together, only one line is produced.
Aspose renders both lines – for paragraph and for div element.
I didn't check if such thing happens when there's div inside the paragraph, but I'm guessing that it behaves the same way.
We are using version 6.6.0.0 of Aspose.PDF library.
HTML conversion was done similar way to the one described on your page:
http://docs.aspose.com/display/pdfnet/How+to+convert+HTML+to+PDF+using+InLineHTML+approach
Our client wished to see the same line widths in PDF as in HTML that was delivered.
Do you see any work-around for this issue?
Regards,
Anna Domachowska,
Kainos