Package Details: k2pdfopt 2.53-1

Git Clone URL: https://aur.archlinux.org/k2pdfopt.git (read-only, click to copy)
Package Base: k2pdfopt
Description: Tool for optimizing PDF/DJVU files for mobile e-readers and smartphones.
Upstream URL: http://www.willus.com/k2pdfopt
Keywords: convert djvu ebook kindle ocr pdf reflow
Licenses: GPL3
Submitter: FacuTuesca
Maintainer: fungible
Last Packager: fungible
Votes: 49
Popularity: 0.090692
First Submitted: 2014-03-14 21:46 (UTC)
Last Updated: 2021-12-28 05:30 (UTC)

Dependencies (8)

Required by (0)

Sources (4)

Latest Comments

cypmon commented on 2022-02-12 20:03 (UTC)

Thanks for updating this package ;). k2pdfopt's build system is weird.

scrouthtv commented on 2020-08-20 19:05 (UTC)

Tried to update but I can't compile even the basic version of his website of 2.53 (missing djvu.h). On the debian download page, there is a 2.52 version with more patches, although I haven't tried them yet.

jose1711 commented on 2020-06-18 21:39 (UTC)

Applying patches from Debian sid I still get error from linker:

/usr/bin/ld: willuslib/libwilluslib.a(ocrtess.c.o): in function `ocrtess_set_logfile':
ocrtess.c:(.text+0x1a4): undefined reference to `tess_capi_set_logfile'
/usr/bin/ld: willuslib/libwilluslib.a(ocrtess.c.o): in function `ocrtess_debug_message':
ocrtess.c:(.text+0x1b4): undefined reference to `tess_capi_debug_message'
/usr/bin/ld: willuslib/libwilluslib.a(ocrtess.c.o): in function `ocrtess_init':
ocrtess.c:(.text+0x1192): undefined reference to `tess_capi_init'
/usr/bin/ld: willuslib/libwilluslib.a(ocrtess.c.o): in function `ocrtess_end':
ocrtess.c:(.text+0x11e4): undefined reference to `tess_capi_end'
/usr/bin/ld: willuslib/libwilluslib.a(ocrtess.c.o): in function `ocrtess_ocrwords_from_bmp8':
ocrtess.c:(.text+0x1575): undefined reference to `tess_capi_get_ocr_multiword'
/usr/bin/ld: willuslib/libwilluslib.a(ocrtess.c.o): in function `ocrtess_from_bmp8':
ocrtess.c:(.text+0x1a84): undefined reference to `tess_capi_get_ocr'
collect2: error: ld returned 1 exit status

probably some kind of conflict with modified tesseract. I don't really have time to fix this so if someone wants to step in.. I am disowning this now. Thanks.

cvelteren commented on 2020-05-26 09:49 (UTC)

How to build this package with ocr?

Un1Gfn commented on 2019-02-23 08:31 (UTC) (edited on 2019-03-05 23:56 (UTC) by Un1Gfn)

I don't know much about statically/dynamically linking so I give up (for now). Sorry for adopting the package and doing nothing.

The k2pdfopt->libwillus->tesseract(modded)->leptonica(modded) dependency has been such a beast.

Possibly useful reference: repology and nixpkgs

FacuTuesca commented on 2019-01-28 18:10 (UTC)

I can no longer maintain this package. Up for adoption.

m040601 commented on 2019-01-28 13:45 (UTC)

v2.50 was released in Dec 2018 and v2.51 in Jan 2019 with important enhancements compiling with the Tesseract v4.0.0 library

FacuTuesca commented on 2017-05-09 00:57 (UTC)

@ahxxm @guiniol @frankspace: Updated to v2.41

ahxxm commented on 2017-04-16 05:03 (UTC)

v2.41 was released in Feb, still under maintenance?

FacuTuesca commented on 2017-01-08 00:26 (UTC)

Sorry for the delay. I'm having trouble compiling the new versions of k2pdfopt with gocr 0.50. I'll upload the new version as soon as I find a solution.

guiniol commented on 2017-01-04 16:31 (UTC)

@FacuTuesca: as frankspace said, the version is now up to 2.36 and it includes support for linux. Could you update it?

frankspace commented on 2016-12-13 07:42 (UTC)

It's actually up to verion 2.36 now, but I can't flag it out of date because it's already flagged out of date.

FacuTuesca commented on 2016-07-16 17:23 (UTC) (edited on 2016-07-16 20:57 (UTC) by FacuTuesca)

To the user that flagged 2.34a as out of date: According to the software's website, 2.34b is a Windows-only release: "K2pdfopt v2.34b released. This release fixes two more MS Windows bugs. The Linux and Mac versions are not affected (still v2.34a)" Also, this software includes patches for both mupdf 1.8 and gocr 0.49, so those are the versions that have to be used.

FacuTuesca commented on 2016-07-16 15:03 (UTC)

@psamim: Fixed, thanks.

psamim commented on 2016-07-16 06:07 (UTC)

Thanks for packaging, I cannot compile I get the following: /usr/bin/ld: build/debug/mutool: hidden symbol `opj_setup_decoder' isn't defined /usr/bin/ld: final link failed: Bad value collect2: error: ld returned 1 exit status make: *** [Makefile:250: build/debug/mutool] Error 1 ==> ERROR: A failure occurred in build(). Aborting...

FacuTuesca commented on 2016-03-22 13:08 (UTC)

@Eschwartz: Fixed, thanks.

eschwartz commented on 2016-03-22 04:21 (UTC)

cp -r ${srcdir}/${pkgname}_v2.34/* "${srcdir}/${pkgname}_v${pkgver}" This overwrites the 2.34a updates (so you end up with only the original v2.34 source). Use cp -rn (--no-clobber the updated v2.34a files) instead.

FacuTuesca commented on 2016-03-21 12:14 (UTC)

@krant: Fixed, thanks.

krant commented on 2016-03-21 07:08 (UTC)

k2pdfopt_v2.34a_src.zip has wrong md5sum.

FacuTuesca commented on 2015-07-29 20:00 (UTC)

@RonObvious: Fixed, luckily I had the zipped source on my hard drive. Thanks!

RonObvious commented on 2015-07-29 18:18 (UTC)

Broken, at the moment. The web site http://www.willus.com/k2pdfopt/ seems to be down -- which means that makepkg downloads the error page (html) when it tries to download the file k2pdfopt_v2.32_src.zip (which then fails to pass verification, logically enough)... Wonder if there's a mirror somewhere (quick web search turns up nothing, apart from a 2 year old githup copy, but I didn't really look that long or hard).

FacuTuesca commented on 2015-04-13 21:49 (UTC)

@noalwin: You're right, a recent update of jbig2dec (a mupdf dependency) broke the PKGBUILD. It is now fixed. Thanks!

noalwin commented on 2015-04-13 21:24 (UTC)

Thanks for the PKGBUILD, but it doesn't seem to compile: In file included from source/fitz/filter-jbig2.c:3:0: /usr/include/jbig2.h:39:21: error fatal: memento.h: No existe el fichero o el directorio #include "memento.h" "No existe el fichero o el directorio" means file not found Maybe there is an aditional dependency...

FacuTuesca commented on 2015-04-01 18:52 (UTC)

@libertas: I can't seem to reproduce your issue. Try checking the log file and see where the compilation is failing.

libertas commented on 2015-04-01 04:19 (UTC)

Thanks for your work. I've met the following problem.However,I have a g++ that works well. checking for g++... g++ checking whether the C++ compiler works... no configure: error: in `/tmp/yaourt-tmp-libertas/aur-k2pdfopt/src/tesseract-ocr': configure: error: C++ compiler cannot create executables See `config.log' for more details

FacuTuesca commented on 2014-07-26 17:51 (UTC)

@runical: Done, thanks!

runical commented on 2014-07-26 17:30 (UTC)

Can you please add cmake as a makedepend? It will not build without it.

spider-mario commented on 2014-06-13 15:08 (UTC)

Oh, ok. :) Thanks for responding so quickly.

FacuTuesca commented on 2014-06-13 15:07 (UTC)

Fixed the mupdf link. Also, 2.17a is a Windows-only bug fix, so it's exactly the same as this one. Thanks

spider-mario commented on 2014-06-13 15:03 (UTC)

Also, 2.17a is out.

spider-mario commented on 2014-06-13 15:03 (UTC)

mupdf needs to be taken from http://mupdf.com/downloads/archive/mupdf-1.4-source.tar.gz , as the current URL (without the `archive` bit) results in a 404 response.

FacuTuesca commented on 2014-04-18 15:18 (UTC)

@dlh: You are missing the base-devel package. Install it and try again.

dlh commented on 2014-04-18 14:30 (UTC)

Running aclocal ./autogen.sh: line 50: aclocal: command not found Something went wrong, bailing out!