PDF sang SVG
Ghi mỗi trang thành một SVG, với chữ được giữ dưới dạng chữ thật.
Công cụ này chạy hoàn toàn trong trình duyệt của bạn. Tệp của bạn không bao giờ được tải lên, và bạn có thể tự kiểm chứng điều đó trong tab mạng của trình duyệt. Tự kiểm chứng: mở tab mạng của trình duyệt và theo dõi. Bạn sẽ thấy một yêu cầu nhỏ hỏi xem bạn còn tác vụ nào không - một tên công cụ và một mã băm, không bao giờ là tệp.
Công cụ này làm gì
Modern PDF.js no longer has an SVG back end, and rebuilding a full PDF-to-SVG vector translator - shading patterns, clipping paths, type 3 fonts, every colour space - is not work that belongs in a browser tab. So this tool does not claim to be one. It offers the two things it genuinely can do: the page as an embedded picture with its real text positioned invisibly on top, or the text alone as true SVG text elements with none of the graphics. Neither is a vector trace of the artwork, and it is better to know that before you download forty files.
With raster on, it suits dropping a page into a web page or a design tool as one self-contained file that scales, stays sharp and can still be searched. Text only suits pulling the wording of a page into a design tool to restyle it, or building a caption layer over artwork you are drawing separately.
Cách hoạt động
- Drop the PDF onto this page. Files up to 150 MB are accepted.
- Choose the mode: with raster for something that looks like the page, text only for genuinely vector text and nothing else.
- Leave Keep the text selectable on so the words stay in the file rather than being flattened into the picture.
- In raster mode, set the resolution of the embedded picture. 150 dpi is the default and is sharp at normal viewing sizes.
- Choose one file per page or a single stacked file, then press Convert to SVG.
Text only is genuinely vector and genuinely incomplete. Every character becomes an SVG text element at its measured position, so you can restyle, recolour and re-space it in any design tool. Every rule, box, logo, photograph and background on that page is gone, because there is no path data to write. That is a fine trade when the words are what you are after, and a bad surprise when they are not.
The y axis is where converters of this kind usually go wrong. SVG counts down from the top of the canvas and PDF counts up from the bottom, so every text position has to be flipped as it crosses over. Get it wrong and the page comes out mirrored vertically, or - more insidiously - each line lands one line off, so copying a word gives you the line above it.
One file per page is the default because SVG has no concept of a page. When you ask for a single file, the pages are wrapped in one root element with each translated below the last, which is the only arrangement that opens sensibly both in a browser and in a design tool.
Rendering and text extraction both happen in your browser through PDF.js, so no page of the document is drawn on anyone else's machine. The only thing that crosses the network is the allowance check, which names the tool and carries a hash of the bytes.
Công cụ này không làm được gì
- This is not a full vector translation. With raster on, the graphics are an embedded picture rather than paths; with text only, they are absent. Neither mode gives you editable vector artwork of the whole page.
- Fonts are referenced by name rather than embedded, so a machine without the typeface substitutes another and line lengths shift.
Câu hỏi thường gặp
- Tôi có nhận được đồ họa vector đúng nghĩa để phóng to không?
- Chữ thì có - nó được ghi thành chữ SVG thật và co giãn đến mọi kích thước. Đồ họa thì không. Chuyển đổi các đường path, chuyển sắc, cắt xén và hoa văn của một trang là một phép dịch vector đầy đủ mà công cụ này không thực hiện, nên ở chế độ có raster đồ họa là một ảnh nhúng và ở chế độ chỉ chữ nó vắng mặt. Nếu bạn cần đồ họa co giãn được, nguồn vector gốc là lối đi đáng tin cậy duy nhất.
- Tôi nên chọn chế độ nào?
- Có raster nếu bạn muốn trang trông giống trang: một ảnh nhúng của nó, với chữ thật đặt vô hình phía trên để vẫn có thể chọn và tìm kiếm. Chỉ chữ nếu bạn muốn các từ dưới dạng phần tử vector chỉnh sửa được và có thể chịu mất mọi đồ họa.
- Tôi có thể chỉnh sửa kết quả trong một công cụ thiết kế không?
- Chữ có thể được chọn, đổi kiểu và di chuyển trong Illustrator, Inkscape, Figma và bất cứ thứ gì khác đọc được SVG. Ảnh trang nhúng hành xử như bất kỳ ảnh được đặt nào: bạn có thể di chuyển, co giãn và che nó, nhưng không thể tách nó ra thành các hình.
- Vì sao SVG lớn hơn PDF?
- Vì ở chế độ có raster mỗi trang mang một ảnh đã dựng bên trong tệp, mã hóa dưới dạng văn bản, còn PDF lưu cùng trang đó dưới dạng các chỉ thị vẽ gọn gàng. Hạ độ phân giải để thu nhỏ nó, hoặc dùng chế độ chỉ chữ, tạo ra các tệp chỉ vài kilobyte vì nó không chứa gì ngoài ký tự và tọa độ.
- Tệp có rời khỏi máy của tôi không?
- Không. Các trang được dựng và chữ được trích xuất trong một Web Worker trong trình duyệt của bạn, và SVG được lắp ráp ở đó. Không có gì được tải lên, không có tài khoản, và bạn có thể kiểm chứng bằng cách chuyển đổi khi đã ngắt mạng.