We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

HTML to PDF support for position:absolute

Hello

We try to generate a pdf from an html, we have issue with absolute position.

We attach html source file, firefox browser html rendering (is OK), and pdf output produced with Aspose PDF 19.1 for java (yellow div is misplaced)

[https://gist.github.com/fchetouani/2d349e338cec16c5a27d5559f1e6c9a1]http://Html source file

for_aspose_forum_absolute_position.pdf (62.1 KB)

html_for_aspose.png (11.9 KB)

We have external constraints to use absolute position.

Do you have an idea to fix it ?

Thank you for your help

@farid94

Thank you for contacting support.

We have worked with the data shared by you and have been able to reproduce the issue in our environment. A ticket with ID PDFJAVA-38312 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.