owen
ecfafd7576
RTF Changes
...
1. Converter is currently expecting colors as strings of hex digits,
but PhpWord allows specification of colors by named constant, so
result is random when one of those is used. This change handles
all the named colors.
2. Table needs \pard at end; formatting may be wrong without it.
3. RTF writer will no longer ignore paragraph style for TextRun.
4. RTF writer will no longer ignore paragraph and font style for Title.
5. Add support for RTF headers and footers.
6. Add support for right-to-left in font.
7. Add support for PageBreakBefore and LineHeight for paragraphs.
8. Add support for PageNumberingStart for sections.
There are test cases for all of these changes.
2019-12-03 07:46:16 -08:00
Samuel BF
7628b41fdf
Add support for basic fields in RTF writer.
2019-09-10 11:24:59 +02:00
Samuel BF
c0f8cae55c
Fixing RTF writers : numbers should be printed as integers and not float.
...
This is specified in the spec, for example here :
http://www.biblioscape.com/rtf15_spec.htm#Heading2
« The delimiter marks the end of an RTF control word, and can be one of the following : [...]
* A digit or a hyphen (-), which indicates that a numeric parameter follows. The subsequent digital sequence is then delimited by a space or any character other than a letter or a digit. »
2018-12-18 15:04:25 +01:00
Ralph02
d9d79c0666
RTF writer: Round getPageSizeW and getPageSizeH to avoid decimals
2018-11-20 19:57:35 +01:00
troosan
6475812e82
fix documentation
2018-07-14 03:28:09 +02:00
smaug1985
3906be19ee
Added Support for Indentation & Tabs on RTF Writer. ( #1405 )
...
* Added Support for Indentation & Tabs on RTF Writer.
* add decimal tab writer + tests
* Update CHANGELOG.md
2018-07-14 02:13:45 +02:00
troosan
bb70eb0b4c
fix docx parsing
2018-03-18 12:37:39 +01:00
troosan
77f2b16bc1
update copyright to 2018
2018-03-08 23:52:25 +01:00
troosan
274f50ce5a
Add unit tests & add array type checks
2017-12-04 22:30:49 +01:00
troosan
0459670a9c
Enable php-cs-fixer in build & fix resulting warnings ( #1099 )
...
* enable php 7.1 build
* upgrade to dompdf/dompdf 0.8.*
* update phpunit & hide output during tests
* run code coverage analysis on 1 build only
* Add php-cs
* Update Copyright
2017-11-04 22:44:12 +01:00
troosan
0beeb275fe
Add support for changing the document language ( #1108 )
2017-09-27 00:40:08 +02:00
troosan
8ce1a19ec4
make FontStyle basedOn paragraph if the paragraph is set on the font ( #926 )
...
* make FontStyle based on paragraph if it set
* replace tab with spaces
* basedOn not correctly set if FontStyle is based on other FontStyle
* Fix warnings
2017-09-17 21:38:00 +02:00
Roman Syroeshko
2bcfacfbf9
Updated copyright.
2016-07-31 12:35:08 +04:00
Roman Syroeshko
e2ea1eec7c
Fixed tests.
2016-07-08 23:21:38 +04:00
Roman Syroeshko
3f1e0ac4a7
#483 . Output escaping for RTF.
2016-07-08 22:56:59 +04:00
Roman Syroeshko
f359825cb7
Reviewed and merged #658 .
2016-01-23 19:16:34 +04:00
Roman Syroeshko
43fb23d896
Copyright update.
2015-12-05 21:26:01 +04:00
Roman Syroeshko
505cc76406
Fixed build.
2015-10-10 19:22:19 +04:00
Roman Syroeshko
94c0d02330
Next round of refactoring of alignment-related functionality.
2015-10-10 19:06:23 +04:00
Roman Syroeshko
4eefb60362
#51 (updated tests, refactored a little).
2015-02-21 18:30:00 +04:00
Roman Syroeshko
4445fd3258
Replaced `array_key_exists` with `isset` for better performance.
2014-10-10 21:10:29 +04:00
Roman Syroeshko
8056b6926c
[CHANGED] Docblock for pass-by-reference parameters.
2014-07-03 16:11:15 +04:00
Roman Syroeshko
d0a609bc95
[CHANGED] Added "@return" annotation where it as missed.
2014-07-03 15:40:24 +04:00
Ivan Lanin
384107e7cf
Ability to define document protection and new `Metadata` subnamespace
2014-06-16 11:58:05 +07:00
Ivan Lanin
8c2b099dbc
Merge `Shared\Drawing` and `Shared\Font` into `Shared\Converter`
2014-06-14 10:54:33 +07:00
Ivan Lanin
63d53ac910
Use section "style" instead of "settings" for consistency
2014-06-08 16:44:46 +07:00
Ivan Lanin
893843969f
Refactor elements to move set relation Id from container to element
2014-06-08 03:00:53 +07:00
Ivan Lanin
09a143fe71
QA: Type check fix for RTF section style and docblock comment fix for AbstractContainer
2014-06-06 18:56:09 +07:00
Ivan Lanin
a2ec62a79f
Section: Ability to set paper size, e.g. A4, A3, and Legal
2014-06-06 18:31:01 +07:00
Ivan Lanin
49f4e6ba64
RTF Writer: Support for sections, margins, and borders #249
2014-06-06 12:53:01 +07:00
Ivan Lanin
d97602fa98
Reduce duplications and fix some docblocks
2014-06-05 23:47:39 +07:00
Ivan Lanin
2205377259
#245 : Basic table support in RTF writer
2014-05-31 13:33:38 +07:00
Ivan Lanin
87f071d1b6
#72 : Basic RTF Reader
2014-05-28 21:27:20 +07:00
Ivan Lanin
a65c3c3cf1
RTF Writer: Ability to write image
2014-05-23 19:22:40 +07:00
Ivan Lanin
e00b551aa2
Breakdown HTML Writer to head and body parts and more cyclomatic complexity reductions
2014-05-23 16:48:11 +07:00
Ivan Lanin
e46fecffdd
RTF Writer: Ability to write document properties
2014-05-23 09:05:10 +07:00
Ivan Lanin
553371f088
Type hinting and docblock update
2014-05-19 14:27:55 +07:00
Ivan Lanin
5511378eca
#200 : Ability to use a config file to store various common settings
2014-05-16 00:59:38 +07:00
Ivan Lanin
4d9e4062c3
QA: Scrutinizer dedup
2014-05-15 14:41:08 +07:00
Ivan Lanin
04a62f3255
QA: Code cleanup and some additional tests
2014-05-14 19:41:44 +07:00
Ivan Lanin
6ba6ed40fc
Reactivate php_sim in Scrutinizer and fix some minor issues
2014-05-14 08:40:21 +07:00
Ivan Lanin
e03e121e85
#196 : RTF link styling fixes
2014-05-14 00:42:05 +07:00
Ivan Lanin
1ee43da4de
#196 : RTF link styling
2014-05-13 23:41:16 +07:00
Ivan Lanin
7ae8c3cb81
Refactoring: Word2007 table and marginborder style writer
2014-05-13 14:57:04 +07:00
Ivan Lanin
8745c5ee30
Change behaviour of `set...` function of boolean properties; Some bug fixing based on Scrutinizer; New `Row` Word2007 style writer
2014-05-13 12:50:18 +07:00
Ivan Lanin
4b1a16006d
#196 : Ability to add links and page breaks in RTF
2014-05-13 02:48:44 +07:00
Ivan Lanin
f8f98cccab
#237 : Ability to define table width (in percent and twip) and position
2014-05-13 01:32:44 +07:00
Ivan Lanin
e589961e68
#158 : Convert UTF8 text to Unicode before writing RTF (support UTF8 in RTF)
2014-05-12 23:12:07 +07:00
Ivan Lanin
55e715b5b1
Add variable type hints
2014-05-12 15:54:10 +07:00
Ivan Lanin
c9179d681f
Refactor elements and containers
2014-05-12 01:36:28 +07:00