Getting the Styles of a Document

Gets the list of all defined styles in a given document.

Request

GET <webiURL>/documents/{documentId}/styles

Where:

  • {documentId} is the document identifier retrieved from the list of documents
Response

Response type: application/xml or application/json

Response body: a series of <style> elements.

Example

GET <webiURL>/documents/3422/styles

<styles>
    <style>
        <id>1</id>
        <background>
            <color rgb="#ffffff"/>
        </background>
        <alignment horizontal="Left" vertical="Bottom"/>
    </style>
    <style>
        <id>2</id>
        <parentId>1</parentId>
        <border>
            <top thickness="None" rgb="#000000" style="None"/>
            <bottom thickness="Thin" rgb="#000000" style="Plain"/>
            <left thickness="None" rgb="#000000" style="None"/>
            <right thickness="None" rgb="#000000" style="None"/>
        </border>
        <font size="12" face="Arial" italic="false" bold="true" strikethrough="false" 
            underline="false" rgb="#000000"/>
        <alignment horizontal="Left" vertical="Bottom"/>
    </style>
    <style>
        <id>3</id>
        <parentId>1</parentId>
        <border>
            <top thickness="Thin" rgb="#cacad9" style="Plain"/>
            <bottom thickness="Thin" rgb="#cacad9" style="Plain"/>
            <left thickness="Thin" rgb="#cacad9" style="Plain"/>
            <right thickness="Thin" rgb="#cacad9" style="Plain"/>
        </border>
        <background>
            <color rgb="#5175b9"/>
        </background>
        <font size="9" face="Arial" italic="false" bold="true" strikethrough="false"
            underline="false" rgb="#ffffff"/>
        <alignment horizontal="Left" vertical="Bottom"/>
    <style>
</styles>