Skip to content

Instantly share code, notes, and snippets.

@smoser
Created June 17, 2018 18:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smoser/099f46553c219c199947d9f7d36f56db to your computer and use it in GitHub Desktop.
Save smoser/099f46553c219c199947d9f7d36f56db to your computer and use it in GitHub Desktop.
A snap (snapcraft.yaml) for pdftk

PDFtk is a useful program for manipulating/creating pdf. It is not available in 18.04.

Creation of this followed Building Snaps From Archived Packages.

Build

snapcraft

Installation

snap install --devmode pdftk_*.snap
name: pdftk
version: '2.02-4'
summary: command-line tool for working with PDFs
description: |
More info at https://www.pdflabs.com/tools/pdftk-server/
command-line tool for working with PDFs. It is commonly used for
client-side scripting or server-side processing of PDFs.
This is simply created from 16.04 version of pdftk.
grade: devel
confinement: devmode
parts:
pdftk:
plugin: nil
parts:
archives:
plugin: nil
stage-packages:
- libc6
- libdb5.3
- libgcc1
- libgcj16
- libstdc++6
- pdftk
apps:
pdftk:
command: usr/bin/pdftk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment