ข้ามไปยังเนื้อหา

แปลง PDF เป็นสีเทา

แปลงเอกสารสีให้เป็นสีเทา โดยยังค้นหาข้อความได้

ประมวลผลบนเครื่องของคุณ

เครื่องมือนี้ทำงานในเบราว์เซอร์ของคุณทั้งหมด ไฟล์ของคุณไม่ถูกอัปโหลดเลย และคุณตรวจสอบได้เองในแท็บเครือข่ายของเบราว์เซอร์ ตรวจสอบด้วยตัวเอง เปิดแท็บเครือข่ายของเบราว์เซอร์แล้วดู คุณจะเห็นคำขอเล็ก ๆ หนึ่งรายการที่ถามว่าคุณยังมีโควตางานเหลืออยู่หรือไม่ ซึ่งมีแค่ชื่อเครื่องมือกับค่าแฮช ไม่ใช่ตัวไฟล์

เครื่องมือนี้ทำอะไร

There is no way to recolour a PDF's vector content inside a browser - the colour lives in every content stream, in whichever of five colour spaces the producer chose. So this tool says plainly how it works: each page is re-rendered in grey and the document is rebuilt from the resulting images. The pages stop being vector as a result. The words do not stop being words: the text is read out first and drawn back invisibly over each image, so the document is still selectable and searchable.

The usual reason is printing. Colour pages cost several times what grey ones do on most office and copy-shop tariffs, and many print accounting systems bill by what the file contains rather than by what the driver was set to. It is also a straightforward way to shrink a colour scan.

วิธีทำงาน

  1. Drop the PDF onto this page. Files up to 300 MB are accepted.
  2. Set the resolution. 150 dpi is the default and reads well on screen; raise it towards 300 dpi for a document that will be printed and examined closely.
  3. Leave Keep text searchable on unless you have a reason not to - it costs a little size and keeps the document usable.
  4. Adjust the JPEG quality under advanced options if the default of 82 per cent is softer or larger than you want.
  5. Press Convert to grayscale. Progress shows which page is being rendered, and the result reports the resolution used.

The conversion uses Rec. 709 luma rather than the average of the red, green and blue channels. The eye is roughly three times more sensitive to green than to red and ten times more than to blue, so averaging makes a saturated red and a saturated blue come out as the same middle grey when one should be clearly darker. Weighting the channels the way vision does keeps coloured text, chart series and highlighted rows distinguishable after the colour is gone.

Keeping the text searchable is what separates this from printing to an image. Before any page is replaced, PDF.js extracts every text run with its position and size; those runs are then drawn over the finished image in an invisible rendering mode. You can select a paragraph, search for a phrase and copy a table out of the result, even though what you are looking at is a picture.

The file will not always get smaller. A colour scan usually shrinks substantially, because three channels become one and the JPEG has less to encode. A text document made of vector glyphs frequently grows, sometimes several times over, because a page of crisp type is cheaper to store as instructions than as a picture of itself. If your goal is size rather than colour, Compress PDF is the tool to reach for.

Because the pages are rebuilt from images, what sits on top of them does not survive: links stop being clickable, form fields stop being fillable, and comments, highlights and stamps are gone rather than drawn in. If you need the marks kept as marks, flatten the document first and convert afterwards.

Rendering happens on your device with PDF.js and a canvas, and the rebuild with pdf-lib - both in Web Workers, neither over a network. This is the heaviest tool in the category on a large file, and it is still local: a 300-page colour report is rendered page by page in your own browser.

สิ่งที่เครื่องมือนี้ทำไม่ได้

  • The output is images, not vector pages. Zooming in far enough shows the pixels, and the type is no longer infinitely sharp.
  • A text-heavy document can come out larger than the original, because a page of type stores more cheaply as instructions than as a picture.
  • Links, form fields and annotations are not carried over, since each page is replaced by an image of itself.

คำถามที่คนมักถาม

ทำไมต้องแปลงไฟล์ แทนที่จะติ๊กสีเทาในหน้าต่างสั่งพิมพ์
เพราะหน้าต่างสั่งพิมพ์มีผลกับงานนั้นบนเครื่องนั้นเท่านั้น ร้านถ่ายเอกสาร เครื่องพิมพ์ที่ใช้ร่วมกันในสำนักงาน หรือเพื่อนร่วมงานที่เปิดไฟล์ ต่างก็ตัดสินใจของตัวเอง และระบบคิดค่าพิมพ์จำนวนมากคิดหน้านั้นเป็นหน้าสีถ้าไฟล์มีสีอยู่ ไม่ว่าไดรเวอร์จะตั้งไว้อย่างไร การแปลงเอกสารจบเรื่องนี้ในครั้งเดียว
จะเสียคุณภาพไปมากแค่ไหน
สีจะหายไปอย่างถาวร และหน้าเอกสารจะกลายเป็นภาพที่ความละเอียดที่คุณเลือก ที่ 150 dpi ผลลัพธ์อ่านบนจอได้ดีเยี่ยมและพิมพ์ออกมาพอรับได้ ที่ 300 dpi คือคุณภาพงานพิมพ์และไฟล์ใหญ่ขึ้นราวสี่เท่า ชั้นข้อความยังถูกเก็บไว้ไม่ว่าจะเลือกแบบใด
ไฟล์จะเล็กลงหรือไม่
งานสแกนสีมักเล็กลงมาก ส่วนเอกสารข้อความมักใหญ่ขึ้น เพราะการเรนเดอร์ตัวอักษรลงเป็น JPEG กินพื้นที่มากกว่าคำสั่งที่ใช้วาดมัน ทั้งสองกรณีจะรายงานขนาดก่อนและหลังให้ดู คุณจึงเห็นว่าได้ผลแบบไหน และเก็บไฟล์ต้นฉบับไว้ได้หากผลไม่ตรงกับที่ต้องการ
หลังจากนั้นยังค้นหาและเลือกข้อความได้หรือไม่
ได้ ตราบใดที่เปิดตัวเลือกคงข้อความให้ค้นหาได้ไว้ ข้อความจะถูกดึงออกมาก่อนที่หน้าจะถูกแทนที่ แล้ววาดกลับทับบนภาพแบบมองไม่เห็น การเลือก ค้นหา และคัดลอกจึงยังใช้งานได้ หากต้นฉบับเป็นงานสแกนที่ไม่มีชั้นข้อความอยู่แต่แรก ก็ไม่มีอะไรให้เก็บรักษา ให้ใช้ OCR PDF ก่อน
เอกสารถูกอัปโหลดไปเรนเดอร์หรือไม่
ไม่ ทุกหน้าถูกเรนเดอร์โดย PDF.js ลงบนแคนวาสในเบราว์เซอร์ของคุณเอง แล้วประกอบกลับด้วย pdf-lib ใน Web Worker ไม่มีอะไรถูกส่งออกไป ซึ่งก็แปลว่าความเร็วขึ้นอยู่กับอุปกรณ์ของคุณ ไม่ใช่คิวที่ไหนสักแห่ง

เครื่องมือที่เกี่ยวข้อง