HTML إلى PDF
حوّل صفحة ويب محفوظة أو ملفًا نصيًا إلى PDF.
تعمل هذه الأداة داخل متصفحك بالكامل. لا يُرفع ملفك أبدًا، ويمكنك التحقق من ذلك في تبويب الشبكة بمتصفحك. تحقّق بنفسك: افتح تبويب الشبكة في متصفحك وراقب. سترى طلبًا صغيرًا واحدًا يسأل إن كان لديك مهام متبقية — اسم أداة وبصمة تجزئة، وليس الملف أبدًا.
ماذا تفعل هذه الأداة
This takes a saved .html or .htm file, or a plain .txt file, and lays its content out as a PDF. Headings, paragraphs, lists, tables and links are read from the document's structure and re-flowed onto the paper you choose. CSS is not executed, so the result reads correctly and does not look identical to the page in a browser. There is no field for a web address, and that is a decision rather than an omission: fetching a page for you would mean an outbound request from a tool that promises none.
Use it on a page you have already saved: an article kept for offline reading, a receipt or booking confirmation a site would only show you in the browser, documentation you want on paper, or an export from a tool that writes HTML and nothing else.
كيف تعمل
- Save the page first. In any desktop browser, press Ctrl+S or Command+S and choose Web page, HTML only - the complete option saves a folder of assets this tool does not need.
- Drop the .html file onto this page. Plain .txt files work too, up to 20 files at a time.
- Choose the paper size, orientation and margins. Wide margins suit anything you intend to annotate by hand.
- Leave keep hyperlinks on so the page's links stay clickable in the PDF.
- Turn on page numbers for anything you plan to print and hand round.
- Press Convert and the PDF downloads.
The page is re-flowed from its structure, not rendered. A browser turns HTML into a picture by executing CSS - float, flex, grid, absolute positioning, media queries, web fonts - and shipping a layout engine into a browser tab to do that a second time is not a small addition. Instead the document is read as headings, paragraphs, lists, tables and links, and set with the same typography as every other conversion here. Two columns become one, and the article you wanted comes out readable.
That trade has a side effect people tend to like. Navigation, banners and sidebars are flattened into the flow along with everything else, so they arrive as plain lists and paragraphs rather than as furniture down the edge of the page. This is not reader-mode extraction and does not claim to be - text that was decoration is still text - but the article stops being a narrow column squeezed between two others.
Images are not embedded. A saved .html file usually points at its pictures rather than containing them, and going out to fetch them would be exactly the outbound request this tool exists to avoid. Text, tables, lists and links come through; pictures do not, including ones written into the file as data URIs. If the pictures are the point, save them separately and use Images to PDF.
The file is treated as hostile. A saved web page can carry script tags, inline event handlers and javascript: links, and all three are stripped in the parser before anything reaches the layout engine. Nothing in the page runs, and no link that ends up in the PDF can execute anything.
The missing URL box is worth one more sentence. To fetch a page for you, this site would have to make the request itself or route it through a proxy, and either way somebody's server learns which page you were reading. For a tool whose whole claim is that your document never leaves your device, that is not a trade worth making. Saving the page yourself takes one keystroke and keeps the request in your own browser, where it already was.
ما لا تستطيع هذه الأداة فعله
- CSS is not executed, so colours, columns, positioning and web fonts are lost. The page is re-flowed as text, tables and lists.
- There is no URL field. Save the page to a file first; fetching it here would mean an outbound request on your behalf.
- Images are not embedded, including ones written into the file as data URIs. Text, tables and links come through.
أسئلة يطرحها الناس
- هل أستطيع لصق عنوان ويب بدل ملف؟
- لا، وهذا إغفال متعمَّد لا ميزة لم ينتبه إليها أحد. فجلب الصفحة يعني أن هذا الموقع، أو وسيط CORS في المنتصف، سيرسل طلبًا نيابة عنك - وهو ما سيخبر خادم أحدهم بالصفحة التي تقرؤها ويكسر الوعد الوحيد الذي تقطعه هذه الأداة. احفظ الصفحة بـ Ctrl+S وأفلِت الملف هنا بدلًا من ذلك.
- لماذا لا يبدو ملف PDF مثل صفحة الويب؟
- لأن أوراق الأنماط لا تُنفَّذ. تُقرأ بنية المستند - العناوين والفقرات والقوائم والجداول والروابط - وتُنسَّق بطباعة هذا الموقع نفسه بدلًا منها. أما الألوان والأعمدة والمواضع وخطوط الويب فلا تنتقل. وما يبقى لك هو محتوى الصفحة، مقروءًا، على ورق اخترته أنت.
- هل تنتقل الصور الموجودة في الصفحة؟
- لا. الصور لا تُضمَّن، لأن ملف .html المحفوظ يشير إلى صوره عادةً بدل أن يحتويها، وجلبها يعني طلبًا صادرًا. أما النص والجداول والقوائم والروابط فتُحوَّل كلها؛ وتُترك الصور، بما فيها المكتوبة داخل الملف على هيئة data URI.
- كيف أحفظ صفحة ويب لأحوّلها؟
- اضغط Ctrl+S في ويندوز أو Command+S في ماك واختر «صفحة ويب، HTML فقط» بدل «كاملة» - فالخيار الكامل يكتب مجلد أصول لا فائدة منه لهذه الأداة. وعلى الهاتف، ابحث عن خيار الحفظ كملف أو التنزيل في قائمة المشاركة بمتصفحك. ثم أفلِت الملف المحفوظ على هذه الصفحة.
- هل يُرسل أي شيء عن الصفحة إلى أي مكان؟
- لا. يُفكّ ترميز الملف ويُحلَّل ويُنسَّق داخل متصفحك بالكامل، ولا يوجد حقل لعنوان URL تحديدًا كي لا يُرسَل أي طلب نيابة عنك أبدًا. والشيء الوحيد الذي تجلبه هذه الصفحة إطلاقًا هو خط Noto، من مصدر هذا الموقع نفسه، وذلك فقط حين يكون تضمين Unicode مفعّلًا.