Skip to content

Support for pathlib.Path #1544

@raffaem

Description

@raffaem

docx.document.Document.add_picture should support pathlib.Path objects.

Currently it returns an error if you try to pass the file name of the image as a pathlib.Path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions