Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/docx/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
require 'nokogiri'
require 'zip'

# Disable ZIP64 support to maintain compatibility with the previous default behavior
# (before rubyzip 3.x) and ensure compatibility with all readers. Rubyzip 3.x enables
# ZIP64 by default, but many readers (including pandoc) don't support it for small files.
Zip.write_zip64_support = false

module Docx
# The Document class wraps around a docx file and provides methods to
# interface with it.
Expand Down