Skip to content

Commit 16e42c2

Browse files
authored
Merge pull request #170 from abartov/master
Fixed #168. Rubyzip changed default behavior.
2 parents 6889c47 + 4b22f8f commit 16e42c2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/docx/document.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
require 'nokogiri'
66
require 'zip'
77

8+
# Disable ZIP64 support to maintain compatibility with the previous default behavior
9+
# (before rubyzip 3.x) and ensure compatibility with all readers. Rubyzip 3.x enables
10+
# ZIP64 by default, but many readers (including pandoc) don't support it for small files.
11+
Zip.write_zip64_support = false
12+
813
module Docx
914
# The Document class wraps around a docx file and provides methods to
1015
# interface with it.

0 commit comments

Comments
 (0)