# <img width="128" src="logo.png"/>  Karp - KDE arranger for PDFs

Simple PDF editor which can select, delete, rearrange pages, merge PDF files and reduce file size.

<img src="extras/karp.gif"/>

Karp uses [Kirigami framework](https://invent.kde.org/frameworks/kirigami)

For arranging PDF files [libqpdf](https://qpdf.sourceforge.io) is used.  
To reduce PDF size Karp calls [GPL Ghostscript](https://www.ghostscript.com)  

#### Supported features
 * Merging PDF files, reordering
 * Reordering pages
 * Removing pages
 * Rotating pages
 * Reducing PDF file size
 * Optimizing images (if possible)
 * Viewing, editing PDF properties (metadata)
 * Protect PDF file with password

<img src="extras/reorder.gif"/>

#### Planned features
 * Editing bookmarks
 * Merging 2 PDFs: one for even pages and another one for odd pages
 * Resizing pages
 * Extracting images
 * Adding watermark
 * Adding page numbers or other labels
 * Improving image quality, text visibility


### Compiling from Source
#### Using kde-builder
Karp can be built using [`kde-builder`](https://develop.kde.org/docs/getting-started/building/kde-builder-compile/)
```
kde-builder karp
```

#### Using cmake
If you have all dependencies installed, you can use cmake to build it:
```
git clone https://invent.kde.org/graphics/karp && cd karp
cmake -B build
cmake --build build
./build/bin/karp
```

