14,974
edits
m (Text replacement - ": Image:Owl icon.jpg " to "{{Tips}} ") |
|||
| Line 4: | Line 4: | ||
==== PDF 轉換成純文字 (TXT) ==== | ==== PDF 轉換成純文字 (TXT) ==== | ||
* {{Gd}} [http://pdftextonline.com/ PDF Text Extraction In Your Browser - PDFTextOnline]線上服務,擷取PDF檔中的文字。(檔案大小不能超過10M) ([http://www.box.net/shared/pyve05ss4c 中文測試ok],測試日期: 2008-12-07。) | * {{Gd}} [http://pdftextonline.com/ PDF Text Extraction In Your Browser - PDFTextOnline]線上服務,擷取PDF檔中的文字。(檔案大小不能超過10M) ([http://www.box.net/shared/pyve05ss4c 中文測試ok],測試日期: 2008-12-07。) | ||
| Line 17: | Line 14: | ||
* ([[OCR]]) [https://pdfcandy.com/tw/pdf-ocr.html PDF 轉文字–免費線上OCR轉換工具] 免費版限制:一小時轉換一個檔案,檔案大小也有限制{{access | date=2022-10-07}} | * ([[OCR]]) [https://pdfcandy.com/tw/pdf-ocr.html PDF 轉文字–免費線上OCR轉換工具] 免費版限制:一小時轉換一個檔案,檔案大小也有限制{{access | date=2022-10-07}} | ||
[https://www.xpdfreader.com/index.html XpdfReader] [https://www.xpdfreader.com/pdftotext-man.html pdftotext] | [https://www.xpdfreader.com/index.html XpdfReader] [https://www.xpdfreader.com/pdftotext-man.html pdftotext] on {{Win}}, {{Mac}}<ref>[https://brewinstall.org/install-pdftotext-mac-osx/ Install pdftotext on Mac OSX - Brew Cask | BrewInstall]</ref> & {{Linux}} ([https://en.wikipedia.org/wiki/Pdftotext pdftotext - Wikipedia | Wikipedia]) {{access | date=2023-06-02}} | ||
* License: "The xpdf package is open source, dual licensed under GPL v2 and GPL v3."<ref>[https://www.xpdfreader.com/opensource.html Xpdf Open Source]</ref> {{Gd}} | * License: "The xpdf package is open source, dual licensed under GPL v2 and GPL v3."<ref>[https://www.xpdfreader.com/opensource.html Xpdf Open Source]</ref> {{Gd}} | ||
* Usage: {{kbd | key=<nowiki>pdftotext | * Usage: {{kbd | key=<nowiki>pdftotext [options] [PDF-file [text-file]]</nowiki>}} e.g. {{kbd | key=<nowiki>pdftotext -enc UTF-8 example.pdf example.txt</nowiki>}} | ||
[https://github.com/py-pdf/pdfly py-pdf/pdfly: CLI tool to extract (meta)data from PDF and manipulate PDF files] "A {{Acronym| acronym=CLI| def=命令列介面(英語:Command-line interface)}} application that uses [https://github.com/py-pdf/pdfly pypdf] to interact with PDFs." | [https://github.com/py-pdf/pdfly py-pdf/pdfly: CLI tool to extract (meta)data from PDF and manipulate PDF files] "A {{Acronym| acronym=CLI| def=命令列介面(英語:Command-line interface)}} application that uses [https://github.com/py-pdf/pdfly pypdf] to interact with PDFs." | ||
| Line 26: | Line 23: | ||
* Known issues: On Windows systems with Chinese locales (cp950), PDF text extraction may fail with Unicode encoding errors when encountering certain special characters like '\u25aa' (BLACK SMALL SQUARE). This is a character encoding limitation of the default Windows codepage<ref>[https://stackoverflow.com/questions/50933194/how-do-i-set-the-pythonutf8-environment-variable-to-enable-utf-8-encoding-by-def How do I set the PYTHONUTF8 environment variable to enable UTF-8 encoding by default in Python? - Stack Overflow]</ref>. | * Known issues: On Windows systems with Chinese locales (cp950), PDF text extraction may fail with Unicode encoding errors when encountering certain special characters like '\u25aa' (BLACK SMALL SQUARE). This is a character encoding limitation of the default Windows codepage<ref>[https://stackoverflow.com/questions/50933194/how-do-i-set-the-pythonutf8-environment-variable-to-enable-utf-8-encoding-by-def How do I set the PYTHONUTF8 environment variable to enable UTF-8 encoding by default in Python? - Stack Overflow]</ref>. | ||
* Requirement: [https://www.python.org/downloads/ Python] | * Requirement: [https://www.python.org/downloads/ Python] | ||
[https://mupdf.com/core MuPDF Core] ([https://github.com/ArtifexSoftware/mupdf mupd]) | |||
* License: [https://github.com/ArtifexSoftware/mupdf?tab=AGPL-3.0-1-ov-file GNU AFFERO GENERAL PUBLIC LICENSE] | |||
* Usage: {{kbd | key=<nowiki>mutool draw -F txt -o PDF-file text-file</nowiki>}} | |||
==== PDF 轉換成 Word 或 RTF ==== | ==== PDF 轉換成 Word 或 RTF ==== | ||