Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
docxtemplater-image-module
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
npm
docxtemplater-image-module
Commits
dbbc5041
Commit
dbbc5041
authored
Apr 18, 2018
by
MaxRcd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated readme
parent
7af658c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
README.md
+3
-4
No files found.
README.md
View file @
dbbc5041
...
...
@@ -10,7 +10,7 @@ Installation
=============
You first need to install docxtemplater by following its
[
installation guide
](
https://docxtemplater.readthedocs.io/en/latest/installation.html
)
.
For Node.js install this package
For Node.js install this package
:
```
npm install open-docxtemplater-image-module
```
...
...
@@ -26,8 +26,7 @@ npm run uglify
Usage
=====
To render an image, your
**docx**
or
**pptx**
template should contain the text:
`{%image}`
Assuming your
**docx**
or
**pptx**
template contains only the text
`{%image}`
:
```
javascript
//Node.js example
var
ImageModule
=
require
(
'open-docxtemplater-image-module'
);
...
...
@@ -69,7 +68,7 @@ var buffer = doc
fs
.
writeFile
(
"test.docx"
,
buffer
);
```
Some notes regarding t
he template
:
Some notes regarding t
emplates
:
*
**docx**
files: the placeholder
`{%image}`
must be in a dedicated paragraph.
*
**pptx**
files: the placeholder
`{%image}`
must be in a dedicated text cell.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment