PHPWord icon indicating copy to clipboard operation
PHPWord copied to clipboard

Size Problem

Open luismigueloliveira opened this issue 1 year ago • 2 comments

Describe the bug and add attachments

Sometimes, when my generated files have a filesize over 450kb, files looks breaked and cannot open it. I get an error Captura de ecrã 2024-09-17, às 17 44 52

  1. Permissions
  2. Memory on my computer
  3. Open with recover (doesn't work

And i only can solve this if I reduce the filesize (eleminating addTextBreak()). Attached an example.

relatorio (7).docx

Expected behavior

Open the file

Steps to reproduce

.

PHPWord version(s) where the bug happened

3

PHP version(s) where the bug happened

5.6.16

Priority

  • [ ] I want to crowdfund the bug fix (with @algora-io) and fund a community developer.
  • [ ] I want to pay the bug fix and fund a maintainer for that. (Contact @Progi1984)

luismigueloliveira avatar Sep 17 '24 16:09 luismigueloliveira

@luismigueloliveira Sorry. But Can you send me a code which generate a corrupted file ? And we don't have a v3 (for the moment).

Progi1984 avatar Sep 17 '24 19:09 Progi1984

@Progi1984 it's possibile to send it by email? I cannot post this code in public.

luismigueloliveira avatar Sep 18 '24 08:09 luismigueloliveira

@luismigueloliveira Could you simplify it and send it here ?

Progi1984 avatar Jan 14 '25 12:01 Progi1984