@gilcu3 apologies for the noise then, I'm using manjaro and somehow this never happened.
Search Criteria
Package Details: k2pdfopt 2.55-2
Package Actions
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: | gilcu3 |
Last Packager: | gilcu3 |
Votes: | 49 |
Popularity: | 0.000000 |
First Submitted: | 2014-03-14 21:46 (UTC) |
Last Updated: | 2024-05-28 15:01 (UTC) |
Dependencies (9)
- djvulibre
- libjpeg-turbo (mozjpeg-gitAUR, libjpeg-turbo-gitAUR, mozjpegAUR)
- libmupdf
- libpng (libpng-apngAUR, libpng-gitAUR)
- cmake (cmake-gitAUR) (make)
- ghostscript (optional) – PostScript support
- gsl (gsl-gitAUR) (optional) – polynomial fit for spline interpolation feature
- jasper (jasper-gitAUR) (optional) – JPEG 2000 bitmap support
- leptonica (optional) – OCR support
Required by (0)
Sources (16)
- disable_tesseract.patch
- fix_jasper_lib.patch
- http://www.willus.com/k2pdfopt/src/k2pdfopt_v2.55_src.zip
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0001-CMakeLists.txt-add-missing-install-command.patch
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0002-CMakeLists.txt-do-not-detect-ghostscript-at-compile-.patch
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0003-CMakeLists.txt-use-system-mupdf.patch
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0004-CMakeLists.txt-use-system-gocr.patch
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0005-CMakeLists.txt-use-system-gsl.patch
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0006-k2pdfopt.h-dst_ocr_visibility_flags-workaround.patch
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0007-k2pdfoptlib-k2ocr.c-conditionally-enable-tesseract-r.patch
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0008-willuslib-CMakeLists.txt-typo.patch
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0009-willuslib-CMakeLists.txt-conditionally-add-source-fi.patch
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0010-willuslib-use-system-leptonica.patch
- https://salsa.debian.org/yangfl-guest/k2pdfopt/-/raw/dbc5c01db8d3fdf4aefda7a80ff40e4dd48f0486/debian/patches//0011-willuslib-use-system-djvu.patch
- jasper_header_path.patch
- mupdf.pc
fredh commented on 2024-07-11 07:29 (UTC)
gilcu3 commented on 2024-07-08 14:27 (UTC)
@fredh As far I know patch
is part of base-devel
, therefore it does not need to be declared as a make dependency explicitly. If I am wrong please feel free to correct me.
fredh commented on 2024-07-08 10:16 (UTC)
I've had to install patch
for the build to work, should it be added to the make dependencies?
gilcu3 commented on 2024-05-19 09:29 (UTC) (edited on 2024-05-28 15:03 (UTC) by gilcu3)
I just updated to package to the best of my abilities, still it is very buggy and only some functionality works. In my tests this is also the case with the debian package. If anyone is able to fix it please let me know. For the moment the only solution to get full functionality is to download the pre-built binary from willus.
PS: kudos to the debian developer for fixing the build with mupdf
, currently it works on my end. Only tesseract
support remains disabled.
tolik commented on 2022-11-12 04:48 (UTC)
I have the same problem as Dingisoul.
Dingisoul commented on 2022-11-10 15:13 (UTC)
There's a bug in aur's k2pdfopt but not in the executable k2pdfopt directly from willus.com. Both version is 2.53. The output PDF files ends far before the EOF. I have tried the -p options, but didn't work. All the pdfs I'm using are conference papers. I don't know why , so asking for help here. This is one input file and the output file generated by aur's k2pdfopt with default options output file
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?
Pinned Comments
gilcu3 commented on 2024-05-19 09:29 (UTC) (edited on 2024-05-28 15:03 (UTC) by gilcu3)
I just updated to package to the best of my abilities, still it is very buggy and only some functionality works. In my tests this is also the case with the debian package. If anyone is able to fix it please let me know. For the moment the only solution to get full functionality is to download the pre-built binary from willus.
PS: kudos to the debian developer for fixing the build with
mupdf
, currently it works on my end. Onlytesseract
support remains disabled.