مقارنة ملفات PDF
شاهد ما تغيّر بين نسختين، بالكلمات وبالبكسلات.
تعمل هذه الأداة داخل متصفحك بالكامل. لا يُرفع ملفك أبدًا، ويمكنك التحقق من ذلك في تبويب الشبكة بمتصفحك. تحقّق بنفسك: افتح تبويب الشبكة في متصفحك وراقب. سترى طلبًا صغيرًا واحدًا يسأل إن كان لديك مهام متبقية — اسم أداة وبصمة تجزئة، وليس الملف أبدًا.
ماذا تفعل هذه الأداة
This compares two PDFs twice and reports the results separately: a word-level diff of what the documents say, and a page-by-page pixel comparison of what they look like. What you get is an HTML report naming the changes, not a blended similarity score. If the two files turn out to be identical, the report says so in its title rather than leaving you to interpret an empty list.
When a document has come back and you need to know what moved: a contract returned by the other side, a specification revised by a supplier, a design proof against the version you approved, or two copies of a report you are no longer certain are the same file.
كيف تعمل
- Drop both PDFs onto this page. The first is treated as the original and the second as the revision, which is what the labels in the report mean.
- Choose text, appearance or both. Both is the default and costs one render of each document.
- For the appearance pass, set the resolution and the sensitivity - sensitivity is how large a pixel difference has to be before it counts as a change rather than as rendering noise.
- Leave ignore whitespace on so that a reflowed paragraph does not report as a change on every line.
- Press Compare and open the report. It lists the added and removed passages and the percentage of pixels that differ on each page.
A lawyer wants the words and a designer wants the pixels, and one blended percentage would answer neither. The text pass diffs the documents word by word, so a changed sentence reports the words that changed instead of a scatter of letters. The appearance pass renders both documents and compares page one with page one, counting the pixels that differ beyond the tolerance you set.
The text comparison treats each document as a single stream of words, so it tells you what changed rather than which page it changed on. That is deliberate - a paragraph inserted on page two would otherwise make every later page report as different - but it means the appearance pass is where you look when you need location.
The appearance pass compares by page number, which is right for a revision and misleading for an insertion: add a page at the front and everything after it differs from its counterpart. Pages present in only one document are flagged as such, and two documents on different paper sizes are compared over the region they share, with the rest counted as different.
Two renders of genuinely identical pages are not bit-identical, because anti-aliasing is not deterministic to the last channel value, so a comparison with no tolerance reports that noise as change. The default sensitivity of 20 per cent ignores small differences. The report also lists at most 200 individual changes and then says how many it has not listed, rather than truncating quietly.
ما لا تستطيع هذه الأداة فعله
- The report lists at most 200 individual text changes, and says how many more there were. Wholesale rewrites are better compared by exporting the text and diffing it elsewhere.
- Scanned documents have no text layer, so the text pass finds nothing to compare. Run OCR PDF on both first, or compare by appearance only.
- The appearance pass compares page 1 with page 1 and so on, so an inserted or deleted page makes everything after it report as different.
- The report gives counts and percentages for each page, not a marked-up image showing where on the page the difference falls.
أسئلة يطرحها الناس
- ما الفرق بين النص والمظهر؟
- النص يستخرج الكلمات من المستندين ويقارنها، وهو ما يلتقط رقمًا تغيّر أو بندًا حُذف أينما انتقل. أما المظهر فيرسم الاثنين ويقارن البكسلات، وهو ما يلتقط هامشًا انزاح أو شعارًا استُبدل أو خطًا حلّ محلّ آخر، وهي أمور لا تكشفها الكلمات وحدها أبدًا.
- ماذا يفعل شريط الحساسية؟
- يحدّد كم يجب أن يختلف بكسلان قبل أن يُحسب الفرق. فالرسم ليس حتميًا حتى آخر قيمة قناة، لذا يبلّغ الإعداد المنخفض جدًا عن تنعيم الحواف بوصفه تغييرًا. والقيمة الافتراضية 20 بالمئة نقطة بداية معقولة: اخفضها لالتقاط الانزياحات الدقيقة، وارفعها حين يغرق التقرير في فروق لا تعني شيئًا.
- هل يمكنني مقارنة مستندين ممسوحين ضوئيًا؟
- بالمظهر نعم - وهذا ما وُجد المرور البكسلي له، وإن كان مسحان منفصلان للورقة نفسها يختلفان اختلافًا طفيفًا في كل مكان ويحتاجان حساسية أعلى. أما بالنص فلا، إلا إذا مرّ المسحان على OCR: فبلا طبقة نصية لا يوجد ما يُقارَن.
- ماذا أحصل عليه في النهاية؟
- تقرير HTML يمكنك حفظه أو طباعته أو إرساله. يبدأ بملخّص - متطابقان أم لا، وكم تغييرًا نصيًا، وكم صفحة تغيّرت - ثم يسرد المقاطع المضافة والمحذوفة، ثم يعطي النسب البكسلية لكل صفحة. ويستطيع أي أحد فتحه دون هذا الموقع.
- هل يُرفع المستندان؟
- لا. كلاهما يُقرأ ويُرسم ويُقارَن داخل Web Worker في متصفحك، ولهذا أيضًا لا تعتمد مقارنة زوج من خمسين صفحة على اتصالك. والتقرير يُولَّد محليًا كذلك.