mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-12-22 13:00:08 +00:00
fix heuristic stuff for python in CMakeList.txt
This commit is contained in:
parent
5e71c166fc
commit
0792e2cc75
@ -30,7 +30,8 @@ else()
|
||||
endif()
|
||||
|
||||
message("Looking for libraries of python, which is required by fontforge, if you can link fontforge without python, you may disable this")
|
||||
pkg_check_modules(PYTHON REQUIRED python)
|
||||
pkg_check_modules(PYTHON python)
|
||||
pkg_check_modules(PYTHON python-2.7)
|
||||
|
||||
set(PDF2HTMLEX_VERSION "0.2")
|
||||
set(ARCHIVE_NAME pdf2htmlex-${PDF2HTMLEX_VERSION})
|
||||
@ -70,7 +71,6 @@ add_executable(pdf2htmlEX
|
||||
src/util.h
|
||||
src/config.h)
|
||||
|
||||
message("${POPPLER_LIBRARIES}")
|
||||
target_link_libraries(pdf2htmlEX ${POPPLER_LIBRARIES} ${Boost_LIBRARIES} ${FONTFORGE_LIBRARIES} ${PYTHON_LIBRARIES})
|
||||
|
||||
install (TARGETS pdf2htmlEX DESTINATION bin)
|
||||
|
@ -12,7 +12,7 @@ for f in os.listdir(DIR):
|
||||
if not f.lower().endswith('.pdf'):
|
||||
continue
|
||||
print f
|
||||
os.system('pdf2htmlEX --optimize 1 -l 3 --dest-dir html "%s/%s"' % (DIR,f))
|
||||
os.system('pdf2htmlEX --optimize 1 -l 10 --dest-dir html "%s/%s"' % (DIR,f))
|
||||
ff = f[:-3]+'html'
|
||||
outf.write('<a href="html/%s" target="pdf">%s</a><br/>' % (ff,ff))
|
||||
outf.flush();
|
||||
|
Loading…
Reference in New Issue
Block a user