تخطَّ إلى المحتوى

PDF إلى HTML

حوّل PDF إلى صفحة ويب - نصًا مقروءًا أو صورًا للصفحات.

تتم المعالجة على جهازك

تعمل هذه الأداة داخل متصفحك بالكامل. لا يُرفع ملفك أبدًا، ويمكنك التحقق من ذلك في تبويب الشبكة بمتصفحك. تحقّق بنفسك: افتح تبويب الشبكة في متصفحك وراقب. سترى طلبًا صغيرًا واحدًا يسأل إن كان لديك مهام متبقية — اسم أداة وبصمة تجزئة، وليس الملف أبدًا.

ماذا تفعل هذه الأداة

There are two ways to turn a PDF into a web page, and they suit different people, so both are here. Text mode writes headings, paragraphs, lists and links as real HTML: it will not look like the PDF, and that is the point, because it re-flows on a phone, it is searchable, and a screen reader can follow it. Page pictures mode renders every page as an image with the extracted text positioned invisibly over it - identical to the PDF, and close to useless on a small screen. Either way the result is one self-contained file.

Use text mode when a document has to be readable on a phone, indexable by a search engine, or usable with a screen reader - a policy, a manual, a report that people keep pinch-zooming. Use page pictures when appearance is the whole point and the file has to look like the original: a form, a certificate, a signed letter being shown rather than read.

كيف تعمل

  1. Drop the PDF onto this page. In text mode the file is checked for a text layer first, and a scan is refused with a pointer to OCR PDF.
  2. Pick the mode: text for a readable page that re-flows, page pictures for something that matches the original exactly.
  3. Leave Complete HTML document and Put the styles inside the file on unless you are pasting the result into a page you already have.
  4. In page pictures mode, set the resolution. 120 dpi is legible on screen; 200 dpi is sharper and roughly three times the bytes.
  5. Press Convert to HTML and the single .html file downloads.

The output is one file with its stylesheet inlined, so it opens from a folder or an email attachment without the missing-stylesheet page that a linked CSS file produces. It is also written to stay readable with CSS switched off entirely. That is partly an accessibility property and partly a proof of what is underneath: markup that means something, rather than a heap of absolutely-positioned spans arranged to look right.

Text mode reads the page in one column. Multi-column layouts, sidebars and text boxes are flattened into a single reading order, which is the trade you are making in return for a page that works at 360 pixels wide.

In page pictures mode the images are embedded as data URIs rather than written as a folder of files next to the HTML. Base64 costs about 33 per cent over the raw bytes, which is worth paying for a file that can be mailed as one attachment. It does mean a long document at 200 dpi becomes heavy, so start at the default and raise it only if the result looks soft.

Rendering and text extraction both happen in your browser through PDF.js. Nothing about the document is transmitted, including in page pictures mode, where the images are produced on your own device rather than by a rendering server somewhere.

ما لا تستطيع هذه الأداة فعله

  • Text mode does not preserve the layout. Columns collapse into one, absolute positioning is dropped, and the page reads top to bottom.
  • Page pictures mode embeds every page as base64 inside the file, which adds about a third to the size of the images and makes a long document slow to open.

أسئلة يطرحها الناس

ما الفرق بين الوضعين؟
وضع النص يستخرج الكلمات ويكتب HTML حقيقيًا - عناوين وفقرات وقوائم وروابط - فتعيد الصفحة التدفّق ويستطيع قارئ الشاشة تتبّعها. ووضع صور الصفحات يرسم كل صفحة صورةً ويضع النص فوقها بلا ظهور، فيطابق الناتج الأصل ويظل قابلًا للبحث لكنه لا يتكيّف مع حجم الشاشة. اختر بحسب الأهم: قراءته أم التعرّف عليه.
هل سيبدو HTML مثل ملف PDF؟
في وضع النص، لا، وعن قصد. تُترك الخطوط والأعمدة وهندسة الصفحة حتى يستطيع المحتوى إعادة التدفّق على أي عرض شاشة. أما في وضع صور الصفحات فالناتج مطابق بصريًا لـ PDF، لأن كل صفحة صورة له.
هل تنتقل الصور الموجودة داخل مستندي؟
في وضع صور الصفحات نعم، لأن الصفحة كاملة بما فيها رسومها تُرسم صورةً. وفي وضع النص لا - فالتحويل يكتب النص والبنية فقط.
هل الناتج ملف واحد أم مجلد؟
ملف واحد دائمًا. يُضمَّن CSS داخله وتُدرج صور الصفحات كعناوين data، فلا يضيع شيء عند نقل الملف أو إرساله بالبريد. وإيقاف "مستند HTML كامل" يعطيك جزءًا تلصقه في صفحة قائمة بدل ذلك.
هل يُرفع أي شيء؟
لا. استخراج النص ورسم الصفحات يجريان معًا داخل Web Worker في متصفحك، لذا يؤثر إعداد الدقة في مدة عمل جهازك أنت لا في طول طابور انتظار. راقب تبويب الشبكة أثناء التحويل ولن ترى شيئًا يغادر.

أدوات ذات صلة