Quote:
Originally Posted by ephestione
Hi willus
I am using latest version in x64 compile on an i7 laptop, and since I am converting a 1100+ pages PDF (first time aroung it crashed slightly after half file, but maybe it was something else than k2pdfopt itself and I am on my second -slow- pass, will let you know how it goes), I found myself whishing there was multithreading, as my octacore is quite underloaded at about 18%, for a single core output.
Found a GUI which did just that, but its website is not updated since a couple of years, so I did not dare to try it right off the bat, would it be feasible to implement on k2pdfopt itself? Ideally in the executable or even as a workaroung in the builtin GUI by processing multiple pages intervals and then merging at the end?
|
I believe the GUI you were looking at (Jens Wallauer's?) only does multitasking by running multiple instances of k2pdfopt at the same time, on different source files. Multithreaded operation has been requested before, but I don't really have the time or energy to work on that right now. I'm just trying to chase through my list of bugs and reasonably-easy-to-implement feature requests.
All I can advise is that you do it manually--it's not very hard to write a batch script that launches multiple instances of k2pdfopt, each converting 100 pages at a time (or whatever you want), and then joins the outputs together using PDFSAM or jpdftweak. E.g.
Code:
start k2pdfopt -gui- -ui- -x -o out01.pdf srcfile.pdf -p 1-100
start k2pdfopt -gui- -ui- -x -o out02.pdf srcfile.pdf -p 101-200
start k2pdfopt -gui- -ui- -x -o out03.pdf srcfile.pdf -p 201-300
start k2pdfopt -gui- -ui- -x -o out04.pdf srcfile.pdf -p 301-400
...
rem When all conversions are done:
jpdftweak -i out01.pdf -i out02.pdf -i out03.pdf ... -o finaloutput.pdf
del out01.pdf out02.pdf out03.pdf ...
I will think about maybe automating such a script--but it will require that you have jpdftweak installed.