Skip to content
forked from lehner/gpdfx

gpdfx-ng - a graphical tool to crop a small piece of PDF as a PDF

Notifications You must be signed in to change notification settings

yishilin14/gpdfx-ng

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

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

About

gpdfx-ng - a graphical tool to crop a small piece of PDF as a PDF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.4%
  • Shell 0.6%