What library's it use? Ghostscript is used by Xournal for that; not sure what repo, but it is available.