ac5b15d0e3
Mandatory Sections
2019-07-31 08:48:02 +01:00
c97d15cb9f
Remove create table helper function
2019-06-25 01:21:28 +01:00
dfe986331d
Make media return a picture run instead
2019-06-23 22:36:01 +01:00
816cb54b14
Optimize XML output by properly constructing objects to send to the xml library so that it can produce proper empty elements.
...
Rework the way attributes are stored in ImportedXmlComponent to match elsewhere (required allowing for a null xmlKeys in the XmlAttributeComponent interface).
Rework the way paragraphs get added to the end of table cells if needed.
The goal in both reworks is to not mess around with the objects output from `prepForXml` if we can avoid it.
Made the output of RunProperties, ParagraphProperties, TableCellProperties, TableRowProperties, and TableProperties all optional based on whether they contain any attributes or children. Changed code in PageBorders, TableCellMargin, and TableCellBorders that implemented this same thing by overriding `prepForXml` so that it uses the new XmlComponent subclass instead.
Removed commented out code that attempted to fix-up XML output and make proper empty elements.
Fixed all affected tests.
Turn off `no-null-keyword` in the linter as we need to use null to signal to the `xml` library to create an empty element with no attributes (`undefined` will not work in its place).
Fixes #306
2019-04-09 05:27:18 -04:00
8db52212ab
Remove id from media
2018-12-24 16:50:53 +00:00
7980f14efb
Introduce some functional programming techniques
2018-11-02 02:51:57 +00:00
9cfd835171
More tests
2018-11-02 00:42:49 +00:00
61411fd0f3
Add tests
2018-11-01 02:22:32 +00:00
9c66db97ff
Use single media instead of multiple
2018-10-23 00:31:51 +01:00
e68bc50e6e
style fixed
2018-08-22 10:39:13 -03:00
e9e42011cd
Merge branch 'master' into master
2018-08-22 08:04:45 -03:00
eb9cc767c6
Merge from master
2018-08-21 20:59:20 +01:00
bf5bcea607
Make add image support base64 strings
2018-08-15 22:20:43 +01:00
3d91c84966
alphabetized import sources
2018-08-14 11:28:01 -03:00
f91fd5921f
merge with upstream master
2018-08-14 11:27:08 -03:00
36157bb8db
Added optional drawingOptions parameter to addImage and addImageFromBuffer methods. This way it can be passaed to Image constructor.
2018-08-14 11:06:17 -03:00
675192b86f
Refactor image to accept Buffer only
2018-08-12 23:07:31 +01:00
7b43551148
Merge pull request #123 from dolanmiu/feat/h4-update
...
Feat/h4 update
2018-08-10 00:30:53 +01:00
ad356d2759
Add ignores so it doesnt get generated in documentation
2018-08-09 23:40:11 +01:00
89df3c48e0
Fix linting errors
2018-08-09 23:22:03 +01:00
3436a1584c
Merge branch 'master' of https://github.com/h4buli/docx into feat/h4-update
...
# Conflicts:
# package.json
# src/file/document/body/body.ts
# src/file/document/body/section-properties/section-properties.ts
# src/file/file.ts
# src/file/media/media.ts
# src/file/styles/external-styles-factory.ts
# src/file/table/table-cell.ts
2018-08-09 23:21:24 +01:00
f264e4d0f7
Add scale method to image
2018-08-09 21:58:50 +01:00
e10c20fa42
Add image to run
2018-08-09 01:55:50 +01:00
12c8cb93f6
Clean up API
2018-08-07 01:25:28 +01:00
5f22950721
Change image API so that it now sends Images
2018-08-03 00:01:42 +01:00
3fcfc29e3f
Style formatting
2018-08-02 02:21:15 +01:00
3f1eda60eb
Rename data to buffer
2018-08-02 02:14:57 +01:00
0d5e9ce9d8
Offload media methods into Media static object
...
Simplified File handling of images
2018-08-02 02:09:00 +01:00
c797ed9c25
media: fixed bug when media size can be decimal
...
- produces invalid docx document
2018-06-29 00:32:01 +02:00
f1ac646518
Merge branch 'feature/multiple-sections' of https://github.com/h4buli/docx into feat/multiple-headers
...
# Conflicts:
# src/export/packer/compiler.ts
# src/file/content-types/content-types.ts
# src/file/document/body/section-properties/header-reference/header-reference.ts
# src/file/document/body/section-properties/section-properties.ts
# src/file/file.ts
# src/file/media/media.ts
2018-06-22 22:59:38 +01:00
0b963ec3b8
feature: add support to add mutiple sections to the document inc. headers and footers
...
- write missing tests
2018-06-21 12:03:34 +02:00
dadd8c122f
fixed formatting styles
2018-05-17 15:32:15 +02:00
573dd753a7
Fix styling and linting
2018-05-06 03:19:36 +01:00
2119ae769b
Images: Extend API for working with images ( #5 )
...
* extend creating image using buffer and dimensions from outside
* remove empty space
2018-04-20 15:59:06 +02:00
388a8404f5
Rename for further workaround
2018-01-31 20:12:09 +00:00
320cb1c418
Add workaround for files which only have an interface
2018-01-31 20:08:36 +00:00
c873abfe18
Fix referenceId +1 error and spelling mistakes
...
Add demo
2018-01-30 01:16:48 +00:00
8b8c664f0f
Add header objects and demo
2018-01-29 02:56:35 +00:00
079334f71b
Make fields readonly
2018-01-29 01:55:25 +00:00
e93d6799fd
Made project Prettier compliant
2018-01-23 01:33:12 +00:00
3dc6e71aaf
Add png support
2018-01-22 22:05:20 +00:00
ef05024f2f
Add image dimensions
2018-01-22 20:42:57 +00:00
2d02f51f25
Offset reference id a little
2018-01-10 00:35:26 +00:00
a3945bc7f1
Media addMedia method
2018-01-09 21:57:10 +00:00
0355afe11c
Rename IData to something more reasonable
2017-12-30 21:18:55 +00:00
2358139a6b
Change docx folder to more appropriate "file" folder
2017-12-20 01:03:20 +00:00