- 1 Ubuntu PDF viewer
- 2 Change the default viewer
- 3 PDF reader
- 4 PDF crop
- 5 Remove certain pages
- 6 PDF highlight and annotation
- 7 Merge multiple pdf files into one pdf file
- 8 Arrange, merge, split, rotate, crop
- 9 Rotate using pdftk
- 10 Editing
- 11 Print scale
- 12 Print multiple pages per sheet: pdfnup
- 13 Extract tables from pdf
- 14 Split view
- 15 Adobe reader
Ubuntu PDF viewer
- Okular (install through app store, annotation function, trim margins/selection) Best
- Adobe Reader
- Qoppa PDF Studio
- Foxit Reader (By default it will be installed to ~/opt/foxitsoftware/foxitreader). It freezes my Pop_OS 20.04.
- MuPDF (lightweight, seems no thumbnail option, no GUI interface)
- GNU GV
- Atril Document Reader
- ePDF Viewer
- Google Drive
- Master PDF Editor
Change the default viewer
Right Click(pdf)-> Properties-> Open With-> Okular (or anything) -> Set as default.
The default one Evince seems slow when I try to view odroid magazine.
MuPDF is good at speed. Okular is good at annotation.
To change it to be the default program for opening PDF files, right click the file and select Property. Go to the Open With tab. Choose your file viewer.
sudo apt-get install mupdf
Keyboard shortcuts for mupdf (man mupdf) or http://mupdf.com/docs/manual. Note these are case-sensitive.
W - fit to width H - fit to height L - rotate page left (clockwise) R - rotate page right (counter-clockwise) 12g - go to page 12 >,< - go to the next or previous page +,- - zoom in or out / - search for text n,N - Find the next or previous search result. h,j,k,l - Scroll page left, down, up, or right.
Tip: to copy a text, use the right mouse button to select a text. Then use Ctrl+c to copy it. It seems it does not work all the time:(
Other pdf viewer choices are
- Allow to have custom colors for page background and document text.
- The custom colors works well on Macbook Pro (2880 x 1440). Background color #494949 and text color #494949.
- xpdf. old-fashioned. slow.
- evince. slow.
- okular (KDE/Qt application)
- Annotation tool such as highlighter is under Tools > Review (F6).
- Allow to change its background color. Though it works, the result using 'invert colors' option is not good on Dell U2312HM. We can try other option like 'dark & light colors' where we can change the individual colors for the background (say #494949) and text.
- Not as fast as mupdf. It can open a variety of ebook formats.
- MacOS should work but it needs to install KDE.
- Able to show file properties eg Page Size (eg 50x36 in), Creator (eg PowerPoint), Producer (eg Mac OS X Quartz PDFContext), PDF version (eg 1.3)
- qpdfview. slow. Used by Raspbian june 2018.
- Foxit or PDF-XChange Viewer(needs wine)
pdfcrop (briss is better)
sudo apt-get install texlive-extra-utils pdfcrop input.pdf output.pdf # no margins, works but seems too tight pdfcrop --margins 5 input.pdf output.pdf # crop pdf but keep 5 bp from each side of page pdfcrop --margins '5 10 20 30' input.pdf output.pdf # left, top, right and bottom margins of 5, 10, 20, and 30 pt # To actually crop something away, use negative values in the argument for crop. # For example, to crops 50 pts from the left, top, right, bottom (in this order). pdfcrop --margins '-50 -50 -50 -50' input.pdf output.pdf
One problem I found is (for newer PDFs with meta data) --margins initially removes the entire margin before implementing the adjustment. This will cause some pages being chopped out.
This java program gives me a better control on cropping
- Download the file briss-0.9.tar.gz (8.7 MB) and extract it
- Run java -jar briss-0.9.jar
- Load the pdf file. It will ask what pages to be excluded from merging (This function does not work). Click 'Cancel' to continue.
- It will automatically create two rectangle areas; one for odd (left) pages and the other for even (right)pages
- Now we work on the left page first. Enlarge the selection to suit our need. Then right click & choose 'Select/Deselect rectangle' (a dash line will be added to the edges of the rectangle) and then 'Copy rectangles'.
- Work on the right page. Right click and choose 'Delete rectangle'. Then 'Paste rectangles'.
- Now we can click 'Action -> Preview' to preview the result. If we are satisfied with the result, we can click 'Action -> Crop PDF'. Done.
Remove certain pages
sudo apt install pdftk # remove pages 10 to 25 from a PDF file pdftk myDocument.pdf cat 1-9 26-end output removedPages.pdf # remove the last page pdftk infile.pdf cat 1-r2 output outfile.pdf # remove the last 2 pages pdftk infile.pdf cat 1-r3 output outfile.pdf
PDF highlight and annotation
Install Okular by
sudo apt-get install okular
To highlight a line, click F6 (Tools -> Review) to turn on the annotation tool bar (it will be shown on the left hand side of the documentation). You can then click
- the 4th icon to highlight a line (it may not be able to select the right texts we want. But when it works the result is nice)
- the last icon to draw an ellipse or a rectangle (to change from an ellipse to a rectange you can click Settings -> configure Okular... -> annotation)
Another method is to use a windows program and run it using Wine. See the discussion here.
Android & iOS
Xodo Free. Cross platform.
Merge multiple pdf files into one pdf file
pdfunite in-1.pdf in-2.pdf in-n.pdf out.pdf
Arrange, merge, split, rotate, crop
Rotate using pdftk
First I convert jpg files to pdf using imagemagic.
convert *.jpg INPUT.pdf
Then I install pdftk and follow this to do a rotation.
$ sudo apt install snapd $ sudo snap install pdftk # Suppose I want to rotate page 1 to page 2. $ /snap/bin/pdftk INPUT.pdf rotate 1-2west output OUTPUT.pdf
- Download Master PDF Editor 4 For Linux (Free To Use Version)
- Xournal, Handwritten Notes And PDF Annotation Tool Xournal++ Update Brings New Floating Toolbox
Print > Scale > slce to page
Print multiple pages per sheet: pdfnup
The program is similar to psnup.
sudo apt install texlive-extra-utils
Extract tables from pdf
It is useful if we want to compare two pages side by side.
- Use split-window view from Adobe reader.
- How to compare two PDF documents side by side from foxit (Windows, mac, Linux).
- Using browsers