docx
    Preparing search index...

    Type Alias PackagePartOptions

    Options for a PackagePart.

    type PackagePartOptions = {
        content:
            | XmlComponent
            | Uint8Array
            | { files: readonly EmbeddedPackageFile[] };
        contentType: string;
        extension: string;
        folder: string;
        name: string;
        relationshipType: RelationshipType;
    }
    Index
    content: XmlComponent | Uint8Array | { files: readonly EmbeddedPackageFile[] }

    The part's content: XML, formatted as the document's parts are, its bytes, or the files of a package, such as an embedded workbook, which are zipped. XML can refer to other parts by calling their PackagePart.addTo when it is formatted, as a document does

    contentType: string

    The part's content type, such as "application/vnd.openxmlformats-officedocument.drawingml.chart+xml"

    extension: string

    The extension of the part's file name, such as "xml"

    folder: string

    The folder under word/ the part is written in, such as "charts"

    name: string

    The start of the part's file name, which is numbered in the order parts are added: "chart" for word/charts/chart1.xml

    relationshipType: RelationshipType

    The type of the relationship to the part from the part that refers to it, such as the chart relationship