Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
gpdfx-ng - a graphical tool to extract parts of a PDF as a PDF
===============================

`gpdfx-ng` is a GTK application written in Python using the Poppler library
to render the PDF. It uses pdfTeX and PDFCrop to create the extracted
PDF.

# Features
My improvements to the ancient `gpdfx`:

- Add a "Open" button (open file).
- Add a "Auto Fit" botton. It helps to fit the pdf file according to the size of the window.
- Add a button "Viewport". It copies the "viewport" of the selected area to the clipboard.
- Add a status bar.

# Install
Dependency
- Python2 or Python3
- poppler-glib
- python-gobject
- gtk3
- python-cairo

The one line script `install.sh` helps to install (copy) `gpdfx-ng` to your PATH,
in you want.

# Usage
- Run `gpdfx-ng` and open a pdf file. You can also pass a file name the through command line argument.
- Select an area.
- Export the selection to a pdf file, or copy the "viewport" to the clipboard.

## Viewport
If you want to insert the selected area of your pdf file in a LaTeX document, you may find the following codes useful.
```
\begin{figure}[ht]
\includegraphics[clip, page=1, viewport=1 2 3 4,
width=1.0\textwidth, fbox]{paper.pdf}
\end{figure}
```

Upstream
--------
- https://github.com/lehner/gpdfx
- Author: Christoph Lehner (clehner // users.sourceforge.net)
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
set -x
sudo install -Dm 755 src/gpdfx-ng /usr/local/bin/gpdfx-ng
10 changes: 0 additions & 10 deletions readme.txt

This file was deleted.

73 changes: 0 additions & 73 deletions src/clipdfx

This file was deleted.

242 changes: 0 additions & 242 deletions src/gpdfx

This file was deleted.

Loading