troosan
486321bb02
Compatibility with old PHP versions
2021-02-08 00:58:00 +01:00
troosan
6db2927484
Merge pull request #1965 from naept/feature_handle-style-inheritance-for-html
...
feat: Update addHtml to handle style inheritance
2021-02-08 00:51:34 +01:00
troosan
f832a7c9db
Merge branch 'develop' into develop
2021-02-08 00:37:42 +01:00
troosan
ca45d14511
Merge pull request #1809 from juzser/dev-master
...
Update the regexp to avoid catastrophic backtracking
2021-02-07 23:42:57 +01:00
troosan
5080139511
Merge pull request #1824 from ErnestStaug/locale_support
...
Some document have non-standard locale code
2021-02-07 23:33:14 +01:00
troosan
6baf287a5f
Merge branch 'develop' into udz-checkbox-feature
2021-02-07 23:30:28 +01:00
troosan
9e322dd6e7
Merge pull request #1902 from lubosdz/develop
...
Enhancements to addHTML parser
2021-02-07 22:53:53 +01:00
troosan
bf8f2ac12f
Merge pull request #1763 from TimeTonic/fixes-1750-block-with-images-inside
...
TemplateProcessor cloneBlock wrongly clones images
2021-02-07 22:27:40 +01:00
troosan
137238faed
Merge pull request #1967 from jsochor/develop
...
fix image limit
2021-02-07 22:09:34 +01:00
troosan
26e479422a
Fix formatting
2021-02-07 15:06:01 +01:00
Antoine de Troostembergh
31259f6448
fix
2021-02-06 22:12:19 +01:00
Antoine de Troostembergh
1168789e8a
fix formatting
2021-02-06 21:32:30 +01:00
dbarzin
48ee2eb78a
fix param error
2021-02-06 10:50:21 +01:00
dbarzin
31002fc6e8
add chart in template
2021-02-06 10:40:52 +01:00
troosan
4e87e72110
Merge pull request #1716 from enflow/allowImageClosure
...
Allow a closure to be passed with image replacement tags
2021-02-05 22:08:56 +01:00
troosan
8922632ead
Merge pull request #1936 from YannikFirre/patch-1
...
Add null check when setComplexValue is not found
2021-02-05 21:26:02 +01:00
troosan
24e46544d8
remove space
2021-02-05 21:25:21 +01:00
troosan
13384f63d3
update comment
2021-02-05 21:15:51 +01:00
Antoine de Troostembergh
83ba5a7b57
Merge branch 'develop' of https://github.com/PHPOffice/PHPWord into patch-1
2021-02-05 21:12:43 +01:00
troosan
554e90a46c
Merge pull request #1851 from oleibman/defaultpaper
...
Make Default Paper Configurable
2021-01-12 21:40:26 +01:00
troosan
c391b90823
Merge pull request #1924 from sven-ahrens/feature/parse-shapes
...
Feature Request: Read shape node values
2021-01-12 21:37:23 +01:00
Libor M
ea917c28da
fix coverage
2021-01-10 14:06:19 +01:00
Libor M
681d5c4709
fix PHP 8.0 compatibility
2021-01-02 09:08:43 +01:00
Libor M
a2c8d8c2d5
\PhpOffice\Common\XMLWriter -> \PhpOffice\PhpWord\Shared\XMLWriter
2021-01-02 08:26:46 +01:00
Libor M
0cca050bcd
\PhpOffice\Common\XMLReader -> \PhpOffice\PhpWord\Shared\XMLReader
2021-01-01 16:33:27 +01:00
Libor M
9a26ad9189
\PhpOffice\Common\Microsoft\PasswordEncoder -> \PhpOffice\PhpWord\Shared\Microsoft\PasswordEncoder
2021-01-01 16:23:58 +01:00
Libor M
b656720619
\PhpOffice\Common\Drawing -> \PhpOffice\PhpWord\Shared\Drawing
2021-01-01 16:15:24 +01:00
Libor M
c52686c243
\PhpOffice\Common\Text -> \PhpOffice\PhpWord\Shared\Text
2021-01-01 16:09:16 +01:00
Antoine de Troostembergh
cf808cb3fc
Fix merge issue
2020-12-31 21:56:45 +01:00
Antoine de Troostembergh
834a95c503
fix formatting
2020-12-30 20:29:43 +01:00
Yannik Firre
15ee5dee05
Fix missing space after if keyword
2020-12-30 14:02:29 +01:00
troosan
20856fc102
Merge pull request #1858 from oleibman/wordcoverage
...
Improve Word2007 Test Coverage
2020-12-29 23:56:22 +01:00
troosan
7c7d7fd405
Merge pull request #1983 from FCG-Group/allow_to_use_customized_pdf_libraries
...
allow to use customized pdf library
2020-12-29 23:41:23 +01:00
troosan
31d8b547c8
Merge pull request #1992 from Adizbek/develop
...
Fix image stroke in libreoffice 7.x
2020-12-29 23:32:32 +01:00
troosan
e3732ef610
Merge pull request #1907 from SailorMax/patch-2
...
Allow to redefine TCPDF object
2020-12-29 23:19:47 +01:00
troosan
b2335d2b73
Merge pull request #1796 from oleibman/odtchanges
...
ODT Changes
2020-12-29 23:18:23 +01:00
Ergashev Adizbek
18e41a1c4e
Update TemplateProcessor.php
2020-12-23 16:00:06 +05:00
Ciki
1f67c993e2
Fix deprecated warning for non-hexadecimal number
...
I've come across this deprecated warning when trying to save docx to pdf.. if cellBgColor is set to `auto` it should be converted back to `null` which has in practice the same functionality.
2020-12-22 12:12:18 +01:00
emhome
cc9dfb8630
add/setting page element border style.
2020-12-19 16:46:14 +08:00
SailorMax
c8de86a7ec
allow to use customized pdf library
2020-12-16 17:24:42 +03:00
Johannes Sochor
f7242e1250
fix image limit
2020-11-11 17:18:52 +01:00
Julien Aupart
b86c60694c
feat: Update addHtml to handle style inheritance
...
The aim is to get the output closer to the source html
2020-11-09 11:41:03 +01:00
Libor M
f2516b08b1
migrate from abandoned `Zend\Escaper` to `Laminas Escaper`
2020-10-18 13:16:43 +02:00
Libor M
4e4282a76e
refixed "must not contain any null bytes"
2020-10-18 10:56:24 +02:00
Libor M
b8ffe0477b
fix cs issue: "Arguments with default values must be at the end of the argument list"
2020-10-18 08:54:12 +02:00
Libor M
eaf2212aa8
fix format for coverage
2020-10-18 07:45:57 +02:00
Libor M
236c7c4499
fix code format
2020-10-17 17:34:51 +02:00
Libor M
bf1bb2b7ca
PHP 8.0 - fixed Error: Unknown named parameter $styles
2020-10-17 17:17:46 +02:00
Libor M
a36a429128
rewrite check to local file
2020-10-17 17:08:23 +02:00
Libor M
9c6cf6fdb6
PHP 8.0 fix - ValueError: file_exists(): Argument #1 ($filename) must not contain any null bytes
2020-10-17 15:56:40 +02:00
Libor M
93978211a1
PHP 8.0 - depracated libxml_disable_entity_loader, is disabled by default
2020-10-17 15:48:39 +02:00
Libor M
9dad1d20e8
PHP 7.4 - fixed invalid value in hexdec
...
avoid notice: "Invalid characters passed for attempted conversion, these have been ignored"
2020-10-17 14:05:52 +02:00
Libor M
e334ecf059
compatibility with phpmd 2.9
2020-10-17 13:39:22 +02:00
Yannik Firre
aa7c1d0fe8
FIX - When setComplexValue is not found
2020-09-22 16:28:52 +02:00
Sven Ahrens
58e0200fbd
Get fallback value instead of taking the last element
2020-09-02 12:12:48 +02:00
Sven Ahrens
3a7dd774a2
Add support for mc:AlternateContent
2020-09-01 18:13:25 +02:00
csk83
9a59cf0590
format check
2020-08-31 11:56:21 +08:00
troosan
ec1b3d35ee
Merge pull request #1818 from caugner/patch-1
...
Fixes PHPDoc @param and @return types for several Converter methods
2020-08-30 19:56:35 +02:00
csk83
d42854ddb6
chart doc/sample/code comments
2020-08-29 20:41:25 +08:00
csk83
6f1b18937c
code format
2020-08-26 12:50:08 +08:00
csk83
9945240ea8
Merge pull request #1 from Stephan212/develop
...
Add Option for Dynamic Chart Legend Position
2020-08-25 12:16:15 +08:00
Maxim
d6260988bd
Allow to redefine TCPDF object
...
Sometimes we need create TCPDF object with modified initial arguments.
This change allow rewrite only createExternalWriterInstance() in user defined TCPDF class.
2020-07-23 18:49:25 +03:00
lubosdz
69632b3f03
remove extra line at the end, which possibly causes CI job fail
2020-07-22 10:46:23 +02:00
lubosdz
f69885e7b9
fix bug - don't decode double quotes inside double quoted string
2020-07-22 10:04:12 +02:00
lubosdz
4448bda721
Better normalization for width of borders
2020-07-14 01:31:16 +02:00
lubosdz
70ad01550b
Make scrunitizer happier
2020-07-13 19:16:38 +02:00
lubosdz
38788e0c7e
Code style
2020-07-13 18:48:27 +02:00
lubosdz
889f4e3381
fix converting margin to incorrect unit (points instead of twips)
...
fix image alignment on float - relative to inner margin instead of page margin
2020-07-11 23:03:51 +02:00
lubosdz
3066d47003
Html parser (addHtml) - support vertical-align, valign
2020-07-11 22:47:40 +02:00
lubosdz
108c1cdc55
Html parser (addHtml) - support attributes start, type in ordered list <ol>
2020-07-11 17:20:36 +02:00
lubosdz
ca5f081302
Html parser (addHtml) - support horizontal rule <hr/>
2020-07-11 15:42:28 +02:00
lubosdz
e180cfe456
Html parser (addHtml) - support cellspacing, bgColor
2020-07-11 00:24:08 +02:00
lubosdz
701f770ab7
Html parser (addHtml) - support width in tables & cells
2020-07-10 23:44:25 +02:00
troosan
21f4bb3053
Merge pull request #1794 from ErnestStaug/image_conversion_support
...
Added support for "cloudConvert" images
2020-07-07 23:18:32 +02:00
troosan
250e206b59
Merge pull request #1775 from oleibman/rtfchanges
...
Add support for several features for the RTF writer
2020-07-06 08:36:38 +02:00
Owen Leibman
3738a6806e
Improve Word2007 Test Coverage
...
After this change, Writer/Word2007 is 100% covered.
One source change is required. Writer/Word2007/Style/AbstractStyle
has incorrectly searched Measurement Array using
in_array (which searches values) rather than array_key_exists (keys).
There was no test for this, and now there is.
3 changes in tests/PhpWord/_includes are borrowed from "ODT Changes"
(pull request 1796, not yet merged)
and "Fix PHPUnit Tests" (pull request 1771,
merged after work on this change was started).
Writer/Word2007/ElementTest was becoming too unwieldy. Tests for
Chart and FormFields were moved to their own members.
2020-04-27 21:29:27 -07:00
Owen Leibman
ba3d616282
Improve Test Coverage
...
Coverage for Writer/ODText is now 100%.
2020-04-23 17:25:56 -07:00
oleibman
6da3fd3c06
Correct Scrutinizer Warning
...
Type was declared incorrectly in comment.
2020-04-16 23:55:24 -07:00
Owen Leibman
41a5b74f93
Make Default Paper Configurable
...
Each section currently has a hard-coded default paper of A4.
It would make sense to allow the user to set this default,
and specify it in a configuration file, just as is done
with default font name and size.
2020-04-16 23:30:27 -07:00
Matze2010
258b9a65c8
fix
2020-03-02 06:10:14 +00:00
Matze2010
ad8eeccd72
remove dead code
2020-03-02 06:00:51 +00:00
Matze2010
726c8caf54
HTML checkbox input field
2020-03-01 18:15:27 +00:00
Ernestas Staugaitis
37c15e66cd
Some document have non-standard locale code
2020-02-17 11:44:27 +02:00
Ernestas Staugaitis
a0e57459dc
Some document have non-standard locale code
2020-02-16 22:12:34 +02:00
Owen Leibman
677e042c3a
Scrutinizer Workaroun
...
Attempt to work around demonstrably incorrect Scrutinizer analysis
(flags code as bug because "condition is always false"
even though Coveralls reports that code which would be
executed only if condition is true is indeed executed).
2020-02-06 20:41:40 -08:00
Owen Leibman
d5149b2867
Coveralls Changes
...
Changes to improve test coverage based on Coveralls report.
2020-02-06 19:20:13 -08:00
Claas Augner
1dee5f33cf
docs(Converter): fix @param allowing float
2020-02-04 20:36:03 +01:00
oe.sonnh
608730531f
Fix: Catastrophic Backtracking RegExp
2020-01-21 16:48:27 +07:00
oe.sonnh
d965a69601
Fix: CloneBlock regexp for different regexp engine with xml line-drop
2020-01-07 13:52:13 +07:00
Owen Leibman
46c41c5ac1
More Scrutinizer Changes
...
Still one report that I don't understand at all, and one I'm not sure of.
2020-01-05 15:05:00 -08:00
Owen Leibman
cfa29cc1c2
Applying Scrutinizer Suggestions
...
I do not understand one suggestion, and I believe one is wrong.
I will add comments to my ticket once this is pushed.
One that I can discuss up front
PhpWord/Style/Paragraph indicates that Indentation must be of type
\PhpOffice\PhpWord\Style\Indentation, but it can also be null.
My test for instanceof ... is one of the Scrutinizer reports.
I did not change PhpWord/Style/Paragraph, but this commit does so
by updating @var for indentation.
2020-01-05 13:52:20 -08:00
Owen Leibman
e24b2e1ba7
ODT Changes
...
Implement a number of features implemented in PhpWord,
but not yet supported in PhpWord ODT Writer.
1. Add default file to tests/PhpWord/_includes/XmlDocument.php to make it
considerably easier to test ODT changes (and Word2007 changes involving
files other that document.xml).
2. Page break before each section.
3. Page numbering start.
4. Font style for Headings.
5. Alignment for images.
6. Paragraph style for TextRun.
7. "Hide grammatical errors" for whole document.
8. Page layout for each section.
9. For each page layout, support user-specified page width, page height,
orientation, margin top, margin bottom, margin left, margin right.
10. Page header and footer.
11. Named colors.
12. NoProof font style.
13. Paragraph Style - spaceBefore, spaceAfter, lineHeight, pageBreakBefore,
indentation, text alignment.
14. Tab stops.
15. Basic support for some Fields (DATE, PAGE, NUMPAGES).
16. Link had an error in how it was handling internal links (needs leading #).
17. In addition to tests for all the above, added some tests for Tables.
Item 11 above needs 1 module from Pull Request 1775, which is targeted
for v0.18.0 but not yet merged, so the relevant module is also here.
Item 15 above needs 1 module from Pull Request 1774, which is targeted
for v0.18.0 but not yet merged, so the relevant module is also here.
Testing change from Pull Request 1771 is included here, but was
merged after my fork.
2020-01-05 10:27:45 -08:00
Ernestas Staugaitis
fa0ba2e2ab
Added support for cloud convert image inclusion
2020-01-02 00:34:30 +02:00
troosan
8b2e21b634
Merge branch 'develop' into fieldstyle
2019-12-09 22:56:08 +01:00
troosan
c52c7abb65
Merge branch 'develop' into rtfchanges
2019-12-09 21:10:31 +01:00
Michaël Dupont
4852028743
fix: typo in getFootnoteProperties() method name
...
Was "getFootnotePropoperties()".
Former bogus spelling is still working, albeit deprecated.
2019-12-09 11:29:39 +01:00
troosan
dfea4e12a6
Merge pull request #1766 from stefan-91/develop
...
Add support for ListItemRun in HTML writer
2019-12-08 20:38:03 +01:00
troosan
5940d18ab2
Merge pull request #1755 from oleibman/master
...
Improvements in RTF writer
2019-12-08 20:32:09 +01:00
troosan
d9cb88e987
Merge branch 'develop' into fixes-1750-block-with-images-inside
2019-12-08 14:35:14 +01:00
owen
5e64b26451
Additional Scrutinizer Recommendations
...
Some more editorial changes.
2019-12-05 23:24:03 -08:00