Commit Graph

173 Commits

Author SHA1 Message Date
ldestailleur
8f7142ad76 NEW Use the PhpZipProxy handler to generate ODT files. 2025-05-09 15:47:08 +02:00
ldestailleur
3bf7cc01fd Code comment 2025-05-09 15:39:07 +02:00
ldestailleur
b333f656c9 Replace option with param 2025-04-01 22:32:31 +02:00
kkhelifa-opendsi
0029e14fb6 NEW: Add globale MAIN_DISABLE_PDF_AUTO_DOWNLOAD_AFTER_CONVERT_FROM_ODT for disable the auto download after auto convert odt to pdf (#33511) 2025-04-01 22:30:03 +02:00
Mathieu Schiffmann
b9946cef4a NEW #33506 Add a constant to apply a ratio to resize images in ODT templates (#33543)
* CLOSE #33506 add a constant holding the ratio to resize images in ODT templates

A new Dolibarr constant 					MAIN_DOC_ODT_IMAGE_RATIO
is taken in consideration for ODT templates.
This constant holds a number that is multiplied when computing the size of images in ODT templates.
All doc_generic_*_odt_modules.php files have been updated to call the setImage Method with a new parameter $ratio
The method setImage in the file odt.php has been modified to have a new parameter $ratio and use it to compute the image size

* FIX #33506 wrong branch

some other files needed to be changed in the develop branch

* FIX #33506 PR errors fixed

* FIX #33506 codesniffer errors fixed

* QUAL #33506 completed method comment
2025-03-24 16:41:00 +01:00
ldestailleur
39c2de721a Fix warnings 2025-03-19 15:17:34 +01:00
ldestailleur
7098a8e611 Fix warnings 2025-03-19 15:14:33 +01:00
Laurent Destailleur (aka Eldy)
30dc853bb7 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-20 15:09:16 +01:00
Laurent Destailleur (aka Eldy)
fa9fe2efa7 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-20 15:02:37 +01:00
Laurent Destailleur (aka Eldy)
c9ab22782e Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-01-20 14:57:45 +01:00
Laurent Destailleur (aka Eldy)
1f360ca498 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-01-20 12:28:49 +01:00
Frédéric France
da7675c822 fix phpstan 2025-01-11 17:45:29 +01:00
Frédéric France
74b445ac31 fix phpstan 2025-01-09 21:38:06 +01:00
Frédéric France
1ba37602bc fix phpstan 2025-01-09 21:27:13 +01:00
Frédéric France
ba956df9c6 fix phpstan 2025-01-09 21:18:21 +01:00
Frédéric France
8ad5751d91 fix phpstan 2025-01-09 21:11:26 +01:00
tnegre
7e82f70c77 add case when HTML tags contain attributes 2025-01-09 11:05:45 +01:00
tnegre
78bf506790 fix tests in error 2025-01-06 09:44:04 +01:00
tnegre
b31962f7e2 fix 2025-01-06 09:44:04 +01:00
Laurent Destailleur (aka Eldy)
1cfa3b5803 Fix warning 2025-01-05 18:34:01 +01:00
Frédéric FRANCE
23e14b7779 fix phpstan 2024-12-16 11:12:42 +01:00
Frédéric FRANCE
ae69785f4f fix phpstan 2024-12-16 10:50:04 +01:00
Laurent Destailleur (aka Eldy)
c8a7c09033 Fix logs and protection for infinit loop 2024-12-14 18:38:48 +01:00
Laurent Destailleur
427e1ec26d Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-11-13 22:28:45 +01:00
accellier-dev
c845cc337c Fixed: #30976 (#30979)
* Fixed: #30976

* Update odf.php

---------

Co-authored-by: Pratush Raj <pratushraj0@gmail.com>
2024-11-13 22:27:31 +01:00
Laurent Destailleur
a64f4327c7 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2024-11-13 16:40:21 +01:00
Laurent Destailleur
b9c628413e Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2024-11-13 16:37:31 +01:00
Laurent Destailleur
a039a00277 Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2024-11-13 16:35:07 +01:00
Laurent Destailleur
d30a0ea066 Merge branch '16.0' of git@github.com:Dolibarr/dolibarr.git into 17.0 2024-11-13 16:32:54 +01:00
Laurent Destailleur
ab6c74ae88 Merge branch '15.0' of git@github.com:Dolibarr/dolibarr.git into 16.0 2024-11-13 16:29:18 +01:00
Laurent Destailleur
fbca98ec2a Merge 2024-11-13 16:25:00 +01:00
thomas-Ngr
93f23fe452 ODF : fix : escape specials chars in IF ELSE ENDIF $key (#31796)
* ODF : fix : escape specials chars in IF ELSE ENDIF $key

* fix missing brackets

* add delimiter to preg_quote

---------

Co-authored-by: Brice Werry <bwerry@open-dsi.fr>
2024-11-13 16:18:08 +01:00
Laurent Destailleur
ce7a364d2f Add option to test fix of #31696 2024-11-06 17:16:36 +01:00
Laurent Destailleur
7166d2570b Fix Zip generation of ODT with PHPZip 2024-10-17 00:32:14 +02:00
Laurent Destailleur
0163cc6278 Debug export website 2024-05-12 20:27:03 +02:00
kkhelifa-opendsi
569e8a8577 NEW: Add support of [IF] tag other than in the core content (ex: headers who is in stylesXml) (#29357) 2024-04-18 14:56:17 +01:00
Laurent Destailleur
2c52622348 Merge pull request #27248 from a-schild/25828-odt-fix-wrong-styles
25828 odt fix wrong styles
2024-01-05 20:11:45 +01:00
Laurent Destailleur
3fe97af1ad Update odf.php
No need of a very high entropy as we already have the microsecond in string.
2024-01-05 20:11:07 +01:00
Laurent Destailleur
4ad69cb635 Update odf.php 2024-01-05 20:08:41 +01:00
André Schild
37f4053c6f Use more secure way to generate unique id (thanks to laurent) 2024-01-04 15:04:47 +01:00
Laurent Destailleur
ef312e960c Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-12-29 16:53:09 +01:00
Laurent Destailleur
d2b3920684 Merge 2023-12-29 16:51:05 +01:00
André Schild
ca10e82436 Fix for issue #25828 wrong style numbering 2023-12-29 10:47:45 +01:00
Frédéric FRANCE
00f5a7bc4c Update PclZipProxy.php 2023-12-22 15:22:40 +01:00
atm-adrien
2ad52d9fc9 FIX : Adding the $encode parrameter to recursive _replaceHtmlWithOdtTag() utilisation 2023-12-20 14:22:37 +01:00
Laurent Destailleur
6201c15d91 Update odf.php 2023-12-11 14:25:20 +01:00
Charlène Benke
486bb3bc65 php V8 Warning 2023-12-11 12:36:54 +01:00
MDW
b0414dd078 Fix utf8_encoding/decoding (rather than creating new function replacements) 2023-12-07 03:37:05 +01:00
Laurent Destailleur
fb65ad919e Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into develop 2023-10-31 13:03:04 +01:00
Laurent Destailleur
70640428dd Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0 2023-10-31 13:02:23 +01:00