PDF เป็น SVG
เขียนแต่ละหน้าเป็น SVG โดยคงข้อความไว้เป็นข้อความจริง
เครื่องมือนี้ทำงานในเบราว์เซอร์ของคุณทั้งหมด ไฟล์ของคุณไม่ถูกอัปโหลดเลย และคุณตรวจสอบได้เองในแท็บเครือข่ายของเบราว์เซอร์ ตรวจสอบด้วยตัวเอง เปิดแท็บเครือข่ายของเบราว์เซอร์แล้วดู คุณจะเห็นคำขอเล็ก ๆ หนึ่งรายการที่ถามว่าคุณยังมีโควตางานเหลืออยู่หรือไม่ ซึ่งมีแค่ชื่อเครื่องมือกับค่าแฮช ไม่ใช่ตัวไฟล์
เครื่องมือนี้ทำอะไร
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.
วิธีทำงาน
- 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.
สิ่งที่เครื่องมือนี้ทำไม่ได้
- 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.
คำถามที่คนมักถาม
- จะได้กราฟิกเวกเตอร์จริง ๆ ที่ขยายได้ไหม
- ข้อความ ได้ เพราะถูกเขียนเป็นข้อความ SVG จริงและขยายได้ทุกขนาด ส่วนกราฟิก ไม่ได้ การแปลงเส้นทาง การไล่สี การตัดขอบ และลวดลายของหน้า คือการแปลงเวกเตอร์เต็มรูปแบบซึ่งเครื่องมือนี้ไม่ได้พยายามทำ ในโหมดแรสเตอร์งานกราฟิกจึงเป็นภาพที่ฝังไว้ และในโหมดข้อความอย่างเดียวจะไม่มีเลย ถ้าคุณต้องการงานกราฟิกที่ขยายได้ ไฟล์เวกเตอร์ต้นทางเดิมคือทางเดียวที่เชื่อถือได้
- ควรเลือกโหมดไหน
- เลือกพร้อมแรสเตอร์ถ้าคุณอยากให้หน้าดูเหมือนหน้าเดิม คือมีภาพของมันฝังอยู่ พร้อมข้อความจริงวางทับแบบมองไม่เห็นเพื่อให้ยังเลือกและค้นหาได้ เลือกข้อความอย่างเดียวถ้าคุณอยากได้คำเป็นอิลิเมนต์เวกเตอร์ที่แก้ไขได้ และยอมเสียกราฟิกทั้งหมดไป
- แก้ผลลัพธ์ในโปรแกรมออกแบบได้ไหม
- ข้อความสามารถเลือก เปลี่ยนสไตล์ และย้ายได้ใน Illustrator, Inkscape, Figma และโปรแกรมอื่นที่อ่าน SVG ส่วนภาพของหน้าที่ฝังไว้ทำตัวเหมือนภาพที่วางไว้ทั่วไป คุณย้าย ปรับขนาด และทำมาสก์ได้ แต่แยกมันออกเป็นรูปทรงไม่ได้
- ทำไมไฟล์ SVG ใหญ่กว่า PDF
- เพราะในโหมดแรสเตอร์ แต่ละหน้าพกภาพที่เรนเดอร์แล้วไว้ในไฟล์ โดยเข้ารหัสเป็นข้อความ ขณะที่ PDF เก็บหน้าเดียวกันเป็นคำสั่งวาดที่กระชับ ลดความละเอียดลงเพื่อให้เล็กลง หรือใช้โหมดข้อความอย่างเดียวซึ่งได้ไฟล์ขนาดไม่กี่กิโลไบต์ เพราะมีแต่ตัวอักษรและพิกัด
- ไฟล์ออกจากเครื่องของฉันไหม
- ไม่ หน้าถูกเรนเดอร์และข้อความถูกดึงออกมาใน Web Worker ในเบราว์เซอร์ของคุณ และ SVG ก็ถูกประกอบขึ้นที่นั่น ไม่มีการอัปโหลด ไม่มีบัญชีผู้ใช้ และคุณตรวจสอบได้ด้วยการแปลงขณะตัดการเชื่อมต่อเครือข่าย