Using Xournal you can annotate PDFs and add custom images (e.g. a transparent PNG). Although it is used for taking freehand notes and drawing, it can also annotate PDFs.
Install Xournal through the Ubuntu Software Center
Select "Annotate PDF" from the File menu and select your PDF file to be signed.
Click the "Image" button in the ...
I had the same issue and I couldn't print any images either with most GTK+ applications.
The latest GTK3 (3.22) requires the package gtk3-print-backends for printers to be listed in GTK3 print dialogs.
Installing that package did the trick for me.
I'm running Arch Linux.
A lot of people recommend Xournal, but i found it to work as a version of Gimp that i can't use. Thus if you are familiar with Gimp, i would recommend trying it.
You should have a file with the signature (even a picture taken with the phone or webcam), and a file with the document to be signed. The latter is going to be in PDF format, that can be opened by ...
There is the pdfnup (or pdfjam) command line tool. You can install it from the repositories of your distribution (sudo apt-get install pdfjam for Debian-based distributions, yaourt -S pdfnup on Arch etc).
The default options will take the input PDF file and produce an output PDF with two input pages per page:
pdfnup -o output.pdf input.pdf
TL,DR: it's Apparmor's fault, and due to my home directory being outside /home.
Under a default installation of Ubuntu 10.04, the apparmor package is pulled in as an indirect Recommends-level dependency of the ubuntu-standard package. The system logs (/var/log/syslog) show that Apparmor is rejecting Evince's attempt to read ~/.Xauthority:
Jul 5 17:58:31 ...
I'm surprised to find the premier free office software for Linux mentioned nowhere on this page. LibreOffice Draw will open a PDF and allow you to insert an image. If your signature file already exists in the file system as a PNG with a transparent background, it's a snap to get it onto a page, change the size and move it into place in Draw. Draw will save ...
Using zathura with tabbed might help here:
Tabbed provides a "simple generic tabbed fronted to xembed aware applications" and zathura is a simple PDF viewer that is XEmbed-aware.
A much more heavyweight approach would be letting a browser provide the tabbing while having the chapters displayed using plugins, e.g. using mozplugger (even with evince) or ...
It's worth mentioning Xournal which has a nice UI and allows adding text, images, and hand-written notes to PDF files. The only problem I've had is it doesn't seem to handle text from native PDF forms very well.
I found this script which you can modify to attach a signature to an existing PDF file.
You can also download it from this pastebin URL:
There is also this Q&A on AskUbuntu that has many other methods for doing this. The Q&A is titled: How to put a ...
qpdfview is a lightweight tabbed document viewer that should suit your needs.
It's in the default Ubuntu and Debian repos. More recent versions can be found in the following PPAs:
experimental builds for Ubuntu 12.04 with backported poppler
Zathura (archwiki) is a minimalist document viewer (PDF/PS/Djvu/CB). It can display documents from stdin.
cat foo.pdf | zathura -
The version on my system saves the pipe temporarily to /tmp, so the displayed document is seekable. The temporary file is cleaned up afterward and has reasonably secure permissions, but these could be security concerns.
$ ls ...
Solved it. The pages were being rendered on the computer because I had chosen a LaserJet driver from the Hewlett-Packard section of the CUPS printer management interface, implemented using Gutenprint. This worked fine for B&W text but poorly for color areas.
After still not seeing a "PostScript" option in the configurator, I chose "Raw", and this works: ...
I've had a reasonably good experience with uPdf.
sudo add-apt-repository ppa:atareao/updf
sudo apt-get update
sudo apt-get install -y updf
Then fix a bug by editing 2 lines in a Python script.
Launch uPdf, select the Add an image tool, draw a rectangle around the area where you want the signature to go and select the image file with ...
Because someone is a bad programmer. The developer of one of the software layers (either evince itself or one of the many libraries it uses) has either misused a function or programmed a function to emit spurious messages. Somehow it mostly works.
Unfortunately, these messages are extremely common in Gnome software. Just ignore them.
Poke mupdf with a HUP signal after the document changes (e.g. after recompiling it, or use entr or something to note the filesystem change)
pkill -HUP mupdf
or with more complication one might write an open-or-signal-mupdf script.
While putting my own signature commands into a shell script, I was looking for a way to interactively select the area where the signature should go. Luckily I found this question and the script of Emmanuel Branlard contains the idea on how to do it (with xv). I implemented the following points:
use ImageMagicks display instead of xv
use stdbuf -oL and the -...
The feature was added just one month ago (August 10, 2018) to evince1.
I guess it will be available in the next evince version 3.31.
The shortcuts in the addition are S to add text annotation
and Ctrl+H to add highlight annotations.
1 See Merge Request “Allow Keybinding for highlighting annotation”.
On Debian (Bullseye) I've found the simplest (?) free way is to use Scribus 1.5.5 which can easily import a PDF (this may be possible in earlier releases, too):
Import the PDF, then make an image box where you want your signature, choose your signature file, resize as necessary and then export as a new PDF (of course, you can use a text box to place ...
I don't think you can control those settings via cli options (I'd love to be proven wrong though...)
You could however set the zoom, dual mode etc via the file attributes1 before launching evince. You do that via gio set so e.g. if you run:
gio set myfile.pdf metadata::evince::continuous 0
gio set myfile.pdf metadata::evince::dual-page 1
gio set myfile.pdf ...
You don't say in your question but are you able to print using other applications? The command line? I'd confirm that you're printer is still configured and working correctly by doing the following:
1. confirm that printer is setup and accessible using:
# check for jobs on the default printer
mfc-8480dn is ready
# check for any jobs ...
You should compare the following file between your account and an account for which printing works:
(and/or backup your copy and replace with one from another user). If that doesn't help you might try to replace the whole ~/.config/evince directory.
Here is how I would remove the OCR-ed text should I have to...
First, you need to know, that OCR-ed text in a PDF is not a layer, but a special text rendering mode. The following screenshot from the official PDF specification lists all available text rendering modes:
For more background, please see these answers of mine on StackOverflow:
"How can we make ...
I was able to figure out the fonts, using pdffonts (from Xpdf):
[$] pdffonts Music\ Tech\ -\ October\ 2016.pdf
Syntax Warning: Could not parse ligature component "facebook" of "facebook_sign" in parseCharName
Syntax Warning: Could not parse ligature component "sign" of "facebook_sign" in parseCharName
name type ...
For completeness, there is an alternative script to do this, which does not convert the pdf to a (low quality) image, in contrast to the one mentioned so far: https://github.com/martinruenz/signpdf
My experience with the other solutions was:
Xournal messed with the pdf (it seemed to work after building from source though)
The script SignPDF converts pdfs ...
There are multiple ways to get rid of the OCRed text in the file.
Export the scanned images from the PDF and recombine them. You can use pdfimages for the extraction (from the poppler-utils package) and convert (from imagemagick) to convert them back:
pdfimages toc.pdf toctmp
convert toctmp*.pbm newtoc.pdf
Print to PDF (with PDF support from cups-pdf)
When I tried to access the link to your sample scanned file earlier, it didn't work for me. However, meanwhile I downloaded it, and had a closer look.
1. Using pdfimages -list to investigate the embedded images
If you run a recent (!) version of the Poppler variant of pdfimages, you'll have the -list parameter available. This parameter prints a useful list ...
Evince is updating the pdf automatically. No need to restart it. At least mine does on Debian 8.1.
When it's not reloading automatically anymore, maybe you ran out of inotify watches. Increase it with:
echo fs.inotify.max_user_watches=100000 | sudo tee -a /etc/sysctl.conf; sudo sysctl -p
Mine is set to 65536 by /etc/sysctl.d/30-tracker.conf.