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

Free Support Forum - aspose.com

Incorrect interpretation of styles


We are faced with this problems:
1. Css pseudo-elements are not processed.

.item:before {

//NOT WORKING.The figure is missing

2. The width property does not work correctly: percentages function with errors.
//NOT WORKING. Block width equal to 100%.

3. Background images – incorrect dimensions.

(img size: 200px*200px)

// Background size doesn't adapt to block size. Background size equal to 200px*200px.

4. Bugs in the handling padding and margin. Example: if background color is set of the parent, and padding/margin have this element – the gap background formed in place of padding/margin . Padding left and padding right is not working. Please see attach file.

.father {

.child {


5. Absolute positioning is not processed .

//NOT WORKING.Block behaves like static.

You can help fix it?
Hi Alexandr,

Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If you do the document conversion using MS Word, you will get the same output.

We suggest you please use the latest version of Aspose.Words for Java 16.12.0 to convert your html document to other file format. Hope this helps you.

If you still face problem, please share your input Html document here for testing. Please also share the output file format to which you want to convert your html. We will investigate the issue on our side and provide you more information.


I’m sorry. Unnecessary bugs in the previous message.
The source codes of html and css are in the attach. The generated pdf is also there.
Problem area marked with the comment TEST BLOCK. Explanation of the error there as well.
Help, please.
Hi Alexandr,

Thanks for sharing the detail.

Aspose.Words mimics the same behavior as MS Word does. Please open your input html in MS Word. You will notice the same output as generated by Aspose.Words.