1
0
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:
Lu Wang 2012-09-05 23:12:36 +08:00
parent 5e71c166fc
commit 0792e2cc75
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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();