19 Commits
Author SHA1 Message Date
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 bd9149a798 Convert emf.js to typescript 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 c97d45db63 Initial typescript conversion of rtf.js 2018-02-24 00:06:34 +01:00
Warren R Bank 0e4500e3d7 organize directory structure + relink 2018-02-19 07:39:22 -08:00
Thomas Bluemel cbe104c6ac Add support for picture groups. 2018-01-26 13:04:38 -07:00
Thomas Bluemel a47a637403 More path fixes. 2018-01-25 12:51:53 -07:00
Thomas Bluemel e9cb51b2a7 Some more improvements for EMF support. 2018-01-23 19:08:50 -07:00
Tom Z?hner 29c22f4dfb Don't use jquery.binarytransport.js for rtf sample page for better compatability with old devices 2016-06-29 12:59:25 +02:00
Tom Z?hner 4066890d96 update README and rtf sample page 2016-05-16 16:00:37 +02:00
Tom Z?hner 6aebc5d4af convert adobe symbol encoding to unicode 2016-05-16 15:56:00 +02:00
Thomas Bluemel 1dd1f790a2 Add support for opaque text background color and text color. 2016-02-25 12:20:16 -07:00
Thomas Bluemel 9b883d671f Update documentation for dependencies. 2016-02-17 09:10:35 -07:00
Tom Z?hner 1dba119f84 implement codepage support using cptable.js 2016-02-14 20:19:43 +01:00
Thomas Bluemel 4f41cc06b8 Fix alignment bug. 2015-09-19 12:05:05 -06:00
Thomas Bluemel 6288b751e1 Add support for hyperlinks. 2015-09-19 11:27:13 -06:00
Thomas Bluemel 00d56ab086 Add support for text alignment. 2015-09-19 07:27:26 -06:00
Thomas Bluemel cba49c0fab Initial commit. 2015-09-17 20:33:55 -06:00