링크 추가와 편집
문서 안 URL을 클릭되게 만들거나, 밖으로 나가는 링크를 빼내요.
이 도구는 브라우저 안에서만 실행돼요. 파일은 절대 업로드되지 않으며, 브라우저의 네트워크 탭에서 직접 확인할 수 있어요. 직접 확인해 보세요. 브라우저의 네트워크 탭을 열어 두고 지켜보면, 남은 작업이 있는지 묻는 작은 요청 하나만 보여요. 도구 이름과 해시뿐이고, 파일은 절대 포함되지 않아요.
이 도구가 하는 일
A URL printed in a PDF is usually not a link. It is text that looks like one, because whatever produced the document wrote the characters and never created the annotation that makes them clickable. This tool finds those and makes them real, lets you draw links by hand over anything else, and can strip existing links out. Links are annotations laid over a rectangle, so nothing about the page's appearance changes either way.
The common case is a document exported from a design tool or scanned from print where every web address is dead text. The other direction matters too: stripping outbound links from a document before it goes somewhere untrusted, or before it is published, so nobody follows a tracking address that was fine internally.
작동 방식
- Drop the PDF onto this page.
- Leave automatic detection on for a first pass. Every URL and e-mail address found in the text is listed with the page it sits on.
- Draw a rectangle over anything else that should be clickable and give it a web address, or a page number to jump to inside the document.
- Turn on replacing existing links if the document already carries some and you would rather start clean.
- Press Save links and download the result.
Detection is harder than a regular expression over the page text, which is why most tools that offer it miss half the links. A PDF regularly splits one URL across several text runs, so a naive scan finds "https://exa" and "mple.com/report" and links neither. The runs on each line are joined before matching, which finds the whole address. Trailing punctuation is then trimmed - the full stop that ended the sentence rather than the one inside the domain - and a closing bracket is only dropped when it is unbalanced, because plenty of real addresses end in one and truncating those produces a link that leads nowhere. What is not linked is as deliberate as what is. A bare host with no dot in it is rejected, because in running prose "e.g" and "vs" match far more often than "http://localhost" appears, and a wrong link is worse than a missing one. An address beginning www. gets https:// in front of it, since a bare host is not a URI and readers show the annotation as broken. E-mail addresses become mailto: links, and an address inside a URL is not linked twice.
Links are written without a border and with the print flag set. The first is what stops readers drawing the black box round every link that made documents from the 1990s so recognisable; the second is what keeps the link alive when someone prints the document back to PDF. Internal jumps are written as explicit destinations that preserve the reader's current zoom and land at the top of the target page, rather than as named destinations, which break as soon as anyone splits or merges the file.
Running detection twice on the same document adds a second annotation over the same words unless you turn on replacing existing links first. Two stacked links behave unpredictably - readers pick whichever they find first - so turn that option on for a second pass, and leave it off when the document already carries hand-made links you want to keep.
Stripping outbound links is a separate pass and it ignores everything else on the page: every link with a web address is removed and the internal page-to-page jumps are kept, so a document keeps its own navigation and loses its ability to send a reader anywhere. Sanitise PDF is the wider version of this, removing JavaScript, launch actions and embedded files as well.
Detection needs the text of the document, which is read in your browser by PDF.js, and the annotations are written by pdf-lib in a Web Worker. No address in your document is looked up, resolved or checked against anything - which also means a link to a page that no longer exists is written exactly as printed.
이 도구가 할 수 없는 일
- Detection can only find what is in the text layer. A scan has no text until it has been through OCR, and an address broken across two lines is read as two fragments, so neither is linked.
자주 묻는 질문
- 제 PDF의 URL은 왜 이미 클릭되지 않나요?
- PDF의 링크는 텍스트의 속성이 아니라 주석, 그러니까 동작이 붙은 사각형이기 때문이에요. Word와 대부분의 디자인 도구는 URL을 붙여넣을 때 링크를 만들지만, 내보내는 과정에서 잃어버리는 경로가 있고 스캔본은 애초에 없어요. 웹 주소를 찍은 그림만 있을 뿐이죠. 자동 감지는 텍스트를 읽어 주소를 찾고 그 위에 빠진 주석을 써 넣어요.
- 문서의 한 페이지에서 다른 페이지로 링크를 걸 수 있나요?
- 네. 사각형을 그리고 웹 주소 대신 페이지 번호를 주세요. 이동은 명시적 목적지로 저장돼서 보던 확대 배율을 유지한 채 대상 페이지 맨 위에 내려요. 목차 전체를 만드는 거라면 보통 북마크 편집이 더 나아요. 클릭되는 글 대신 옆 패널을 주니까요.
- PDF에서 링크를 없애려면 어떻게 하나요?
- 두 가지가 있고 서로 다르게 동작해요. 기존 링크 교체를 켜면 새로 추가한 것을 쓰기 전에 모든 링크를 지우니, 아무것도 추가하지 않으면 전부 지워져요. 밖으로 나가는 링크 제거는 웹을 가리키는 것만 빼고 페이지 사이 이동은 남겨요. 조직 밖으로 나가는 문서에는 이쪽이 맞아요.
- 어떤 URL은 일부만 감지돼요. 왜 그런가요?
- 거의 언제나 줄바꿈 때문이에요. 감지기는 한 줄 안의 텍스트 조각을 이어 붙인 다음 맞춰 보기 때문에, 한 줄 안에서 여러 조각으로 나뉜 주소는 통째로 찾아요. 하지만 다음 줄로 넘어간 주소는 조각 두 개로 도착하고, 각각은 URL처럼 보이지 않아요. 그런 건 직접 그리세요. 줄마다 사각형 하나씩, 둘 다 같은 주소를 담아서요.
- 링크를 확인하거나 어딘가로 보내나요?
- 둘 다 아니에요. 어떤 주소도 접속하거나 불러오거나 검증하지 않고, 문서도 업로드되지 않아요. 텍스트 추출과 주석 쓰기 모두 브라우저에서 이뤄져요. 다만 그래서 인쇄된 주소에 오타가 있으면 같은 오타를 가진 링크가 만들어져요. 저장하기 전에 목록에서 눈에 띄게 깨진 것들은 짚어 볼 만해요.