You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/full_doc.rst
-20Lines changed: 0 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -137,26 +137,6 @@ Docxgen methods
137
137
138
138
This requires to include Downloadify.js, that needs flash version 10. Have a look at the *output* function if you don't want to depend on it. This function has the advantage that it works regardless of the file size
139
139
140
-
getImageList()
141
-
142
-
this gets all images that have one of the following extension: 'gif','jpeg','jpg','emf','png'
143
-
Return format: Array of Object:
144
-
[{path:string,files:ZipFile Object}]
145
-
146
-
You should'nt call this method before calling **applyTags()**, because applyTags can modify the images or their path when replacing images with other (particularly when qrCode is set to true, which is not the default case). You can call this method after **applyTags()** without any problems
147
-
148
-
setImage(path,imgData)
149
-
150
-
path
151
-
Type:"String"
152
-
Path of the image, given by getImageList()
153
-
imgData
154
-
Type:"String"
155
-
imgData in txt/plain
156
-
157
-
This sets the image given by a path and an imgData in txt/plain.
158
-
You should'nt call this method before calling **applyTags()**, because applyTags can modify the images or their path when replacing images withother (particularly when qrCode is set to true, which is not the default case). You can call this method after **applyTags()** without any problems
Copy file name to clipboardExpand all lines: docs/source/platform_support.rst
-27Lines changed: 0 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,36 +17,9 @@ Internet explorer is not supported -even IE10- (basically because xhr Requests c
17
17
18
18
You can test if everything works fine on your browser by using the test runner: http://javascript-ninja.fr/docxgenjs/test/SpecRunner.html
19
19
20
-
Firefox has an other implementation of the xml parser, that's why all tests don't pass now.
21
-
However, all of the functionality works on Firefox too.
22
-
The output files are not exactly the same byte wise but the generated XML is correct.
23
-
24
20
Dependencies
25
21
============
26
22
27
23
1. **docxgen.js** uses [jszip.js](http://stuk.github.io/jszip/) to zip and unzip the docx files
28
24
29
25
2. Optionally, if you want to be able to name the output files, you can use **Downloadify.js**, which is required to use method download. Be informed that it uses flash, this is why the method is not recommended. This method is howewer useful because a lot of browsers are limited for the download size with the Data-URI method. **Update**: I will probably implement in the future a way to use the FileSaver API, with [FileSaverJS](http://eligrey.com/demos/FileSaver.js/)
30
-
31
-
3. Optionnaly, if you want to replace images by images situated at a particular URL, you can use QR codes. For example If you store an image at http://website.com/image.png , you should encode the URL in QR-Code format. . You can even use bracket tags in images. http://website.com/image.png?color={color} will take the *Tags[color]* variable to make a dynamic URL. For this too work, you will need [jsqrcode](http://github.com/edi9999/jsqrcode "jsqrcode repositoty forked") and include the following files, in this order (only for browser support, node support already comes out of the box):
0 commit comments