Skip to content

Can't call .stream on Document #82

@nocoli

Description

@nocoli

I need to get the current state as an IO - ready to be uploaded. I can see the stream method when I look at the Document class but get the following error when I try and call it:

NoMethodError:
       undefined method `stream' for #<Docx::Document:0x000055fa7bb472a8>

Example of what I am trying to do:

doc = Docx::Document.open(downloaded_file)
# make changes to doc.zip
stream = doc.stream

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