Thank you for your answer.
I try selected different styles for different paragraphs (these data I get from aspose - format by each paragraph) and match them with styles that I get from aspose in html, but I receive fail in most cases because the margins that I take from the paragraph formats do not match the margins that come in html.
For example:
fragment html:
<p style="margin:0pt 36pt 12pt; text-align:justify; line-height:12pt"><span style="font-family:'Times New Roman'; font-size:12pt; font-weight:bold; text-decoration:underline">RESOLVED</span><span style="font-family:'Times New Roman'; font-size:12pt; font-weight:bold">:</span><span style="font-family:'Times New Roman'; font-size:12pt; -aw-import:spaces">  </span><span style="font-family:'Times New Roman'; font-size:12pt">That a copy of the Certificate of Incorporation of the Company as filed with the Delaware Secretary of State and bearing the file stamp and certification of the Delaware Secretary of State, and attached hereto as </span><span style="font-family:'Times New Roman'; font-size:12pt; text-decoration:underline">Exhibit</span><span style="font-family:'Times New Roman'; font-size:12pt; text-decoration:underline"> </span><span style="font-family:'Times New Roman'; font-size:12pt; text-decoration:underline">A</span><span style="font-family:'Times New Roman'; font-size:12pt">, is hereby accepted and ratified.</span></p>```
fragment json describing paragraph format
{
“id”: 1468,
“paragraph_id”: 1273,
“add_space_between_far_east_and_alpha”: true,
“add_space_between_far_east_and_digit”: true,
“alignment”: “Justify”,
“bidi”: false,
“drop_cap_position”: “None”,
“first_line_indent”: 0,
“keep_together”: false,
“keep_with_next”: false,
“left_indent”: 36,
“line_spacing”: 12,
“line_spacing_rule”: “AtLeast”,
“lines_to_drop”: 0,
“no_space_between_paragraphs_of_same_style”: false,
“outline_level”: “BodyText”,
“page_break_before”: false,
“right_indent”: 36,
“space_after”: 12,
“space_after_auto”: false,
“space_before”: 0,
“space_before_auto”: false,
“style_identifier”: “User”,
“style_name”: “Resolution”,
“suppress_auto_hyphens”: false,
“suppress_line_numbers”: false,
“Widow_control”: true,
“created_at”: “2019-08-23T06:45:19.556Z”,
“updated_at”: “2019-08-23T06:45:19.556Z”
}```
I usually build such mapping:
right_indent -> margin-right,
left_indent -> margin-left,
space_before -> margin-top,
space_after -> margin-bottom
In result I get margin-right: 36pt;margin-left: 36pt;margin-top: 0pt; margin-bottom: 0pt; and it not equal margin:0pt 36pt 12pt;