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

ครอบตัด PDF

ตัดพื้นที่ที่มองเห็นของหน้า ด้วยมือ ตามสัดส่วน หรืออัตโนมัติ

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

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

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

Cropping a PDF sets its crop box, which tells a reader which part of each sheet to display. It does not delete anything: the content outside the box is still in the file, and widening the box again brings it back. That is worth knowing before you crop a signature or an account number off something and send it on.

The usual reasons are a scanner that left 15 mm of grey around every page, a document with margins so wide it wastes half a tablet screen, a page that has to fit a slide or an e-reader, or receipts photographed with a desk in the frame.

วิธีทำงาน

  1. Drop the PDF onto this page and wait for the first page to render.
  2. Choose the mode: drag the rectangle yourself, let the tool find the content, or crop to a fixed shape.
  3. For a manual crop, drag the handles, or type what to take off each edge in millimetres, points or inches.
  4. For an automatic crop, set the breathing room to leave around the content - six points is a sensible start.
  5. Decide whether to crop every page or only a range, then press Crop.
  6. Check a page in the downloaded file before you discard the original.

The automatic mode is why most people come here. Each page is rendered small - 400 pixels on its long edge, which is ample, since ink boundaries do not move when you look at them from further away - and every pixel more than about 9 percent away from white counts as content. The bounding box of that content, plus your margin, becomes the crop box. Rendering 300 pages at full resolution to find their margins would cost more than the crop.

Automatic cropping measures each page separately, so pages end up different sizes when their content does. That suits reading on a screen and is awkward for printing, where one tray wants one size; crop by hand or by shape if every page must match. A page with no ink has no box to compute, so it keeps its full size rather than being cropped to nothing, and a document where every page is blank is refused rather than destroyed.

Crop to a shape takes the largest rectangle of the proportions you pick that fits inside the page, centred. A4 is the 1:1.414 shape of the paper itself, so it trims a letter-sized page to those proportions; 16:9 on a portrait page removes a great deal of height, which is the point when the result is going into a slide. Nothing is scaled - only the visible window changes.

Also shrink the page size reduces the media box along with the crop box, so readers and printer drivers that ignore the crop box obey too. It is harder to undo, and it is still not deletion: the content outside is exactly where it was.

Everything happens in your browser: PDF.js renders the pages to measure them and pdf-lib writes the boxes. The pages are never re-encoded, so a scan keeps its original image data at full resolution.

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

  • Cropping hides content, it does not remove it. Everything outside the crop box remains in the file and reappears the moment somebody widens the box. Use Redact PDF when the content must actually be gone.

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

เนื้อหาที่ถูกครอบตัดออกไปหายไปจริงไหม
ไม่ การครอบตัดเขียนกรอบครอบตัดที่บอกโปรแกรมอ่านว่าให้แสดงส่วนไหน ส่วนข้อความและรูปภาพนอกกรอบยังอยู่ในไฟล์ครบถ้วน และเครื่องมือใดก็ตามที่ขยายกรอบก็เรียกมันกลับมาได้ ถ้าคุณครอบตัดเพื่อซ่อนลายเซ็น ที่อยู่ หรือรายละเอียดธนาคาร ให้ใช้เครื่องมือปิดบังข้อมูลใน PDF แทน ซึ่งสร้างหน้าขึ้นใหม่จากพิกเซล จึงไม่เหลืออะไรอยู่ข้างใต้
การตัดขอบอัตโนมัติรู้ได้อย่างไรว่าเนื้อหาอยู่ตรงไหน
แต่ละหน้าถูกเรนเดอร์ให้ด้านยาวมีขนาด 400 พิกเซล และทุกพิกเซลที่ห่างจากสีขาวเกินราว 9 เปอร์เซ็นต์จะถูกนับว่าเป็นหมึก ค่าเกณฑ์นี้เลือกมาเพื่อไม่ให้กระดาษสแกนสีเทาถูกเข้าใจผิดว่าเป็นเนื้อหา ขณะที่ไฮไลต์สีเหลืองอ่อนยังนับเป็นเนื้อหาอยู่ กรอบที่ล้อมพิกเซลเหล่านั้น ขยายออกตามระยะขอบที่คุณตั้ง และจำกัดไม่ให้เกินหน้ากระดาษ จะกลายเป็นกรอบครอบตัด
ฉันครอบตัดเฉพาะบางหน้า หรือครอบตัดแต่ละหน้าไม่เหมือนกันได้ไหม
ได้ เปลี่ยนตัวเลือกนำไปใช้กับ จากทุกหน้าเป็นช่วงหน้า แล้วระบุหน้าที่ต้องการ ส่วนที่เหลือจะถูกปล่อยไว้ตามเดิม ในโหมดอัตโนมัติ แต่ละหน้าในช่วงจะถูกวัดจากเนื้อหาของตัวเอง เอกสารที่มีหน้าคละแบบจึงไม่ต้องรับระยะขอบของหน้าใดหน้าหนึ่งไปทั้งหมด
ฉันย้อนการครอบตัดในภายหลังได้ไหม
ได้ โดยครอบตัดอีกครั้งด้วยกรอบที่ใหญ่ขึ้น เพราะไม่มีอะไรถูกลบออกไป เนื้อหาจึงกลับมา แต่จะยุ่งยากกว่าถ้าคุณเปิดตัวเลือกย่อขนาดหน้ากระดาษด้วย เพราะตัวแผ่นถูกกำหนดใหม่ไปแล้ว ไม่ว่าทางไหนก็ควรเก็บไฟล์ต้นฉบับไว้จนกว่าคุณจะตรวจผลลัพธ์เรียบร้อย
เอกสารต้องออกจากเครื่องของฉันเพื่อไปวัดขนาดไหม
ไม่ การเรนเดอร์ที่ใช้หาระยะขอบเกิดขึ้นบน OffscreenCanvas ภายใน Web Worker บนเครื่องของคุณ และพิกเซลเหล่านั้นไม่เคยออกไปไหน การครอบตัดอัตโนมัติต้องดูหน้าเอกสารจริง แต่มันดูอยู่ในเครื่อง และไม่มีอะไรถูกส่งออกไป

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