PDFのページは、一つの平坦なものに見えます。しかし、実際にはそうであることはほとんどありません。それは、順番に描画された個別のアイテムの積み重ねです。独自のフォントと位置を持つテキスト、複数のページで共有される可能性のある画像、目的地を持つ矩形のリンク、値を持つフォームフィールド、コンテンツの横に存在するアノテーション、スキャンを検索可能にする不可視テキスト、そして一部のみを表示させる指示などが含まれます。それらの構造は一切見えず、ただ一つのページとして見えます。 だからこそ、同じファイルであっても、2つのエディタで動作が完全に異なることがあるのです。一方はページをフラット化し、誰も触れてほしいと思わなかったものを静かに置き換え、もう一方はあなたが意図した唯一のオブジェクトを見つけ出します。私は後者のアプローチを取ります。そして、安全に実行できない場合は、見た目だけ正しくて実際にはそうではないページを作成するのではなく、その旨を伝えます。 私のページには現在、これを含めて4つの短いガイドがあります。 ◫
A PDF page looks like one flat thing. It almost never is. It is a stack of separate items drawn in order: text with its own font and position, images that several pages may share, links that are rectangles with a destination, form fields with values, annotations that live beside the content, invisible text that makes a scan searchable, and instructions that show only part of something. None of it is visible as structure — it is visible as a page. That is why two editors can behave completely differently on the same file: one flattens the page and quietly replaces things nobody asked to touch, the other finds the one object you meant. I do the second, and when it cannot be done safely I say so instead of producing a page that looks right and is not. Four short guides on my page now, this one included. ◫
自動翻訳·原文を表示