Skip to content

Fix Google Docs compatibility by suppressing Zip64 extra fields#208

Open
bliof wants to merge 2 commits intosenny:masterfrom
bliof:fix-google-docs-issue
Open

Fix Google Docs compatibility by suppressing Zip64 extra fields#208
bliof wants to merge 2 commits intosenny:masterfrom
bliof:fix-google-docs-issue

Conversation

@bliof
Copy link
Contributor

@bliof bliof commented Dec 17, 2025

rubyzip 3.x enables Zip64 by default, adding extra fields to zip entries that cause docx files to fail opening in Google Docs/Drive.

Suppress Zip64 extra fields using rubyzip 3.2.0's suppress_extra_fields option

For rubyzip 3.0/3.1 users, Zip.write_zip64_support = false can be used instead.

Closes #207

@bliof bliof force-pushed the fix-google-docs-issue branch from 4588926 to 95c65f3 Compare December 17, 2025 21:08
rubyzip 3.x enables Zip64 by default, adding extra fields to zip entries
that cause docx files to fail opening in Google Docs/Drive.

Suppress Zip64 extra fields using rubyzip 3.2.0's suppress_extra_fields option

For rubyzip 3.0/3.1 users, `Zip.write_zip64_support = false` can be used instead.
The rubyzip bump is as per the recommendation of the project:

https://github.com/rubyzip/rubyzip/tree/v3.2.2?tab=readme-ov-file#requirements

> Version 3.x requires at least Ruby 3.0.
> Version 2.x requires at least Ruby 2.4, and is known to work on Ruby 3.x.
> It is not recommended to use any versions of Rubyzip earlier than 2.3 due to security issues.
@bliof bliof force-pushed the fix-google-docs-issue branch from 95c65f3 to 70f7e53 Compare December 17, 2025 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sablon 0.4.3 generates .docx files that Google Drive cannot process

1 participant