So sánh văn bản từ PDF
Điểm chính
- Dùng
When you want to compare the text of two PDFs, one method is to paste text copied from the PDFs into Compare Two Texts (Diff) and compare. It's an alternative when the dedicated PDF comparison tool can't be used.
Các bước
- Extract text from the PDFs (copy in a PDF viewer, or use the tool that extracts text from PDFs).
- Paste the first PDF's text into "Text A (before)".
- Paste the second PDF's text into "Text B (after)".
- Press "Compare" and check "See the differences".
In a scanned PDF the text is an image and can't be extracted as it is. Turn it into text with OCR first.
Choosing between the dedicated comparison tool and this one
- The PDF comparison tool: just choose two PDFs to compare. Easy.
- This tool: handy when you want to tidy the extracted text yourself before comparing.
Benefits of comparing with this tool
- You can tidy the text before comparing (such as removing unneeded headers and page numbers)
- You can use the options to ignore case and surrounding spaces
- You can extract and compare only certain chapters
Tips for tidying extracted text
- Delete page numbers and headers/footers
- When there are too many line breaks, use the line-break tidying tool
- Extract only the chapters you want to compare
Cautions
- Text extracted from a PDF may have line-break positions different from the original.
- Content of tables and figures may not be extractable as text.
- Up to 3000 lines. Compare long PDFs in parts.
Phù hợp với
- Comparing a contract before and after revision
- Checking version differences in terms or manuals
- Comparing a paper before and after revision
Ví dụ
Wanted to compare two versions of a terms PDF. Extracted the body text from both and pasted it after deleting page numbers. Only the changed clauses were shown.
Common stumbling blocks
- Everything shows as different: line-break positions differ. Tidy line breaks before comparing.
- Text is garbled: a PDF font problem. Extract another way.
Frequently asked questions
Can scanned PDFs be compared?
Turn them into text with OCR and then paste.
Tóm tắt
Extract the PDF text, tidy it, paste and compare. Use alongside the dedicated tool.
Dùng “So sánh hai văn bản (Diff)” (miễn phí)Công cụ hay dùng cùng
- So sánh hai PDF (tìm điểm khác biệt): Hiển thị chênh lệch văn bản giữa hai PDF, tô màu phân biệt.
- Xóa dòng trùng lặp và sắp xếp danh sách: Xóa các dòng trùng lặp và sắp xếp chúng.
- Đếm ký tự (cho đơn xin và báo cáo): Đếm ký tự, dòng và trang bản thảo của văn bản.
Nếu hướng dẫn này hữu ích, một khoản ủng hộ nhỏ sẽ là niềm động viên lớn.
Gửi tiền ủng hộ (¥300)Tặng quà (danh sách mong muốn Amazon)