The Xpdf tools use the following exit codes: 0 No error. v Print copyright and version information. For ubuntu, theres an easy way for doing this: sudo apt-get install poppler-utils 2. Password Specify the user password for the PDF file. Install pdfinfo First you need to have pdfinfo in your system. Password Specify the owner password for the PDF file. listenc Lits the available encodings -opw "-f" and "-l", only destinations in the page range areĮncoding-name Sets the encoding to use for text output. If that doesn’t exist, it looks for a system-wide config file, typically /etc/xpdfrc (but this location can be changed when pdfinfo is built). It first tries to find the user’s private config file, /.xpdfrc. dests Print a list of all named destinations. Pdfinfo reads a configuration file at startup. rawdates Prints the raw (undecoded) date strings, directly from the PDF file. isodates Prints dates in ISO-8601 format (including the time zone). pdfinfoĭoes not attempt to extract strings matching from the textĬontent. Referenced by the PDF objects such as Link Annotations are listed. Currently, this is limited to Annotations. Only the URL types supported by Poppler are (Implies -struct.) -url Print all URLs in the PDF. ![]() Note that extracting text this way might be slow for big struct-text Print the textual content along with the document structure of a struct Prints the logical document structure of a Tagged-PDF file. (This is the "Metadata" streamįrom the PDF file's Catalog object.) -custom Prints custom and standard metadata. box Prints the page box bounding boxes: MediaBox, CropBox, BleedBox, TrimBox,Īnd ArtBox. l number Specifies the last page to examine. Page (and, optionally, the bounding boxes for each requested page) are The "-f" and "-l" options, the size of each requested OPTIONS ¶ -f number Specifies the first page to examine. We've already got the dependencies for Evince, so assuming you are still in the poppler directory go back up to home with cd or to wherever you want to download Evince.The options -listenc, -meta, -js, -struct, and -struct-text only If you use sudo make install you can still uninstall at any time by entering the source directory (so keep it!) and typing sudo make uninstall Evince The Info' dictionary contains the following values: title subject keywords author creator producer creation date modification date In addition, the following information is printed: tagged (yes/no) form. If you ever want to uninstall this, you can conveniently do so with sudo dpkg -r poppler as checkinstall will politely inform you. Pdfinfo prints the contents of the Info' dictionary (plus some other useful information) from a Portable Document Format (PDF) file. When it's done, you can use sudo make install but even better, you can use checkinstall to make this installation known to dpkg (yay!) so: sudo apt install checkinstall ![]() If it exits without errors you can run: make If that doesn't work, try searching online for the error message. The errors might be illuminating eg 'thing-you-need not found' in which case you can try sudo apt install thing-you-need and try again. ![]() Here you will get errors if I missed anything from my list of dependencies above. If you are really keen on tidiness, you can make a new directory for the two source directories you are going to end up with, for example mkdir poppler and enter it: cd poppler.įirst download the encoding files (no need to compile these) to the current working directory wget Įxtract (it does untar cleanly): tar -xf poppler-data-0.4.7.tar.gzĮnter the directory cd poppler-data-0.4.7Īnd magically send the files to the right locations in /usr/share with: sudo make installĭownload & extract the main package: wget Open a terminal so you are in your home directory. (more dependencies may be found on other systems but I'm working from a 2-week old installation, so hopefully this will be enough for most) Poppler How to upgrade Poppler & Evince to fix problems opening password-protected PDF filesįirst install all these prerequisites for compiling: sudo apt install g++ autoconf libfontconfig1-dev pkg-config libjpeg-dev libopenjpeg-dev gnome-common libglib2.0-dev gtk-doc-tools libyelp-dev yelp-tools gobject-introspection libsecret-1-dev libnautilus-extension-dev To be able to open password-protected pdfs with Evince on my own system I found (after much testing) that I had to compile the latest release of Poppler from source and also compile the latest release of Evince, building it against the newer Poppler.
0 Comments
Leave a Reply. |