forked from josch/img2pdf
fix markdown in readme
This commit is contained in:
parent
619b604d5a
commit
acfb3270ab
1 changed files with 9 additions and 9 deletions
18
README.md
18
README.md
|
@ -103,25 +103,25 @@ Installation
|
||||||
|
|
||||||
You can install the package using:
|
You can install the package using:
|
||||||
|
|
||||||
$ pip install img2pdf
|
$ pip install img2pdf
|
||||||
|
|
||||||
If you want to install from source code simply use:
|
If you want to install from source code simply use:
|
||||||
|
|
||||||
$ cd img2pdf/
|
$ cd img2pdf/
|
||||||
$ pip install .
|
$ pip install .
|
||||||
|
|
||||||
To test the console script without installing the package on your system,
|
To test the console script without installing the package on your system,
|
||||||
simply use virtualenv:
|
simply use virtualenv:
|
||||||
|
|
||||||
$ cd img2pdf/
|
$ cd img2pdf/
|
||||||
$ virtualenv ve
|
$ virtualenv ve
|
||||||
$ ve/bin/pip install .
|
$ ve/bin/pip install .
|
||||||
|
|
||||||
You can then test the converter using:
|
You can then test the converter using:
|
||||||
|
|
||||||
$ ve/bin/img2pdf -o test.pdf src/tests/test.jpg
|
$ ve/bin/img2pdf -o test.pdf src/tests/test.jpg
|
||||||
|
|
||||||
Note that the package can also be used as a library as follows:
|
Note that the package can also be used as a library as follows:
|
||||||
|
|
||||||
import img2pdf
|
import img2pdf
|
||||||
pdf_bytes = img2pdf('test.jpg', dpi=150)
|
pdf_bytes = img2pdf('test.jpg', dpi=150)
|
||||||
|
|
Loading…
Reference in a new issue