modern-xlsx API Reference - v1.3.0
    Preparing search index...

    Function generateDrawingRels

    • Builds the relationships part (xl/drawings/_rels/drawingN.xml.rels) that links a drawing to its image files.

      Parameters

      • imageIds: { rId: string; target: string }[]

        One entry per image: rId is the relationship id and target the path of the image part; both are XML-escaped.

      Returns string

      The relationships XML as a string.