Skip to content

Commit

Permalink
📝 docs: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
victorsoares96 committed May 24, 2023
1 parent b2598fc commit 1731f9d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ This library provides compress your PDFs using ghostscript

## Installation

Download ghostscript binaries available in releases page inside this repository. Example name: `gs_10.01.linux/windows.zip` or run: `npx compress-pdf --fetchBinaries [win32/linux]` to download binaries to inside **lib_folder/bin/gs**

Then, extract and appoint:

```sh
npm install compress-pdf
```
Expand All @@ -23,12 +19,6 @@ import path from 'path';
import fs from 'fs';
import { compress } from 'compress-pdf';

/**
* After this run:
* `npx compress-pdf --fetchBinaries [win32/linux]`
* This will download properly binaries to your current os.
*/

(async () => {
const pdf = path.resolve(__dirname, 'A17_FlightPlan.pdf');
const buffer = await compress(pdf);
Expand Down

0 comments on commit 1731f9d

Please sign in to comment.