Chuyển đến nội dung

Thêm số trang

Đánh số các trang, theo định dạng và vị trí bạn chọn.

Xử lý trên thiết bị của bạn

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ì

This draws a number onto each page in the position you choose. The text goes into the page's content stream, so it is part of the document afterwards and prints exactly as it appears. The format is a template rather than a list of presets, which is why Page {page} of {pages}, - {page} - and {ROMAN} are all the same feature.

Use it on anything that will be printed, filed or referred to by page: a contract where the parties need to point at page 14, a scanned bundle that arrived unnumbered, or a report assembled from several separate files.

Cách hoạt động

  1. Drop the PDF onto this page.
  2. Type the format. A bare {page} is the default; Page {page} of {pages} and {ROMAN} work the same way.
  3. Choose one of the six positions - three across the top, three across the foot.
  4. Set Start counting at if the numbering should not begin at 1, and First numbered page if the opening pages should stay unmarked.
  5. Adjust the size, colour and margins if the number lands too close to the existing content.
  6. Press Add page numbers and the download starts.

The template understands a small vocabulary and leaves everything else alone. {page} is the number and {pages} the total; {roman} and {ROMAN} give i and I; {alpha} and {ALPHA} give a and A in spreadsheet order; {page+1} and {page-2} shift the printed value. {filename}, {title} and {author} come from the document itself, and {date}, {time} and {datetime} from the clock. Anything else between braces is printed as typed, so a mistyped {pge} shows up on the page where you can see and fix it rather than vanishing.

Start counting at is the number printed on the document's own first page, and the count runs up from there: set it to 25 and page 1 reads 25, page 2 reads 26. {pages} moves with it, so Page {page} of {pages} stays arithmetically true when one document continues another's numbering.

First numbered page does a different job - it decides which page first receives a mark, without changing what that mark says. Set it to 4 and pages 1 to 3 stay clean while page 4 still reads 4. If you want the fourth page to read 1, split the front matter off, number the body on its own, then merge the two back together.

The number is drawn on top of whatever is already there, and the page is never shrunk to make room, because scaling a page changes every measurement in it to solve a problem you can see. If a number lands on existing content, raise the vertical margin, drop the size, or move it to another corner.

The font is always embedded, so accented characters, Greek and Cyrillic print correctly on any reader. CJK, Arabic and Indic are not covered; the fonts that would cover them run to tens of megabytes each.

Công cụ này không làm được gì

  • Numbers that are already printed in the document are neither found nor replaced. A page that carries its own number will show two unless you place the new one somewhere else, or remove the old numbering another way first.

Câu hỏi thường gặp

Tôi có thể đặt gì vào ô định dạng?
Bất kỳ văn bản nào, cộng với các token trong dấu ngoặc nhọn: {page}, {pages}, {roman}, {ROMAN}, {alpha}, {ALPHA}, các độ dời như {page+1}, và {filename}, {title}, {author}, {date}, {time}, {datetime}. Trang {page} trên {pages} in ra Trang 3 trên 12; - {ROMAN} - in ra - III -. Một token không có trong danh sách đó được in đúng như bạn gõ.
Làm cách nào để bỏ trang bìa không đánh số?
Đặt Trang đầu tiên được đánh số thành 2. Trang 1 giữ sạch và việc đánh số bắt đầu ở trang 2, trang này vẫn hiện 2, vì việc đếm theo đúng vị trí trang của chính tài liệu. Nếu bạn cần trang thứ hai đó hiện 1 thay vì thế, hãy tách trang bìa ra, đánh số phần còn lại, rồi ghép chúng lại.
Tôi có thể dùng chữ số La Mã hoặc chữ cái không?
Có. {roman} cho i, ii, iii và {ROMAN} cho I, II, III; {alpha} và {ALPHA} cho a, b, c và A, B, C, tiếp tục thành aa sau trang thứ hai mươi sáu. Chữ số La Mã lặp lại M trên 3.999, đó là quy ước thông thường, vì gạch ngang cổ điển ở trên cần một glyph mà không phông chữ nào được tin chắc là có.
Tài liệu đã có số rồi. Chúng có bị thay thế không?
Không. Số mới được vẽ lên trên trang và số cũ giữ nguyên nơi bên tạo ra nó đặt. Hãy đặt số mới ở một góc khác, hoặc dùng một khoảng trang để chỉ những trang cần mới nhận được số.
Tài liệu của tôi có được tải lên để đánh số không?
Không. Việc đóng dấu được thực hiện bởi pdf-lib trong một Web Worker trên thiết bị của bạn, và phông chữ nó nhúng đến từ nguồn gốc của chính trang này chứ không phải một CDN phông chữ, nên ngay cả điều đó cũng không phải một yêu cầu tới ai khác. Một tập 500 trang được đánh số mà không một byte nào rời khỏi máy của bạn.

Công cụ liên quan