PDF conversion

From LemonWiki共筆
Jump to navigation Jump to search

PDF 轉換

PDF 轉換成純文字 (TXT)[edit]

pdftotext (Quick Start)

  • On Win Os windows.png : Part of XpdfReader, dual licensed under GPL v2 and GPL v3[2]
  • On macOS icon_os_mac.png & Linux Os linux.png : Part of Poppler[3] (GPL v2 or later), historically derived from Xpdf (Wikipedia) [Last visited: 2023-06-02] Good.gif
  • Usage: pdftotext [options] [PDF-file [text-file]] e.g. pdftotext -enc UTF-8 example.pdf example.txt

py-pdf/pdfly: CLI tool to extract (meta)data from PDF and manipulate PDF files "A CLI application that uses pypdf to interact with PDFs."

  • License: BSD 3-Clause License Good.gif
  • Usage: pdfly extract-text PDF-file > text-file
  • 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[4].
  • Requirement: Python

mupd (part of MuPDF)

PDF 轉換成 Word 或 RTF[edit]

  • Good.gif Microsoft OneDrive PDF 轉 Word 操作步驟:使用 Word Online 編輯 PDF 檔,將會轉換 PDF 為 Word 檔案。再下載複本到電腦。 (中文測試ok,測試日期: 2013-09-27。)
  • Good.gif Google 雲端硬碟 PDF 轉 Word 操作步驟:(1) 上傳 PDF 檔案到 Google 雲端硬碟、(2) 不要點兩下,直接打開 PDF 檔案。而是按滑鼠右鍵,「選擇開啟工具」,再選擇「Google 文件」。(測試日期: 2023-01-31)
  • $ Adobe PDF Services PDF 轉成 word, excel, OCR 辨識,但是台灣不支援該服務。[Last visited: 2018-02-06]

相關頁面: OCR 日文 PDF 轉 Word 或 Excel 的 線上轉檔服務比較

PDF 轉換成網頁 (HTM)[edit]

PDF 轉換成 Excel[edit]

Owl icon.jpg 當相同欄位的表格橫跨不同 PDF 頁面,轉成 Excel 檔後,可能會看到表格分散在 Excel 檔案的不同工作表。可使用合併工作表的工具: $ Merge Excel worksheets by matching data in seconds

PDF轉成簡報檔 (PPTX)[edit]

PDF 轉換成圖檔[edit]

  • Adobe Reader X: (1)選單 -> 編輯: 勾選「拍攝快照」。 (2)回到PDF本文,選取要複製的圖片; (3)貼到圖形編輯軟體。
  • macOS icon_os_mac.png 預覽程式: 將 PDF 轉換成圖檔,缺點只能轉換一頁。如果選定多頁,只會將選擇範圍的第一頁轉換成圖檔。操作方式: 選單: 檔案 --> 輸出。