Hot answers tagged

8

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


7

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

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

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.


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

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


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


2

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: release versions daily builds experimental builds for Ubuntu 12.04 with backported poppler


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


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

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.


2

There is the pdfnup command line tool.


2

This appears to be a known bug: Gnome Bugzilla #626406. There's been no activity on the bug since 2013, so probably your best bet is to go over there and make some noise. Unfortunately, the usual rule in open source is that low-priority bugs are more likely to get fixed if you fix them yourself. The last comment suggests that the actual software change ...


1

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


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

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

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. On Ubuntu: Install Xournal through the Ubuntu Software Center Open Xournal Select "Annotate PDF" from the File menu and select your PDF file to be signed. Click the "Image" button in the ...


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



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