Free Support Forum - aspose.cloud

Will supports API call in 'Aspose.Words for Cloud API Reference' for get Document Styles for Microsoft Docx as it do as in java library?


#1

I saw in Java library we can working with styles. Will be supports API call for it?


#2

@Anatoliy

Thanks for your inquiry. Aspose.Words Cloud REST API supports to get formatting details of a specific paragraph of a document. Please check following API for details. Hopefully, it will help you to accomplish the task.

https://apireference.aspose.cloud/words/#!/Paragraphs/GetDocumentParagraphFormat

However, if there is any difference in your requirement, then please share some more details. We will look into these and guide you accordingly.

P.S: We have separate forums for support of Aspose Cloud APIs. In future you may post related queries on respective forum.


#3

Thank you for your answer. I see style name (for example “Bod”), but how can I get font size, font family and other attributes this custom style?
Thanks


#4

@Anatoliy

Thanks for your feedback. Please follow this thread for an answer to your request.
gravatar.png (186 KB)


#5

Hello,
I have a question.
Currently I’m try get images from my document (format .docx). What variants I have?
I saw in Java library we can use set parameter and after we can get base64 format our image into html the document. Can I get html of my document and images base64 format together?

Thank you, Anatoliy


#6

@Anatoliy

Thanks for your inquiry. You can use imageData API for extracting the images from Word document. Please check sample cURL command for the purpose.

curl -X GET "https://api.aspose.cloud/v4.0/words/ImageTest.docx/drawingObjects/0/imageData" -H "accept: application/json" -H "authorization: Bearer [Access_Token]" --output C:/Temp/TestImage.png


#7

Thank you for you answer, but it don’t resulve my issue. I asked, can I set any parameter to I get image via base 64 format in my output html. If not, than I should know how get coordinates of the image in my document.


#8

@Anatoliy

Thanks for your feedback. Please check saveAs API for converting Word documents to HTML with detail setting by using HtmlSaveOptions. You need to use ExportImagesAsBase64 property as follows:

-d "{ "SaveFormat": "html", "FileName": "test.html", “ExportImagesAsBase64”: true}"


#9

Thank you for your feedback.
I tried save new file with same options, but html file as result not contains images in base64 format.
Also in your cloud api, by my opinion, work with “saveOptionsData”, that less than “htmlSaveOptionsData” object. Can show example, how you get html file with images in base64 format?
Thank you


#10

@Anatoliy

Thanks for your feedback. Please check following sample cURL command used for DOCX to HTML conversion with base64 image and sample output.

curl -X PUT "https://api.aspose.cloud/v4.0/words/ImageTest.docx/saveAs" -H "accept: application/json" -H "authorization: Bearer [JWT-AccessToken]" -H "Content-Type: application/json" -d "{"SaveFormat": "html","FileName": "test.html","ExportImagesAsBase64": true}"

Furthermore, please note we have recently released V4 API version of Aspose.Words Cloud. We have used V4 API version for the subjected example.
test.zip (86.9 KB)


#11

Hi, I have a question. I want to know how do you build html code from docx file? Sometimes I get html code with different margin styles constructions. For example: I can get margin-top: 10pt; margin-bottom: 5pt; I can get margin: 10pt 0 5pt; I want to know how do you build margins styles in html code?

BR,
Anatoliy


#12

@Anatoliy,

Thanks for your inquiry. We will appreciate it if you please share your documents showing different margin styles. It will help us to address your query exactly.


#13

<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta http-equiv="Content-Style-Type" content="text/css" /><meta name="generator" content="Aspose.Words for .NET 19.3" /><title></title></head><body><div><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase">ACTION BY </span><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase">WRITTEN CONSENT</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase">OF THE STOCKHOLDERS OF</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase">XYZ</span><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase">, INC.</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold">DATE</span></p><p style="margin-top:0pt; margin-bottom:0pt; text-indent:36pt; text-align:justify; line-height:200%; font-size:12pt"><span style="font-family:'Times New Roman'">Pursuant to Section 228 of the Delaware General Corporation Law and Section 2.11 of the Bylaws of </span><span style="font-family:'Times New Roman'">XYZ</span><span style="font-family:'Times New Roman'">, </span><span style="font-family:'Times New Roman'">Inc</span><span style="font-family:'Times New Roman'">., </span><span style="font-family:'Times New Roman'">a Delaware corporation (the “</span><span style="font-family:'Times New Roman'; font-weight:bold; font-style:italic">Company</span><span style="font-family:'Times New Roman'">”), the undersigned stockholders of the Company hereby take the following actions and adopt the following r</span><span style="font-family:'Times New Roman'">esolutions by written consent</span><span style="font-family:'Times New Roman'">:</span></p><ol type="1" style="margin:0pt; padding-left:0pt"><li style="margin-bottom:12pt; text-align:justify; font-family:'Times New Roman'; font-size:12pt; font-weight:bold; list-style-position:inside; -aw-list-padding-sml:22pt"><span style="font:7pt 'Times New Roman'; -aw-import:ignore">&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; </span><span style="text-decoration:underline">Certificate of Incorporation</span><span>.</span></li></ol><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">&#xa0; </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">&#xa0;</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><ol start="2" type="1" style="margin:0pt; padding-left:0pt"><li style="margin-bottom:12pt; text-align:justify; font-family:'Times New Roman'; font-size:12pt; font-weight:bold; list-style-position:inside; -aw-list-padding-sml:22pt"><span style="font:7pt 'Times New Roman'; -aw-import:ignore">&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; </span><span style="text-decoration:underline">Bylaws</span><span>.</span></li></ol><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">&#xa0; </span><span style="font-family:'Times New Roman'; font-size:12pt">That a copy of the Bylaws of the Company as adopted by the </span><span style="font-family:'Times New Roman'; font-size:12pt">Incorporator of the Company</span><span style="font-family:'Times New Roman'; font-size:12pt"> and approved by the Board of Directors of the Company, 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">&#xa0;</span><span style="font-family:'Times New Roman'; font-size:12pt; text-decoration:underline">B</span><span style="font-family:'Times New Roman'; font-size:12pt">, is hereby accepted and ratified.</span></p><ol start="3" type="1" style="margin:0pt; padding-left:0pt"><li style="margin-bottom:12pt; text-align:justify; font-family:'Times New Roman'; font-size:12pt; font-weight:bold; list-style-position:inside; -aw-list-padding-sml:22pt"><span style="font:7pt 'Times New Roman'; -aw-import:ignore">&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; </span><span style="text-decoration:underline">Adoption of </span><span style="text-decoration:underline">YEAR</span><span style="text-decoration:underline"> Stock Plan</span><span>.</span></li></ol><p style="margin:0pt 36pt 12pt; text-align:justify; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-decoration:underline">RESOLVED</span><span style="font-family:'Times New Roman'; font-weight:bold">:</span><span style="font-family:'Times New Roman'; -aw-import:spaces">&#xa0; </span><span style="font-family:'Times New Roman'">That the </span><span style="font-family:'Times New Roman'">YEAR</span><span style="font-family:'Times New Roman'"> Stock Plan (the “</span><span style="font-family:'Times New Roman'; font-weight:bold; font-style:italic">Plan</span><span style="font-family:'Times New Roman'">”), in substantially the form attached hereto as </span><span style="font-family:'Times New Roman'; text-decoration:underline">Exhibit</span><span style="font-family:'Times New Roman'; text-decoration:underline">&#xa0;</span><span style="font-family:'Times New Roman'; text-decoration:underline">C</span><span style="font-family:'Times New Roman'">,</span><span style="font-family:'Times New Roman'; font-weight:bold"> </span><span style="font-family:'Times New Roman'">is h</span><span style="font-family:'Times New Roman'">ereby adopted and approved and </span><span style="font-family:'Times New Roman'">RESERVED SHARES</span><span style="font-family:'Times New Roman'"> shares of the Company’s Common Stock are hereby reserved for issuance thereunder.</span></p><ol start="4" type="1" style="margin:0pt; padding-left:0pt"><li style="margin-bottom:12pt; text-align:justify; font-family:'Times New Roman'; font-size:12pt; font-weight:bold; list-style-position:inside; -aw-list-padding-sml:22pt"><span style="font:7pt 'Times New Roman'; -aw-import:ignore">&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; </span><span style="text-decoration:underline">Indemnification Agreement</span><span>.</span></li></ol><p style="margin:0pt 36pt 12pt; text-align:justify; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-decoration:underline">RESOLVED</span><span style="font-family:'Times New Roman'; font-weight:bold">:</span><span style="font-family:'Times New Roman'; -aw-import:spaces">&#xa0; </span><span style="font-family:'Times New Roman'">That the Company may</span><span style="font-family:'Times New Roman'"> enter into Indemnification Agreements with its </span><span style="font-family:'Times New Roman'">present and future </span><span style="font-family:'Times New Roman'">officers and directors in substantially the form attached hereto as </span><span style="font-family:'Times New Roman'; text-decoration:underline">Exhibit</span><span style="font-family:'Times New Roman'; text-decoration:underline">&#xa0;</span><span style="font-family:'Times New Roman'; text-decoration:underline">D</span><span style="font-family:'Times New Roman'">, tog</span><span style="font-family:'Times New Roman'">ether with any changes to such a</span><span style="font-family:'Times New Roman'">greements determined by the </span><span style="font-family:'Times New Roman'">Chief Executive Officer</span><span style="font-family:'Times New Roman'"> of the Company to be desirable.</span><span style="font-family:'Times New Roman'; -aw-import:spaces">&#xa0; </span><span style="font-family:'Times New Roman'">Such determination shall be conclusively evidenced by such officer’s execution and delivery of a definitive Indemnification Agreement.</span></p><p style="margin:0pt 36pt 12pt; text-align:justify; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-decoration:underline">RESOLVED FURTHER</span><span style="font-family:'Times New Roman'; font-weight:bold">:</span><span style="font-family:'Times New Roman'; -aw-import:spaces">&#xa0; </span><span style="font-family:'Times New Roman'">That the officers of the Company are authorized to execute such Indemnification Agreements on behalf of the Company and to take </span><span style="font-family:'Times New Roman'">whatever action they deem necessary to perform the Company’s obligations under such agreements.</span></p><ol start="5" type="1" style="margin:0pt; padding-left:0pt"><li style="margin-bottom:12pt; text-align:justify; font-family:'Times New Roman'; font-size:12pt; font-weight:bold; list-style-position:inside; -aw-list-padding-sml:22pt"><span style="font:7pt 'Times New Roman'; -aw-import:ignore">&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; </span><span style="text-decoration:underline">[</span><span style="text-decoration:underline">S Corporation Election</span><span style="font-weight:normal">.</span></li></ol><p style="margin-top:0pt; margin-left:36pt; margin-bottom:12pt; text-align:justify; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-decoration:underline">RESOLVED</span><span style="font-family:'Times New Roman'; font-weight:bold">:</span><span style="font-family:'Times New Roman'; -aw-import:spaces">&#xa0; </span><span style="font-family:'Times New Roman'">That the undersigned stockholders consent to the Company’s election to </span><span style="font-family:'Times New Roman'">be taxed as an </span><span style="font-family:'Times New Roman'">“</span><span style="font-family:'Times New Roman'">S corporation</span><span style="font-family:'Times New Roman'">”</span><span style="font-family:'Times New Roman'"> under Section 1362(a) of the Internal Revenue Code and Section 23801(a) of the California Tax Code.</span></p><p style="margin:0pt 36pt 12pt; text-align:justify; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-decoration:underline">RESOLVED FURTHER</span><span style="font-family:'Times New Roman'; font-weight:bold">:</span><span style="font-family:'Times New Roman'; -aw-import:spaces">&#xa0; </span><span style="font-family:'Times New Roman'">That the officers of this Company are hereby authorized and directed to solicit each stockholder’s consent to such election and to prepare, execute and file Internal Revenue Service Form 2553, together with a statement by each stockholder consenting to this election, and to do all other acts that may be required to make such elections effective</span><span style="font-family:'Times New Roman'">.</span><span style="font-family:'Times New Roman'">]</span></p><ol start="6" type="1" style="margin:0pt; padding-left:0pt"><li style="margin-bottom:12pt; text-align:justify; font-family:'Times New Roman'; font-size:12pt; font-weight:bold; list-style-position:inside; -aw-list-padding-sml:22pt"><span style="font:7pt 'Times New Roman'; -aw-import:ignore">&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0;&#xa0; </span><span style="text-decoration:underline">Omnibus Resolution</span><span>.</span></li></ol><p style="margin:0pt 36pt 24pt; text-align:justify; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-decoration:underline">RESOLVED</span><span style="font-family:'Times New Roman'; font-weight:bold">:</span><span style="font-family:'Times New Roman'; -aw-import:spaces">&#xa0; </span><span style="font-family:'Times New Roman'">That each of the officers of the Company is authorized and directed, on behalf of the Company, to execute and deliver any agreement, documents or instrument pursuant to or necessary to be delivered in connection with the</span><span style="font-family:'Times New Roman'"> foregoing resolutions</span><span style="font-family:'Times New Roman'">, with such modifications or amendments thereto as may be approved by the officer or officers executing and delivering the same, such approval to be conclusively evidenced by the execution and delivery thereof.</span></p><p style="margin-top:0pt; margin-bottom:0pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-style:italic">[Signature Page Follows]</span></p><br style="page-break-before:always; clear:both" /><p style="margin-top:0pt; margin-bottom:24pt; text-indent:36pt; text-align:justify; line-height:200%; font-size:12pt"><span style="font-family:'Times New Roman'">This a</span><span style="font-family:'Times New Roman'">ction by </span><span style="font-family:'Times New Roman'">w</span><span style="font-family:'Times New Roman'">ritten </span><span style="font-family:'Times New Roman'">c</span><span style="font-family:'Times New Roman'">onsent </span><span style="font-family:'Times New Roman'">of the stockholders of the Company shall be effective as of the date the Company receives the requisite consent of the Company’s stockholders.</span><span style="font-family:'Times New Roman'; -aw-import:spaces">&#xa0; </span><span style="font-family:'Times New Roman'">This action by written consent </span><span style="font-family:'Times New Roman'">may be executed in </span><span style="font-family:'Times New Roman'">any number of </span><span style="font-family:'Times New Roman'">counterparts, each of which shall be deemed an original and all of which together shall constitute one instrument.</span><span style="font-family:'Times New Roman'"> </span><span style="font-family:'Times New Roman'">This </span><span style="font-family:'Times New Roman'">action by </span><span style="font-family:'Times New Roman'">written consent </span><span style="font-family:'Times New Roman'">shall </span><span style="font-family:'Times New Roman'">be filed in the mi</span><span style="font-family:'Times New Roman'">nute book of the Company.</span></p><p style="margin-top:0pt; margin-bottom:24pt; text-indent:36pt; text-align:justify; line-height:200%; font-size:12pt"><span style="font-family:'Times New Roman'; -aw-import:ignore">&#xa0;</span></p><p style="margin-top:0pt; margin-left:216pt; margin-bottom:0pt; font-size:12pt"><span style="font-family:'Times New Roman'; text-transform:uppercase">[name]</span></p><p style="margin-top:0pt; margin-left:216pt; margin-bottom:0pt; font-size:12pt"><span style="font-family:'Times New Roman'; text-transform:uppercase; -aw-import:ignore">&#xa0;</span></p><p style="margin-top:0pt; margin-left:216pt; margin-bottom:0pt; font-size:12pt"><span style="width:252pt; font-family:'Lucida Console'; font-size:10pt; display:inline-block; -aw-font-family:'Times New Roman'; -aw-tabstop-align:right; -aw-tabstop-leader:line; -aw-tabstop-pos:468pt">_________________________________________</span></p><p style="margin-top:0pt; margin-left:216pt; margin-bottom:0pt; font-size:12pt"><span style="font-family:'Times New Roman'">(</span><span style="font-family:'Times New Roman'">signature</span><span style="font-family:'Times New Roman'">)</span></p><p style="margin-top:12pt; margin-left:216pt; margin-bottom:24pt; font-size:12pt"><span style="font-family:'Times New Roman'">Date of Signature:</span><span style="font-family:'Times New Roman'"> </span><span style="width:161.03pt; font-family:'Lucida Console'; font-size:10pt; display:inline-block; -aw-font-family:'Times New Roman'; -aw-tabstop-align:right; -aw-tabstop-leader:line; -aw-tabstop-pos:468pt">__________________________</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><br style="page-break-before:always; clear:both" /><span style="font-family:'Times New Roman'; font-weight:bold; text-decoration:underline">EXHIBIT A</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase">CERtiFICATE OF INCORPORATION</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><br style="page-break-before:always; clear:both" /><span style="font-family:'Times New Roman'; font-weight:bold; text-decoration:underline">EXHIBIT B</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase">BYLAWS</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><br style="page-break-before:always; clear:both" /><span style="font-family:'Times New Roman'; font-weight:bold; text-decoration:underline">EXHIBIT C</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase">YEAR</span><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase"> Stock plan</span></p></div><br style="page-break-before:always; clear:both; mso-break-type:section-break" /><div><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-decoration:underline; text-transform:uppercase">exhibit d</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase">FORM OF INDEMNIFICATION AGREEMENT</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:12pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase; -aw-import:ignore">&#xa0;</span></p><p style="margin-top:0pt; margin-bottom:12pt; text-align:center; page-break-inside:avoid; page-break-after:avoid; font-size:8pt"><span style="font-family:'Times New Roman'; font-weight:bold; text-transform:uppercase; -aw-import:ignore">&#xa0;</span></p></div></body></html>

Here, html code that I get after parse my .docx file. The html code contain the following structures “margin-top:0pt; margin-bottom:12pt;” or “margin:0pt;” or “margin:0pt 36pt 12pt;” or “margin-top:0pt; margin-left:36pt; margin-bottom:12pt;” or “margin-top:0pt; margin-left:216pt; margin-bottom:0pt;” and anothers. I would like how does the structure choice depend on the style parameters in .docx file?

BR,
Anatoliy


#14

@Anatoliy,

Thanks for your feedback. But I am afraid you have not shared your input docx files. As requested earlier, please share your input word documents those return different margins (10pts and 0pt) in resultant HTML. After checking the structure of the documents, we can guide you exactly.


#15

SLSForm - Organizational Stockholders Consent.docx - input docx file


#16

@Anatoliy

I am afraid I am unable to find any document. Please double check and share the document. Please note you can zip the Word documents and attach here.


#17

SLSForm - Organizational Stockholders Consent.zip (23.4 KB)

Here input docx file


#18

@Anatoliy

Thanks for sharing the sample document. We are looking into your query and will update you shortly.


#19

@Anatoliy,

Please note while converting DOCX to HTML default value of ExportPageMargins property is false and API does not preserve the page margins. If you want to preserve page margins in resultant HTML, you need to use SaveAs API with detailed HtmlSaveOptions as following. Hopefully it will help you to accomplish the task.

curl -X PUT "https://api.aspose.cloud/v4.0/words/SLSForm%20-%20Organizational%20Stockholders%20Consent.docx/saveAs"
-H "accept: application/json"
-H "authorization: Bearer [Access_Token]"
-H "Content-Type: application/json"
-d "{ "SaveFormat":"html", "FileName":"TestHtml_Margins.html", "ExportPageMargins": true}"

#20

Thank you for you answer. But my question not about it. I want to know how your api generate html with different margins. In what case we get as result margin with 4 values or 3 values, when we get as result margin with 2 values or 1 values, when we get ‘margin-left, margin-right, margin-top and margin-bottom values’ and not margin with different count of values?

BR,
Anatoliy