Tom Z?hner
7df25491ba
Add version 2.0 information
2.0
2018-02-24 19:40:42 +01:00
Tom Zöhner
f840cf3949
Merge pull request #32 from warren-bank/PR03-import-images
...
add support for RTFs that import images from external files
2018-02-24 19:33:28 +01:00
Tom Z?hner
b1a723afcb
Move asyncTask handling to parser
2018-02-24 17:32:33 +01:00
zoehneto
17b1f2c7cd
switch Document.render() to promise and unify rendering for all documents
2018-02-24 16:39:34 +01:00
Warren R Bank
5bb7eb613b
add support for RTFs that import images from external files
...
ex:
===
{\field {\*\fldinst import image.WMF}}
{\field {\*\fldinst import image.EMF}}
where:
======
* "image.WMF" is a relative URL path
* the external files are not read by the library
* a new hook function is added to the "settings" Object
that is passed to the "RTFJS.Document()" constructor
* "settings.onImport(relURL, cb)"
* this hook function is responsible for:
* reading data from the external file @ "relURL" into a blob
* mapping the file extension to a "keyword" (ex: "wmetafile")
* passing this information to the callback function with the desired height
* cb({keyword, blob, height})
demo:
=====
samples/04_rtf_imports/rtf.html
2018-02-24 16:39:34 +01:00
Tom Zöhner
a5e8b7ca42
Merge pull request #33 from tbluemel/typescript
...
Switch to Typescript
2018-02-24 16:29:31 +01:00
Tom Z?hner
f40573cac9
Update README and CHANGELOG
2018-02-24 16:27:42 +01:00
Tom Z?hner
934ef6508a
Port tests
2018-02-24 00:06:35 +01:00
Tom Z?hner
8aa43c1d04
Convert loggingEnabled to function to fix logging switch (Breaking Change)
2018-02-24 00:06:34 +01:00
Tom Z?hner
92a817c240
Fix parser bug which breaks in module environment
2018-02-24 00:06:34 +01:00
Tom Z?hner
305fc2d0d8
Fix error export for backwards compatibility
2018-02-24 00:06:34 +01:00
Tom Z?hner
bd9149a798
Convert emf.js to typescript
2018-02-24 00:06:34 +01:00
Tom Z?hner
00c0846375
Only keep bundles in dist
2018-02-24 00:06:34 +01:00
Tom Z?hner
1f08fc533a
Extract parser, decouple parser and renderer using document, split document into data container and api
2018-02-24 00:06:34 +01:00
Tom Z?hner
0cb8a871d6
Generate sourcemaps
2018-02-24 00:06:34 +01:00
Tom Z?hner
b4d4b16437
Convert wmfjs to typescript
2018-02-24 00:06:34 +01:00
Tom Z?hner
e45eaaeaf8
Fix logging enabled switch
2018-02-24 00:06:34 +01:00
Tom Z?hner
c97d45db63
Initial typescript conversion of rtf.js
2018-02-24 00:06:34 +01:00
Tom Z?hner
1b898a1cb9
Run lint for PRs
2018-02-24 00:06:12 +01:00
Tom Z?hner
f98afd40f2
Add travis ci config
2018-02-23 17:47:23 +01:00
Tom Z?hner
bb6bb7e586
Apply editorconfig to tests
2018-02-23 10:08:49 +01:00
Tom Z?hner
effb7652b6
Mention tests in README
2018-02-23 10:06:34 +01:00
Tom Z?hner
612cb84b88
Implement test runner
2018-02-23 10:01:08 +01:00
Tom Z?hner
18a03b5d8a
Implement test case generation
2018-02-23 08:54:27 +01:00
Tom Zöhner
11965c2ae9
Add author to package.json
2018-02-19 22:42:14 +01:00
Tom Zöhner
17ddbfee83
Add Changelog
2018-02-19 22:36:36 +01:00
Tom Zöhner
ef2e7f4a43
Merge pull request #31 from warren-bank/PR02-refactor-samples
...
refactor samples
1.0
2018-02-19 16:47:03 +01:00
Warren R Bank
0e4500e3d7
organize directory structure + relink
2018-02-19 07:39:22 -08:00
Tom Zöhner
f9a04b6cbb
Merge pull request #30 from warren-bank/PR01-editorconfig-eclint
...
`npm run cleanup` to cleanup whitespace according to `.editorconfig`
2018-02-19 16:22:13 +01:00
Warren R Bank
d9f2638707
post- cleanup
2018-02-19 07:18:58 -08:00
Warren R Bank
c26e28bdfd
updated: tools + configs
2018-02-19 07:16:31 -08:00
Warren R Bank
4c1e7785b0
tools + configs
2018-02-19 04:59:21 -08:00
Thomas Bluemel
cbe104c6ac
Add support for picture groups.
2018-01-26 13:04:38 -07:00
Thomas Bluemel
515ec545f9
Fix bezier logic.
2018-01-26 10:30:46 -07:00
Thomas Bluemel
456f682fd0
Add polygon support.
2018-01-25 16:56:02 -07:00
Thomas Bluemel
15925f178c
Add support for bezier lines.
2018-01-25 13:49:16 -07:00
Thomas Bluemel
a47a637403
More path fixes.
2018-01-25 12:51:53 -07:00
Thomas Bluemel
571dbbda9c
Fix rendering embedded EMF images.
2018-01-25 11:17:03 -07:00
Thomas Bluemel
48506586e3
A few path fixes.
2018-01-25 10:28:18 -07:00
Tom Z?hner
f3a3fd0fb2
Support fldrslt destination which is not child of a field
2018-01-25 11:09:25 +01:00
Tom Zöhner
fc507bcec6
Use correct logger
2018-01-25 10:43:48 +01:00
Thomas Bluemel
0ed7549210
Fix typos.
2018-01-24 23:59:21 -07:00
Thomas Bluemel
78ff5b7812
Fix a number of bugs and regressions.
2018-01-24 23:35:09 -07:00
Thomas Bluemel
842ecc1395
More EMF improvements.
2018-01-24 19:41:13 -07:00
Thomas Bluemel
6e3c80e30d
Log record names.
2018-01-23 19:52:15 -07:00
Thomas Bluemel
e9cb51b2a7
Some more improvements for EMF support.
2018-01-23 19:08:50 -07:00
Tom Z?hner
adf9615e69
Handle cases where characters aren't found in a codepage
2018-01-12 16:45:04 +01:00
zoehneto
2bcf4fce22
Add initial support for languages with double width characters
2018-01-10 14:30:56 +01:00
Tom Zöhner
80fc594632
Merge pull request #26 from mmicalle/patch-1
...
Use current charset instead of global codepage
2018-01-10 10:42:27 +01:00
mmicalle
15a237e293
Added safety test and removed codepage 42
...
as pointed by zoehneto in comments
2018-01-10 10:28:44 +01:00