Skip to content

Commit 9096a30

Browse files
committed
Update readme.md
1 parent b585da0 commit 9096a30

File tree

2 files changed

+32
-31
lines changed

2 files changed

+32
-31
lines changed

nimPDF.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
packageName = "nimPDF"
2-
version = "0.4.3"
2+
version = "0.5.0"
33
author = "Andri Lim"
44
description = "PDF document generation library written in nim"
55
license = "MIT"

readme.md

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -14,41 +14,39 @@ nimPDF implements the following features(see [demo.pdf](https://github.com/jangk
1414

1515
nimPDF version 0.4.0 introduces many breaking changes, see [migration guide](migration.md) to help you change your code.
1616

17-
* **images**
17+
* **Images**
1818
- PNG -- ~~use [LodePNG](lodev.org/lodepng), still in C~~ now written in nim
1919
- JPEG -- use [uJPEG (MicroJPEG) -- KeyJ's Small Baseline JPEG Decoder](http://keyj.emphy.de/nanojpeg), still in C
2020
- BMP -- use [EasyBMP](http://easybmp.sourceforge.net), already ported to nim, support 1bit, 4bit, 8bit, 16bit, 24bit, and 32bit images
2121
- beside transparency from original image(such as from PNG), you can adjust individual image transparency as easy as other elements in your document
2222

23-
* **text and fonts**
24-
- support TTF/TTC font subsetting -- use [Google sfntly](code.google.com/p/sfntly), ported(partially) to nim and modified
25-
- you can easily tell the library to look for fonts in certain folder(s)
26-
- you only need to ask for font family name and it's style, the library will try to find the right one for you(if avilable)
27-
- text encoded in UTF-8 if you use TTF/TTC
23+
* **Text and fonts**
24+
- Support TTF/TTC font subsetting -- use [Google sfntly](code.google.com/p/sfntly), ported(partially) to nim and modified
25+
- You can easily tell the library to look for fonts in certain folder(s)
26+
- You only need to ask for font family name and it's style, the library will try to find the right one for you(if avilable)
27+
- Text encoded in UTF-8 if you use TTF/TTC
2828
- 14 base font in PDF use Standard,MacRoman,WinAnsi encoding
2929
- TTF/TTC fonts can be written vertically if they have vertical metrics
3030

3131
* **Path construction**
32-
- straight segments, Bezier curves, elliptical arcs, roundrect
33-
- join styles and miter limits
34-
- dash patterns
35-
- path clipping
36-
- arbitrary path bounding box calculation(i use it to implement gradient too)
37-
- construct path from mathematical function - taken from [ C# GraphDisplay](http://www.codeproject.com/Articles/58280/GraphDisplay-a-Bezier-based-control-for-graphing-f)
32+
- Straight segments, Bezier curves, elliptical arcs, roundrect
33+
- Join styles and miter limits
34+
- Dash patterns
35+
- Path clipping
36+
- Arbitrary path bounding box calculation(i use it to implement gradient too)
37+
- Construct path from mathematical function - taken from [ C# GraphDisplay](http://www.codeproject.com/Articles/58280/GraphDisplay-a-Bezier-based-control-for-graphing-f)
3838

3939
* **Color spaces**
4040
- Gray, RGB, CMYK
41-
- alpha channel for text, path, and images too!
42-
- linear gradient to fill any closed shape
43-
- radial gradient to fill any closed shape
41+
- Alpha channel for text, path, and images too!
42+
- Linear gradient to fill any closed shape
43+
- Radial gradient to fill any closed shape
4444

4545
* **Interactive Features**(see demo folder)
4646
- Page Labels
4747
- Document Outline
4848
- Hyperlinks
49-
- Text annotation
50-
- Encryption(protect document with password)
51-
- choose between ARC4-40, ARC4-128, AES-128, AES-256 encryption mode
49+
- Text annotation
5250
- Form Field:
5351
- TextField
5452
- Combo Box
@@ -58,17 +56,20 @@ nimPDF version 0.4.0 introduces many breaking changes, see [migration guide](mig
5856
- Check Box
5957

6058
* **Coordinate Space**
61-
- top-down mode
62-
- bottom-up mode
63-
- unit measured in point, inch, and mm
64-
65-
* **others**
66-
- output to file or memory using nim stream module
67-
- images, fonts, and other resources search path(s)
68-
- document compression using flate decode(use lodePNG compressor)
69-
- transformation and graphics state
70-
71-
* **unimplemented features**
59+
- Top-down mode
60+
- Bottom-up mode
61+
- Unit measured in point, inch, and mm
62+
63+
* **Others**
64+
- Output to file or memory using nim stream module
65+
- Images, fonts, and other resources search path(s)
66+
- Document compression using flate decode(use lodePNG compressor)
67+
- Transformation and graphics state
68+
- Encryption(protect document with password)
69+
- choose between ARC4-40, ARC4-128, AES-128, AES-256 encryption mode
70+
- Table generator
71+
72+
* **Unimplemented features**
7273
- CIE based color space
7374
- patterns(this can be achieved using PDF primitives and path clipping)
7475
- ~~encryption~~
@@ -77,7 +78,7 @@ nimPDF version 0.4.0 introduces many breaking changes, see [migration guide](mig
7778
- ~~other encoding beside UTF-8~~(nim has [encoding](http://nim-lang.org/docs/encodings.html) module, i will use it someday)
7879
- basic text formating(will be implemented as separate layer)
7980
- ~~radial gradient~~ and multi color gradient
80-
- table generator(as in FPDF)(will be implemented as separate layer)
81+
- ~~table generator(as in FPDF)(will be implemented as separate layer)~~
8182
- ~~document outline~~
8283
- permission
8384
- digital signature

0 commit comments

Comments
 (0)