Il 09/12/2014 15:26, Martin Vaeth ha scritto: > viv...@gmail.com <viv...@gmail.com> wrote: >> - The project only has 20 commit, last one 8 months ago >> https://github.com/m-click/mcpdf.git > The "project" is just a few lines anyway: merely a wrapper to the library. > All the work happens in the itext library which AFAIK is the same project > (in different versions) for pdftk as for mcpdf. > Of course, the new library version might contain new bugs, > as your example seems to suggest (did pdftk work with this example?) my example work daily in a box with very few updated and some builds at least 2 years old, and it's the simplest one. yet it's working well from a lot of time.
pdftk is NOT only a wrapper to itext (a 9 years old version [2]) it also include a java library for crypto and it's own management in c++ files. now, without counting the java crypto lib the c++ files weight around 8k LOC [3] itext may have been evolved, but calling a 90 LOC java program a "drop in" replacement for pdftk seem adventurous ... for comparison `pdftk --help` output is 556 lines of text. so we can conclude that the "project" is NOT what it claims to be and a replacement (even using modern itext with licensing problems) will weight at least at least 556 lines? > >> find /g/portage/ -name '*.ebuild' -exec egrep 'sys-devel/gcc.*gcj' {} + > Searching also through all layman (remote) overlays with > > $ eix -#Rry 'sys-devel/gcc[^ ]*gcj' > > I found besides the mentioned > > app-text/pdftk > dev-java/ecj-gcj > dev-java/gcj-jdk > > one further dependency: > > $ eix -Rvle imule > net-p2p/imule [1] > [...] irouter? ( sys-devel/gcc[gcj] ) [...] > P2P sharing software which connects through I2P and Kad network [...] > [1] "zugaina" layman/zugaina [2] http://sourceforge.net/projects/itextpdf/files/itext-paulo/itext-paulo-155/ [3] $ LC_ALL=C wc -l *cc 542 attachments.cc 498 passwords.cc 4482 pdftk.cc 2433 report.cc 137 win32_utf8_include.cc 8092 total