瀏覽代碼

Added additional information about libreoffice and imagemagic.

tags/v1.0.0
Kalimuthu Selvaraj 5 年之前
父節點
當前提交
acc9d82b26
共有 1 個文件被更改,包括 30 次插入1 次删除
  1. 30
    1
      README.md

+ 30
- 1
README.md 查看文件

@@ -1,4 +1,4 @@
# convert-pdf-img
# document-convert

Converts `.ppt` `.pptx` `.odp` and `.key` file to `pdf or/and image(png, jpg, jpeg and etc..)`

@@ -7,6 +7,35 @@ Converts `.ppt` `.pptx` `.odp` and `.key` file to `pdf or/and image(png, jpg, jp
Please install [libreoffice](https://www.libreoffice.org/), [imagemagick](https://www.imagemagick.org/script/index.php) and might required [ghostscript](https://www.ghostscript.com/) for Mac os
**(Note: Please do restart your machine after installed all required software.)**

## LibreOffice test

libreOfficePath --headless --convert-to pdf --outdir outputDir sourceFile(test.pdf),

Windows

```
C:\\Program Files\\LibreOffice\\program\\soffice.exe or
C:\\Program Files (x86)\\LibreOffice\\program\\soffice.exe or
C:\\Program Files (x86)\\LIBREO~1\\program\\soffice.exe
```

Ubuntu

```
/usr/bin/libreoffice or
/usr/bin/soffice
```

Mac OS

```
/Applications/LibreOffice.app/Contents/MacOS/soffice
```

## Imagemagic test

convert -verbose -resize 1200 -density 200 test.pdf test-%d.png(%d inserts the images `scene number`)

## Usage Example

```javascript

Loading…
取消
儲存