Back to Blog
Install pdfinfo on linux5/17/2023 ![]() ![]() Last of all I suggest to make an alias for pdftk in your. ![]() to show the help menu type schroot -c xenial - pdftk -help Now it's time to include the necessary xenial apt repositories. The xenial file system is now available on /srv/chroot/xenial. ![]() Now the show begins, while installing go for a coffee: sudo debootstrap xenial /srv/chroot/xenial Next create the xenial directory (if you choose another directory alter the conf file above): sudo mkdir -p /srv/chroot/xenial Verify that the new conf-file is written cat /etc/schroot/chroot.d/nf ![]() Now write a nf file into the /etc/schroot/schroot.d directory: cat The last package is required to install a debian-like-system. in the Xenial (Ubuntu 16.04) environment.įirst install the schroot package sudo apt install schroot debootstrap I know that this is a pretty overload - it takes about 500MB but you can use this environment to install further elderly programs, libs, compilers, etc. However, those who would like to avoid the snap or docker solution may use schroot. The script above will fail due to missing gcc-6 libraries on Ubuntu 20.04. Then run it in a terminal with chmod 755 pdftk_installer To run this script, copy it in an editor and save it e.g. This script will download the packages to /tmp and install from there using an apt installcommand! Afterwards the packages in the /tmp directory will be removed. libgcj17_6.4.0-8ubuntu1_b \Įcho -e " try it in shell with: > pdftk \n" # description: bash script to install pdftk on Ubuntu 18.04 for amd64 machinesĮcho -e "Packages for pdftk downloaded\n\n" Note that I've downloaded only amd64 packages! #!/bin/bash I've written a small bash script which automatise the installation on Ubuntu 18.04. In any case, PDF Chain was dropped from Bionic as well as pdftk. It needs a working pdftk executable but doesn’t care how it works under the hood. No, PDF Chain is a C application and not directly affected by the deprecation of GCJ.Depending applicationsĪ commenter raised the valid question whether the depending PDF Chain applications is affected by this change: P.S.: I tried this with the non-headless OpenJDK 9 in Ubuntu Trusty but I see little reasons why it shouldn't work with headless OpenJDK 10 in Bionic. Most JREs shipped in Deb packages, including those in Canonical’s package repositories, take care of that during installation, though it appears to be buggy in some OpenJDK packages. (Optional) You can teach Linux to execute JAR (Java Archive) files via update-binfmts(8). This pdftk fork also supports builds for older JRE versions (≥ 7 according to the documentation). when you distribute it to other systems, you need at least a working (headless) JRE like from the default-jre-headless package as well as the Java libraries libcommons-lang3-java and libbcprov-java: sudo apt install default-jre-headless libcommons-lang3-java libbcprov-javaĪgain you can use a different JRE than default-jre-headless. Run the JAR package: java -jar build/jar/pdftk.jar -help Place symbolic links to the required libraries into the lib folder: mkdir lib Of course you can use a different supported JDK than the one supplied by default-jdk-headless.ĭownload Marc Vinyal’s pdftk fork: git clone Install the build tools and dependencies: sudo apt install git default-jdk-headless ant \ The package contains a wrapper script placed in /usr/bin, so you can invoke it as normally: pdftk. I built a Deb package (for Bionic only) with suitable dependencies: sudo add-apt-repository ppa:malteworld/ppa Users of earlier releases can download it manually from the package repository and install it with their favourite package manager. Attempting to install pdftk will install this package instead. Starting with Cosmic (Ubuntu 18.10), Ubuntu ships pdftk-java from the same source code as below as a replacement. Install from a future Ubuntu release (recommended) I found a fork that depends on OpenJDK or similar instead. The pdftk package in Ubuntu (and its upstream Debian package) was dropped due to its dependency on the now deprecated GCJ runtime. ![]()
0 Comments
Read More
Leave a Reply. |