Skip to content

Commit

Permalink
Version 0.1.10 - Some of the new features planed for 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziv-Barber committed Jul 18, 2013
1 parent aa30ab9 commit 66f2669
Show file tree
Hide file tree
Showing 4 changed files with 235 additions and 16 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ better to wait for more stable releases if you want to improve it.

- Generating Microsoft PowerPoint document (.pptx file):
- Create PowerPoint document with one or more slides.
- Add text and images (png only) based objects to each slide.
- Support both PPT and PPS.
- Add text blocks.
- Add images.
- Can declare fonts, alignment, colors and background.
- Support shapes: Ellipse, Rectangle, Line, Arrows, etc.
- Support hidden slides.
- Generating Microsoft Word document (.docx file):
- Create Word document. You can add one or more paragraphs to the document and you can set the fonts, colors, alignment, etc.
- Generating Microsoft Excel document (.xlsx file):
Expand Down Expand Up @@ -257,6 +260,12 @@ https://groups.google.com/forum/?fromgroups#!forum/node-officegen
<a name="a8"/>
## History: ##

- Version 0.1.10:
- PowerPoint:
- Supporting more image types.
- Supporting hidden slides.
- Allow changing the indent for text.
- Bug: All the text messages for all type of documents can now have '<', '>', etc.
- Version 0.1.9:
- Bug: Fix the invalid package.json main file.
- PowerPoint: Allow adding shapes.
Expand Down
5 changes: 4 additions & 1 deletion examples/make_pptx.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ slide.addText ( 'Office generator', { y: 'c', x: 0, cx: '100%', cy: 66, font_siz

slide = pptx.makeNewSlide ();

slide.show = false;
slide.addText ( 'Red line', 'ff0000' );
slide.addShape ( 'ellipse', { fill: 'ff0000', line: 'ffff00', y: 50, x: 50 } );
slide.addText ( 'Red box', { color: 'ffffff', fill: 'ff0000', line: 'ffff00', y: 100 } );
Expand All @@ -52,12 +53,14 @@ slide.addShape ( 'line', { line: '000088', y: 170, x: 150, line_head: 'triangle'
slide.addShape ( 'line', { line: '000088', y: 190, x: 150, line_tail: 'triangle' } );
slide.addShape ( 'line', { line: '000088', y: 210, x: 150, line_head: 'stealth', line_tail: 'stealth' } );
slide.addShape ( 'line', { line: '008888', y: 210, x: 150, line_head: 'stealth', line_tail: 'stealth', flip_vertical: true } );
slide.addText ( 'Red box', { color: 'ffffff', fill: 'ff0000', line: 'ffff00', y: 350, x: 200, shape: 'roundRect' } );
slide.addText ( 'Red box', { color: 'ffffff', fill: 'ff0000', line: 'ffff00', y: 350, x: 200, shape: 'roundRect', indentLevel: 1 } );

slide = pptx.makeNewSlide ();

slide.addImage ( path.resolve(__dirname, 'image1.png' ), { y: 'c', x: 'c', cy: 294, cx: 420 } );

slide = pptx.makeNewSlide ();

var out = fs.createWriteStream ( 'out.pptx' );

pptx.generate ( out );
Expand Down
Loading

0 comments on commit 66f2669

Please sign in to comment.