Skip to main content

useful linux commands for pdf editor

pdfunite
       pdfunite merges several PDF (Portable Document Format) files in order of their occurrence on command line to one PDF result file.
EXAMPLE
       pdfunite sample1.pdf sample2.pdf sample.pdf
       merges all pages from sample1.pdf and sample2.pdf (in that order) and creates sample.pdf


pdftocairo
       pdftocairo [options] PDF-file [output-file]
DESCRIPTION
       pdftocairo  converts Portable Document Format (PDF) files, using the cairo output device of the pop‐pler PDF library, to any of the following output formats:
OPTIONS
       -png   Generates a PNG file(s)
       -jpeg  Generates a JPEG file(s)
       -tiff  Generates a TIFF file(s)
       -pdf   Generates a PDF file

pdfseparate
       pdfseparate extract single pages from a Portable Document Format (PDF).
       pdfseparate  reads  the  PDF  file PDF-file, extracts one or more pages, and writes one PDF file for each page to PDF-page-pattern, PDF-page-pattern should contain %d.  %d is replaced by the page  number.
EXAMPLE
       pdfseparate sample.pdf sample-%d.pdf
       extracts all pages from sample.pdf, if i.e. sample.pdf has 3 pages, it produces sample-1.pdf, sample-2.pdf, sample-3.pdf

Comments

Popular posts from this blog

Upgrade BeautifulSoup4 to compatible with Python 3.6

After upgraded to Python 3.6 from 3.5, I encountered BeautifulSoup (bs4) error, such as 'ImportError: cannot import name 'HTMLParseError'. Seems there's compatible problem for BeautifulSoup 4 version. Solution: Upgrade beautifulsoup 4 version to 4.6.0 Commands: $ pip3 install --upgrade beautifulsoup4 Deep in: Install pip3 command: $ sudo apt install python3-pip

Atom community packages recommendation for Python development

Below are Atom community packages I installed for Python development. They are covered most of functions u need. Take this post as an backup.  

Solved: Pyperclip could not find a copy/paste mechanism for your system.

OS: Debian 9 Python version: 3.5 After import pyperclip module, encounter error message ' Pyperclip could not find a copy/paste mechanism for your system. '. Solution: install xsel utility $ sudo apt install xsel then reboot Python IDLE3, import pyperclip, solved. *************** Install pip/pyperclip: $ sudo apt install python3-pip $ sudo pip3 install pyperclip