See here for reference: http://okular.kde.org/news.php
The new version includes an option to save annotations to the PDF file itself. That's why I am very eager to try out. Is there any PPA from which I could install this new version?
Edit: Following 808sound's advice I managed to install Okular 0.15 on precise. The dependencies installed with the upgrade caused several issues with other programs. Fixing these issues required uninstalling Okular and downgrading packages that were upgraded with it. You might want to install Okular from the Kubuntu Backports PPA instead, although in this case you won't be able to export annotations to PDF. See below for more information. Please keep this in mind before choosing the source you want to install the latest Okular from.
Small remark: BlaXpirit's answer will provide you with the latest Okular minus the annotation feature. For this specific functionality to work you will have to follow 808sound's answer.
I backported poppler 0.20.5 to Ubuntu 12.04, compiled Okular 0.16.2 (edit: now updated to 0.17) against it, and put them in a ppa. To use it, add the ppas
ppa:kubuntu-ppa/backports
andppa:kalakris/okular
:Now update the package index and upgrade okular:
This version allows me to export annotations to PDF. Since these packages are compiled for precise, there should be no trouble with other dependencies, unlike the solution that suggests installing packages from quantal.
Please read the following paragraph very carefully. This answer shows a way to upgrade Okular to 0.15 (with support for exporting annotations to PDF) on Ubuntu 12.04. Note that (as the OP has mentioned) the other solution regarding the Kubuntu backports PPA will get version 0.15 of Okular but will NOT give you the functionality to export annotations to PDF, which was something that the OP wanted. Unfortunately, you will find that this new functionality in Okular 0.15 is a bit limited, and it may not encode certain types of annotations into your PDF documents. In addition, upgrading can cause compatibility issues with fonts, etc. Thus, you should think twice before trying this.
To continue and try Okular 0.15 for yourself, you may want to first make a file
old_packages.txt
containing a list of your currently installed packages/versions (if you forget this, don't worry):To prepare for the upgrade, add the following two lines to
/etc/apt/sources.list
Then run the following commands:
If you get any errors, try this (repeatedly until the Okular install succeeds):
After, this typing
should show version 0.15.x. Finally, to prevent unexpected stuff from getting added/upgraded, you should probably comment out the two added lines in
/etc/apt/sources.list
and doPlease be warned that this procedure can cause other packages to be updated from the Quantal repository, creating compatibility issues with fonts, etc. The comments below this answer contain more information about this.
If you want to uninstall Okular 0.15 and undo all these changes to your packages, it is fairly straightforward. You should first do
At this point, you could use the
old_packages.txt
file you initially created to downgrade all of your packages to their previous versions (see here for the details). Or you can do the following nice procedure (detailed in an answer to a question about rolling back Ubuntu).Edit
/etc/apt/preferences
and add the followingFinally, do
You should now be back to your original 12.04 packages/versions.
That's easy. Add
ppa:kubuntu-ppa/backports
to your software sources and you'll be able to install KDE 4.9 software along with Okular 0.15.0I followed the suggestion by user135805 and works flawlessly. Only difference to the tutorial pointed, I am using trusty and kubuntu backports repos. To sum up,
edit /etc/apt/sources.list:
edit /etc/apt/preferences.d/okular:
IMPORTANT, edit: /etc/apt/apt.conf.d/00aptitude
otherwise you will mess up your packages
edit: /etc/apt/sources.list.d/kubuntu-ppa-backports-precise.list
perhaps some of the entries in /etc/apt/preferences.d/okular are not needed, but it workded for me this way. After editing you have to do
hope this helps.
The feature you quote seems to require poppler 0.20. I don't know if there's a backport for 12.04.
I've been able to have it working thanks to your own comment, so I'm writing here some more information. Hopefully this could help you and others. You should add Quantal repositories "main" and "universe", then update libpoppler packages, okular and libokularcore1abi1. Note that even if you previously updated Okular to 0.15 from ppa:kubuntu-ppa/backports (as I did), you can still update it once again after you added Quantal "universe" repository. Make sure that your Okular installation comes from Quantal repository, otherwise it won't work.
Another though lengthy way to do the installation is using package priorities with APT. This link really helps:
http://blog.sleeplessbeastie.eu/2012/10/08/ubuntu-precise-install-youtube-dl-package-using-quantal-repo/
Using that procedure you can install only the packages required for Okular to work and avoid the updating of other libraries. The annoying thing is that you have to set permissions one file at a time and it consumed quite a while because you have to install the whole KDE environment. At the end it was not that much but prepare to spend at least one hour in front of the terminal.
So far I have not had any conflicts and no other upgrades from quantal.