Tag Info

Hot answers tagged

6

I found this script which you can modify to attach a signature to an existing PDF file. http://emmanuel.branlard.free.fr/work/linux/dev/SignPDF/SignPDF You can also download it from this pastebin URL: http://pastebin.com/9TL5pvBA 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 ...


6

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 ...


5

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 ...


5

Since evince lacks options to explicitly control its own window management (as do most applications), the next approach is to control evince externally from the window manager itself. Assuming GNOME with metacity as the window manager, you'll have to use devilspie to get the window matching features. Install devilspie from your official Ubuntu ...


5

This behavior is caused by a known bug in poppler (reported at least here and here) related to unicode characters. There is no fix at the moment, you just have to follow the bug tracker.


4

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: lpq # check for jobs on the default printer % lpq mfc-8480dn is ready no entries # check for any jobs ...


4

You should compare the following file between your account and an account for which printing works: ~/.config/evince/print-settings (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.


3

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 ...


3

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) ...


3

Evince is updating the pdf automatically. No need to restart it. At least mine does in Debian 8.1. When it's not reloading automaticaly 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 setted to 65536 by /etc/sysctl.d/30-tracker.conf.


3

I've had a reasonably good experience with uPdf. Installation 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. Usage 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 ...


3

Use a different tool to open the PDF. kpdf is one example. There you can disable "Follow DRM". Afterwards you can save protected PDFs.


2

Ubuntu sets up evince to use AppArmor, which prevents it from accessing certain files even though the files have appropriate permissions. See Evince fails to start because it cannot read .Xauthority for a different but related problem. Do you have a custom TeX installation? If so, evince is probably preventing from writing the font files by AppArmor. See ...


2

I suspect this is an error with the NTFS driver on this system. I would make sure to use the most current version of the NTFS driver: http://www.tuxera.com/community/ntfs-3g-download/ And see if the problem persists. If it does, here is the form for the ntfs-3g driver: http://tuxera.com/forum/ Troubleshooting log OK, the back and forth in the comment ...


2

Quick idea involving evince and your bash script: dir=$(dirname $source) rm -f ~/evince_save ln -s $dir ~/evince_save And when you "Save as" in evince, save into ~/evince_save. As you observe, evince will use the same directory every time, but the automation script will have replaced its link each time; you don't have to do any navigating and the file ...


2

If these C source file are not yet under revision control bring them under revision control (mercurial would be my suggestion). If they are under some outdated revision control system (SVN, CVS) convert the source base. (After that,) clone the repository and make branch 'revision', use the normal editor with syntax highlighting (should be as readable as ...


2

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 ...


2

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 ...


1

I fixed the issue by removing the default evince and installing the evince-gtk package.


1

Those messages come from evince. They are emitted when evince detected a PDF file change and it reloads the file. You can workaround this via redirecting stderr of evince to /dev/null. That means you can search for the evince call in the vim-latex plugin source and replace something like evince <OPTS> <INPUT> with: evince <OPTS> ...


1

By combining: St├ęphane Chazelas comment this question https://stackoverflow.com/questions/25166223/open-firefox-new-tab-in-same-window-through-terminal sh command cause it wouldn't work otherwise I got it to work by adding to keyboard shortcuts (not xbindkeys). So all the steps are: Control center --> scroll down to Keyboard Shortcuts --> Press Add and ...


1

Whenever I open a PDF file that I have read, evince (3.4 in my case) opens on the last page that I viewed from that that is what seems to be happening in your case as well. This information is not stored in the PDF (as with some viewers do with EPUB files), because if you rename the file, evince starts again the first page. So you probably are using some ...


1

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.


1

(Would have left as a comment to the updf answer, but stackexchange's policy on "karma" prevents me commenting, but does not prevent me leaving an answer). updf is really good for this. Having used preview on MacOS to "sign" documents, updf offers the closest user experience to this. I didn't want to add a third party ppa to my system, so got updf running ...


1

Had the same problem, and your answer pointed me in the right direction. I found a different solution which does not require editing the apparmor configuration. Instead of using a symlink to redirect access to /home, use the bind option on mount. I added the following line to /etc/fstab: /elsewhere/home /home none bind Once you do this, apparmor won't ...


1

Here's an approach using xdotool to change the window's class then you can move it to Desktop 5 with XMonad or Devil's pie. #!/bin/sh $1 & NEW_WINDOW_PID=$! WINDOW_EXISTENCE=$(xdotool search --pid ${NEW_WINDOW_PID} 2> /dev/null) #is empty if the window hasn't finished opening. COUNTER=0 while [[ -z $WINDOW_EXISTENCE && $COUNTER < 6 ]] ...


1

A pure xmonad configuration is possible for that. In your .xmonad/xmonad.hs you need to setup a manageHook for that. I included more than one "rule" on purpose. theManageHook = composeAll [ -- send applications to the right workspace className =? "Evince" --> doShift "5", className =? "Pidgin" --> doShift "4" --- more settings ... ] ...


1

In the spirit of do one thing and do it well, Devil's Pie was created for these kinds of issues with any standards-compliant WM (such as properly-configured XMonad, also see the FAQ). Some configuration along the lines (adopted from this tutorial, I do not know if this way of matching Evince actually works, maybe some other way (see the docs) is needed) of ...


1

Debian stable runs does not jump to newer versions of packages very quickly. Poppler Versions: Debian Stable: 0.12.4 (2 yrs old) Debian Testing/Unstable: 0.16.7 (10 months old) Current Release: 0.18.4 (2 months old) Bleeding Edge: 0.19.3 (6 days old) So you may be running to the bug in poppler you found by in your search. I would try the Debian ...



Only top voted, non community-wiki answers of a minimum length are eligible