branch: externals/doc-toc commit 8d4817a543c82498aedcecfef8d885d7b7579613 Author: Daniel Nicolai <dalanico...@gmail.com> Commit: Daniel Nicolai <dalanico...@gmail.com>
Fix org-noter conflict (github #4) --- README.org | 3 --- toc-mode.el | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.org b/README.org index 280544cbff..a80e0ad9a0 100644 --- a/README.org +++ b/README.org @@ -30,9 +30,6 @@ the package requires ~pdftotext~ (part of poppler-utils), ~pdfoutline~ (part of utilities to be available. Extraction with OCR requires the ~tesseract~ command line utility to be available. - - - * Usage For 'software-generated' (i.e. PDF's not created from scans) PDF-files it is recommend to use =toc-extract-with-pdf-tocgen=. To use this function you first diff --git a/toc-mode.el b/toc-mode.el index c99c38287a..a7e58d427f 100644 --- a/toc-mode.el +++ b/toc-mode.el @@ -529,7 +529,7 @@ Prompt for startpage and endpage and print OCR output to new buffer." (endpage (string-to-number (read-string "Enter end-pagenumber for extraction: "))) (ext (url-file-extension (buffer-file-name (current-buffer)))) - (buffer (file-name-sans-extension (buffer-name))) + (buffer (concat (file-name-sans-extension (buffer-name)) ".txt")) (args (list "stdout" "--psm" "6"))) (when toc-ocr-languages (setq args (append args (list "-l" toc-ocr-languages))))