PDF 선형화
나머지가 도착하기 전에 첫 페이지가 보이도록 파일 순서를 바꿔요.
이 도구는 브라우저 안에서만 실행돼요. 파일은 절대 업로드되지 않으며, 브라우저의 네트워크 탭에서 직접 확인할 수 있어요. 직접 확인해 보세요. 브라우저의 네트워크 탭을 열어 두고 지켜보면, 남은 작업이 있는지 묻는 작은 요청 하나만 보여요. 도구 이름과 해시뿐이고, 파일은 절대 포함되지 않아요.
이 도구가 하는 일
A linearised PDF is the same document with its objects in a different order. Everything the first page needs is moved to the front of the file, so a reader can draw page one while the remaining megabytes are still arriving. Nothing about the pages, the text or the images changes - open the result next to the original and you will not be able to tell them apart on screen.
Do it to any PDF you publish on a website, link to in an email, or hand to a viewer embedded in an app. It matters most for large files on slow connections, where a document that opens in two seconds and one that appears to hang for thirty are the same file in two different orders.
작동 방식
- Drop the PDF onto this page. Files up to 300 MB are accepted.
- Leave Also repack the file on. It recompresses the streams first, which usually takes another 10 to 25 per cent off the size.
- Press Linearize.
- The download starts on its own, with a -web suffix so you can tell the two versions apart.
- Upload the result as it is. No setting is needed to produce the effect, though your server must support byte-range requests for readers to use it.
The mechanism is ordering, not compression. In an ordinary PDF the objects sit wherever the producer wrote them and the index that finds them is at the end, so a reader over HTTP either waits for the whole file or asks for pieces of it in several round trips. Linearising puts a small hint table, the first page and every object that page depends on right at the front, followed by the rest in page order.
Repacking and linearising pull against each other, which is why the order of the passes matters. Object streams make a file smaller by packing many objects into one compressed block, and linearisation needs the first page's objects reachable on their own. The repack runs first and the linearisation last, so qpdf resolves the conflict rather than producing a file that claims to be linearised and is not.
The effect only exists if the server cooperates. Fast Web View depends on HTTP byte-range requests: the reader asks for the first part of the file, draws page one, then asks for more. A server that does not honour ranges sends the whole file regardless, and the linearised document behaves like the ordinary one. Most static hosting and every CDN supports ranges; some application frameworks streaming a file through their own handler do not.
If the repack fails on an unusual file, you still get the linearisation you asked for. Recompression is treated as a bonus rather than a requirement.
The job happens in your browser through qpdf compiled to WebAssembly, so the file you are preparing to publish - often still a draft - reaches no server before you put it on one.
이 도구가 할 수 없는 일
- The benefit only appears when the file is served over HTTP by a server that supports byte-range requests. Opening a linearised file from disk is no faster.
자주 묻는 질문
- 선형화는 파일에 실제로 무엇을 하나요?
- 같은 내용을 다른 순서로 다시 써요. 힌트 표와 첫 페이지에 필요한 것이 앞으로 가고, 나머지가 페이지 순서대로 따라와요. 페이지나 이미지, 글자는 하나도 바뀌지 않아요. 일부 객체가 더 이상 같은 압축 블록을 나눠 쓸 수 없어서, 파일은 완전히 묶은 버전보다 대체로 조금 커져요.
- 메일로만 보내는 파일에도 필요한가요?
- 아니요. 빠른 웹 보기는 뷰어가 HTTP로 문서를 조각조각 가져올 때만 도움이 돼요. 첨부 파일은 열리기 전에 전부 내려받으니 선형화해도 달라지는 게 없어요. 직접 호스팅하거나 페이지에 넣거나 링크로 거는 파일에 쓰세요.
- 파일이 더 커지나요, 작아지나요?
- 두 효과가 함께 작용해요. 선형화는 힌트 표를 더하고 일부 객체가 함께 묶이지 못하게 하니 조금 손해예요. 선택 사항인 다시 묶기는 모든 스트림을 다시 압축하는데, 아무도 최적화하지 않은 파일이라면 보통 10~25퍼센트를 줄여줘요. 다시 묶기를 켜면 결과는 대개 처음보다 작아져요.
- 파일이 선형화됐는지 어떻게 확인하나요?
- 결과를 Acrobat에서 열고 문서 속성을 보면 빠른 웹 보기가 예로 나와요. 명령줄에서는 qpdf --check가 파일을 선형화된 것으로 보고해요. 실제 효과를 시험하려면 범위 요청을 받아주는 서버에서 HTTP로 제공해 봐야 해요.
- 파일이 어딘가로 업로드되나요?
- 아니요. qpdf가 브라우저 안 웹 워커에서 WebAssembly로 실행돼서, 문서는 직접 게시하기 전까지 기기에 남아 있어요. 페이지가 한 번 로드되면 연결 없이도 작동해요.