| 1 |
# PyMuPDF Japanese documentation |
| 2 |
# Copyright (C) 2015-2023, Artifex |
| 3 |
# This file is distributed under the same license as the PyMuPDF package. |
| 4 |
# Jamie Lemon <[email protected]>, 2023. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PyMuPDF 1.23.0rc1\n" |
| 10 |
"Report-Msgid-Bugs-To: \n" |
| 11 |
"POT-Creation-Date: 2025-11-25 23:33+0000\n" |
| 12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 13 |
"Last-Translator: Suzan Sanver <[email protected]>\n" |
| 14 |
"Language: ja\n" |
| 15 |
"Language-Team: ja <[email protected]>\n" |
| 16 |
"Plural-Forms: nplurals=1; plural=0;\n" |
| 17 |
"MIME-Version: 1.0\n" |
| 18 |
"Content-Type: text/plain; charset=utf-8\n" |
| 19 |
"Content-Transfer-Encoding: 8bit\n" |
| 20 |
"Generated-By: Babel 2.10.3\n" |
| 21 |
|
| 22 |
#: ../../header.rst:-1 6a4f4d9aba284482b17f5158db768103 |
| 23 |
msgid "Artifex" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#: ../../header.rst:-1 ca8dbdbe51984f3d841ffa5414e59d9f |
| 27 |
msgid "" |
| 28 |
"PyMuPDF is a high-performance Python library for data extraction, " |
| 29 |
"analysis, conversion & manipulation of PDF (and other) documents." |
| 30 |
msgstr "PyMuPDF は、PDF (およびその他の)ドキュメントのデータ抽出、分析、変換、操作のための高性能な Python ライブラリです。" |
| 31 |
|
| 32 |
#: ../../header.rst:-1 acc2a6d07e304bfeb3e884b734b79031 |
| 33 |
msgid "" |
| 34 |
"PDF Text Extraction, PDF Image Extraction, PDF Conversion, PDF Tables, " |
| 35 |
"PDF Splitting, PDF Creation, Pyodide, PyScript" |
| 36 |
msgstr "PDFテキスト抽出、PDFイメージ抽出、PDF変換、PDFテーブル、PDF分割、PDF作成, Pyodide, PyScript" |
| 37 |
|
| 38 |
#: ../../app3.rst:7 635cfbba07cc4d7fafc89714611a9318 |
| 39 |
msgid "Appendix 3: Assorted Technical Information" |
| 40 |
msgstr "付録3:さまざまな技術情報" |
| 41 |
|
| 42 |
#: ../../app3.rst:8 4769a2a2c2d84bf2b3ee95f7b4bf80e3 |
| 43 |
msgid "" |
| 44 |
"This section deals with various technical topics, that are not " |
| 45 |
"necessarily related to each other." |
| 46 |
msgstr "このセクションでは、必ずしも関連しないさまざまな技術的なトピックについて取り扱います。" |
| 47 |
|
| 48 |
#: ../../app3.rst:15 ec8a4400984a477ca650493b54e8d584 |
| 49 |
msgid "Image Transformation Matrix" |
| 50 |
msgstr "画像変換行列" |
| 51 |
|
| 52 |
#: ../../app3.rst:16 e34c11954ed74384aadeee4920e21331 |
| 53 |
msgid "" |
| 54 |
"Starting with version 1.18.11, the image transformation matrix is " |
| 55 |
"returned by some methods for text and image extraction: " |
| 56 |
":meth:`Page.get_text` and :meth:`Page.get_image_bbox`." |
| 57 |
msgstr "" |
| 58 |
"バージョン1.18.11から、テキストと画像の抽出に関する一部のメソッドで画像変換行列が返されます::meth:`Page.get_text` " |
| 59 |
"および :meth:`Page.get_image_bbox` 。" |
| 60 |
|
| 61 |
#: ../../app3.rst:18 b72e0ef8b41e494489563ac4faed2c68 |
| 62 |
msgid "" |
| 63 |
"The transformation matrix contains information about how an image was " |
| 64 |
"transformed to fit into the rectangle (its \"boundary box\" = \"bbox\") " |
| 65 |
"on some document page. By inspecting the image's bbox on the page and " |
| 66 |
"this matrix, one can determine for example, whether and how the image is " |
| 67 |
"displayed scaled or rotated on a page." |
| 68 |
msgstr "変換行列には、画像が文書ページ上の矩形(「境界ボックス」=「bbox」)に適合するためにどのように変換されたかに関する情報が含まれています。ページ上の画像のbboxとこの行列を検査することにより、例えば画像がページ上で拡大縮小または回転して表示されるかどうか、そしてどのように表示されるかを判断することができます。" |
| 69 |
|
| 70 |
#: ../../app3.rst:20 d13c3c9d78be4c7baf9efb9708ddda02 |
| 71 |
msgid "" |
| 72 |
"The relationship between image dimension and its bbox on a page is the " |
| 73 |
"following:" |
| 74 |
msgstr "画像の寸法とページ上のbboxとの関係は次のとおりです:" |
| 75 |
|
| 76 |
#: ../../app3.rst:24 24589c9043924415af09f8353878e2fa |
| 77 |
msgid "Using the original image's width and height," |
| 78 |
msgstr "元の画像の幅と高さを使用して、" |
| 79 |
|
| 80 |
#: ../../app3.rst:23 5fcd053e3c4745e3ac9752cf844e3899 |
| 81 |
msgid "define the image rectangle `imgrect = pymupdf.Rect(0, 0, width, height)`" |
| 82 |
msgstr "画像の矩形を `imgrect = pymupdf.Rect(0, 0, width, height)` と定義します。" |
| 83 |
|
| 84 |
#: ../../app3.rst:24 7a8b751ef2f84e4eb0d4f3bffd76a9ba |
| 85 |
msgid "" |
| 86 |
"define the \"shrink matrix\" `shrink = pymupdf.Matrix(1/width, 0, 0, " |
| 87 |
"1/height, 0, 0)`." |
| 88 |
msgstr "「縮小行列」を `shrink = pymupdf.Matrix(1/width, 0, 0,1/height, 0, 0)` と定義します。" |
| 89 |
|
| 90 |
#: ../../app3.rst:26 be4e302d72a047d9ad89310d107eb3e3 |
| 91 |
msgid "" |
| 92 |
"Transforming the image rectangle with its shrink matrix, will result in " |
| 93 |
"the unit rectangle: `imgrect * shrink = pymupdf.Rect(0, 0, 1, 1)`." |
| 94 |
msgstr "" |
| 95 |
"画像矩形を縮小行列で変換すると、単位矩形が得られます: `imgrect * shrink = pymupdf.Rect(0, 0, 1, 1)`" |
| 96 |
" 。" |
| 97 |
|
| 98 |
#: ../../app3.rst:28 cd872603d2774c46a06dda3917faa61c |
| 99 |
msgid "" |
| 100 |
"Using the image **transformation matrix** \"transform\", the following " |
| 101 |
"steps will compute the bbox::" |
| 102 |
msgstr "画像 **変換行列** 「transform」を使用して、次の手順でbboxを計算します:" |
| 103 |
|
| 104 |
#: ../../app3.rst:34 b2fb7d53a3f8485390e8070c74877726 |
| 105 |
msgid "" |
| 106 |
"Inspecting the matrix product `shrink * transform` will reveal all " |
| 107 |
"information about what happened to the image rectangle to make it fit " |
| 108 |
"into the bbox on the page: rotation, scaling of its sides and translation" |
| 109 |
" of its origin. Let us look at an example:" |
| 110 |
msgstr "" |
| 111 |
"行列の積 `shrink * transform` " |
| 112 |
"を検査することで、画像矩形がページ上のbboxに適合させるために何が起こったかに関するすべての情報が明らかになります。回転、辺のスケーリング、および原点の移動です。例を見てみましょう:" |
| 113 |
|
| 114 |
#: ../../app3.rst:71 5677aee6873b459a93e06865c3302434 |
| 115 |
msgid "PDF Base 14 Fonts" |
| 116 |
msgstr "PDFベース14フォント" |
| 117 |
|
| 118 |
#: ../../app3.rst:72 3df5aeca5c3f4ccf9325390f51398b06 |
| 119 |
msgid "" |
| 120 |
"The following 14 builtin font names **must be supported by every PDF " |
| 121 |
"viewer** application. They are available as a dictionary, which maps " |
| 122 |
"their full names amd their abbreviations in lower case to the full font " |
| 123 |
"basename. Wherever a **fontname** must be provided in PyMuPDF, any **key " |
| 124 |
"or value** from the dictionary may be used::" |
| 125 |
msgstr "" |
| 126 |
"以下の14の組み込みフォント名は、**すべてのPDFビューアアプリケーションでサポートされる必要があります** " |
| 127 |
"。これらは辞書として利用可能で、それぞれのフルネームとその略称を小文字で完全な **フォントベース名** " |
| 128 |
"にマッピングします。PyMuPDFでフォント名を提供する必要がある場合、辞書からの任意の **キーまたは値** を使用できます:" |
| 129 |
|
| 130 |
#: ../../app3.rst:105 a5f070fd9c6546bfa33ed69a6639683e |
| 131 |
msgid "" |
| 132 |
"In contrast to their obligation, not all PDF viewers support these fonts " |
| 133 |
"correctly and completely -- this is especially true for Symbol and " |
| 134 |
"ZapfDingbats. Also, the glyph (visual) images will be specific to every " |
| 135 |
"reader." |
| 136 |
msgstr "義務とは対照的に、すべてのPDFビューアがこれらのフォントを正確かつ完全にサポートしているわけではありません。特にSymbolとZapfDingbatsについては、これが特に当てはまります。また、グリフ(視覚的な)イメージは、それぞれの閲覧者に固有のものになります。" |
| 137 |
|
| 138 |
#: ../../app3.rst:107 6842b8433a9547b6a82435e36e06fb70 |
| 139 |
msgid "" |
| 140 |
"To see how these fonts can be used -- including the **CJK built-in** " |
| 141 |
"fonts -- look at the table in :meth:`Page.insert_font`." |
| 142 |
msgstr "" |
| 143 |
"これらのフォントがどのように使用されるか( **CJK組み込みフォント** も含めて)、:meth:`Page.insert_font` " |
| 144 |
"のテーブルをご覧ください。" |
| 145 |
|
| 146 |
#: ../../app3.rst:114 e3268f776b5a4b06a629bf9f9c25828c |
| 147 |
msgid "Adobe PDF References" |
| 148 |
msgstr "Adobe PDFリファレンス" |
| 149 |
|
| 150 |
#: ../../app3.rst:116 17a3fab0bc0d4dcc9ab758228d6be220 |
| 151 |
msgid "" |
| 152 |
"This PDF Reference manual published by Adobe is frequently quoted " |
| 153 |
"throughout this documentation. It can be viewed and downloaded from " |
| 154 |
"`opensource.adobe.com <https://opensource.adobe.com/dc-acrobat-sdk-" |
| 155 |
"docs/standards/pdfstandards/pdf/PDF32000_2008.pdf>`_." |
| 156 |
msgstr "" |
| 157 |
"Adobeによって公開されたこのPDFリファレンスマニュアルは、このドキュメンテーション全体で頻繁に引用されています。 `こちら " |
| 158 |
"<https://opensource.adobe.com/dc-acrobat-sdk-" |
| 159 |
"docs/standards/pdfstandards/pdf/PDF32000_2008.pdf>`_ から閲覧およびダウンロードが可能です。" |
| 160 |
|
| 161 |
#: ../../app3.rst:125 c4f0367b9f574635971bdcbd0d2ca6fb |
| 162 |
msgid "Using Python Sequences as Arguments in PyMuPDF" |
| 163 |
msgstr "PythonシーケンスをPyMuPDFで引数として使用する場合" |
| 164 |
|
| 165 |
#: ../../app3.rst:126 3d89e490fbf7457284a6ae3fcc59d506 |
| 166 |
msgid "" |
| 167 |
"When PyMuPDF objects and methods require a Python **list** of numerical " |
| 168 |
"values, other Python **sequence types** are also allowed. Python classes " |
| 169 |
"are said to implement the **sequence protocol**, if they have a " |
| 170 |
"`__getitem__()` method." |
| 171 |
msgstr "" |
| 172 |
"PyMuPDFのオブジェクトとメソッドが数値の値のPython **リスト** を必要とする場合、他のPython **シーケンス型** " |
| 173 |
"も許可されています。Pythonのクラスは、`__getitem__()` メソッドを持つ場合、**シーケンスプロトコル** " |
| 174 |
"を実装していると言われています。" |
| 175 |
|
| 176 |
#: ../../app3.rst:128 bd7b31cc19e54f17857367f55587a14e |
| 177 |
msgid "" |
| 178 |
"This basically means, you can interchangeably use Python *list* or " |
| 179 |
"*tuple* or even *array.array*, *numpy.array* and *bytearray* types in " |
| 180 |
"these cases." |
| 181 |
msgstr "" |
| 182 |
"基本的には、これらの場合にPythonの *リスト* や *タプル* 、*array.array* 、*numpy.array* " |
| 183 |
"、*bytearray* 型を互換性を持って使用できることを意味しています。" |
| 184 |
|
| 185 |
#: ../../app3.rst:130 cc50a15ebc1a45c3ba30d1d2615eeb1b |
| 186 |
msgid "For example, specifying a sequence `\"s\"` in any of the following ways" |
| 187 |
msgstr "例えば、次のいずれかの方法でシーケンス `\"s\"` を指定すると" |
| 188 |
|
| 189 |
#: ../../app3.rst:132 ba9e965ec2384d4aaaacc84791926237 |
| 190 |
msgid "`s = [1, 2]` -- a list" |
| 191 |
msgstr "`s = [1, 2]` – リスト" |
| 192 |
|
| 193 |
#: ../../app3.rst:133 a1b8ab6b13fe41159b6b656dd7debae0 |
| 194 |
msgid "`s = (1, 2)` -- a tuple" |
| 195 |
msgstr "`s = (1, 2)` – タプル" |
| 196 |
|
| 197 |
#: ../../app3.rst:134 c68b9c09194b47c78b57fa6656c1ffea |
| 198 |
msgid "`s = array.array(\"i\", (1, 2))` -- an array.array" |
| 199 |
msgstr "`s = array.array(\"i\", (1, 2))` – array.array" |
| 200 |
|
| 201 |
#: ../../app3.rst:135 3a8427a9db4d4436a94ddb0536f292f1 |
| 202 |
msgid "`s = numpy.array((1, 2))` -- a numpy array" |
| 203 |
msgstr "`s = numpy.array((1, 2))` – numpy配列" |
| 204 |
|
| 205 |
#: ../../app3.rst:136 33fa18c1c81f441890f097d10863edf5 |
| 206 |
msgid "`s = bytearray((1, 2))` -- a bytearray" |
| 207 |
msgstr "`s = bytearray((1, 2))` – bytearray" |
| 208 |
|
| 209 |
#: ../../app3.rst:138 723f57c7a65942108b9add6c3d6123e3 |
| 210 |
msgid "will make it usable in the following example expressions:" |
| 211 |
msgstr "これによって、以下の例の式で使用可能になります:" |
| 212 |
|
| 213 |
#: ../../app3.rst:140 7e8310592817456db2c249694ee67e4c |
| 214 |
msgid "`pymupdf.Point(s)`" |
| 215 |
msgstr "" |
| 216 |
|
| 217 |
#: ../../app3.rst:141 ef9f88aff26342c1b8b682b45b03735a |
| 218 |
msgid "`pymupdf.Point(x, y) + s`" |
| 219 |
msgstr "" |
| 220 |
|
| 221 |
#: ../../app3.rst:142 0a05dd917a434de3b831f92af1f206d8 |
| 222 |
msgid "`doc.select(s)`" |
| 223 |
msgstr "" |
| 224 |
|
| 225 |
#: ../../app3.rst:144 e7823b7a8a1642dea3763c0d1fcf75df |
| 226 |
msgid "" |
| 227 |
"Similarly with all geometry objects :ref:`Rect`, :ref:`IRect`, " |
| 228 |
":ref:`Matrix` and :ref:`Point`." |
| 229 |
msgstr "" |
| 230 |
"同様に、すべてのジオメトリオブジェクト :ref:`Rect` 、:ref:`IRect` 、:ref:`Matrix` 、 " |
| 231 |
":ref:`Point` も同様です。" |
| 232 |
|
| 233 |
#: ../../app3.rst:146 e62989d3437d4c809e933779b0b4f916 |
| 234 |
msgid "" |
| 235 |
"Because all PyMuPDF geometry classes themselves are special cases of " |
| 236 |
"sequences, they (with the exception of :ref:`Quad` -- see below) can be " |
| 237 |
"freely used where numerical sequences can be used, e.g. as arguments for " |
| 238 |
"functions like *list()*, *tuple()*, *array.array()* or *numpy.array()*. " |
| 239 |
"Look at the following snippet to see this work." |
| 240 |
msgstr "" |
| 241 |
"なぜなら、すべてのPyMuPDFジオメトリクラス自体がシーケンスの特殊なケースであるため、( :ref:`Quad` " |
| 242 |
"を除く)数値のシーケンスが使用可能な場所で自由に使用できるからです。例えば、 *list()* 、 *tuple()* 、 " |
| 243 |
"*array.array()* " |
| 244 |
|
| 245 |
#: ../../app3.rst:163 cd48dbd7918c44989e77808c4e3d2273 |
| 246 |
msgid "" |
| 247 |
":ref:`Quad` is a Python sequence object as well and has a length of 4. " |
| 248 |
"Its items however are :data:`point_like` -- not numbers. Therefore, the " |
| 249 |
"above remarks do not apply." |
| 250 |
msgstr "" |
| 251 |
":ref:`Quad` もPythonのシーケンスオブジェクトであり、長さが4です。ただし、そのアイテムは数値ではなく " |
| 252 |
":data:`point_like` です。したがって、上記の注釈は適用されません。" |
| 253 |
|
| 254 |
#: ../../app3.rst:170 a239cac6134847fa88f5fdc763bc0034 |
| 255 |
msgid "Ensuring Consistency of Important Objects in PyMuPDF" |
| 256 |
msgstr "重要なオブジェクトの整合性を確保するためのPyMuPDF" |
| 257 |
|
| 258 |
#: ../../app3.rst:171 94db2c4ab30441ca82c022e184f57bf9 |
| 259 |
msgid "" |
| 260 |
"PyMuPDF is a Python binding for the C library MuPDF. While a lot of " |
| 261 |
"effort has been invested by MuPDF's creators to approximate some sort of " |
| 262 |
"an object-oriented behavior, they certainly could not overcome basic " |
| 263 |
"shortcomings of the C language in that respect." |
| 264 |
msgstr "PyMuPDFは、CライブラリMuPDFのPythonバインディングです。MuPDFの開発者たちは、ある種のオブジェクト指向の振る舞いを模倣するために多くの努力をしてきましたが、C言語の基本的な制約を克服することはできませんでした。" |
| 265 |
|
| 266 |
#: ../../app3.rst:173 7cf69b3e065341f0a20a77da785f6027 |
| 267 |
msgid "" |
| 268 |
"Python on the other hand implements the OO-model in a very clean way. The" |
| 269 |
" interface code between PyMuPDF and MuPDF consists of two basic files: " |
| 270 |
"*pymupdf.py* and *fitz_wrap.c*. They are created by the excellent SWIG " |
| 271 |
"tool for each new version." |
| 272 |
msgstr "" |
| 273 |
"一方で、Pythonは非常にクリーンな方法でOOモデルを実装しています。PyMuPDFとMuPDFの間のインターフェースコードは、基本的に2つのファイルから構成されています:" |
| 274 |
" *pymupdf.py* と *fitz_wrap.c* 。これらは、新バージョンごとに優れたSWIGツールによって作成されます。" |
| 275 |
|
| 276 |
#: ../../app3.rst:175 05bb51a7321b4ecd8dc9585c3e3f3b8c |
| 277 |
msgid "" |
| 278 |
"When you use one of PyMuPDF's objects or methods, this will result in " |
| 279 |
"execution of some code in *pymupdf.py*, which in turn will call some C " |
| 280 |
"code compiled with *fitz_wrap.c*." |
| 281 |
msgstr "" |
| 282 |
"PyMuPDFのオブジェクトやメソッドのいずれかを使用すると、これにより *pymupdf.py* でいくつかのコードが実行され、それがさらに " |
| 283 |
"*fitz_wrap.c* でコンパイルされたCコードを呼び出します。" |
| 284 |
|
| 285 |
#: ../../app3.rst:177 0d437950b2ba4e1cbdfd6ccd5a4b5f4b |
| 286 |
msgid "" |
| 287 |
"Because SWIG goes a long way to keep the Python and the C level in sync, " |
| 288 |
"everything works fine, if a certain set of rules is being strictly " |
| 289 |
"followed. For example: **never access** a :ref:`Page` object, after you " |
| 290 |
"have closed (or deleted or set to ``None``) the owning :ref:`Document`. " |
| 291 |
"Or, less obvious: **never access** a page or any of its children (links " |
| 292 |
"or annotations) after you have executed one of the document methods " |
| 293 |
"*select()*, *delete_page()*, *insert_page()* ... and more." |
| 294 |
msgstr "" |
| 295 |
"SWIGはPythonとCレベルを同期させるために大いに役立っているため、一定のルールが厳密に守られる限り、すべてが正常に動作します。例えば、所有している" |
| 296 |
" :ref:`ドキュメント` を閉じたり(または削除したり、Noneに設定したり)した後に :ref:`Page` オブジェクトに " |
| 297 |
"**アクセスしないでください** 。また、より明確な例では、 *select()* 、*delete_page()* 、 " |
| 298 |
"*insert_page()* などのドキュメントメソッドを実行した後にページやその子要素(リンクや注釈など)に **アクセスしないでください**" |
| 299 |
" 。" |
| 300 |
|
| 301 |
#: ../../app3.rst:179 740cda1605364f24b13938ce08977597 |
| 302 |
msgid "" |
| 303 |
"But just no longer accessing invalidated objects is actually not enough: " |
| 304 |
"They should rather be actively deleted entirely, to also free C-level " |
| 305 |
"resources (meaning allocated memory)." |
| 306 |
msgstr "ただし、無効なオブジェクトへのアクセスをやめるだけでは実際には十分ではありません。これらのオブジェクトは、Cレベルのリソース(割り当てられたメモリ)も解放するために、完全に削除されるべきです。" |
| 307 |
|
| 308 |
#: ../../app3.rst:181 9f8e966b70d34ecfabbaf171069a4cca |
| 309 |
msgid "" |
| 310 |
"The reason for these rules lies in the fact that there is a hierarchical " |
| 311 |
"2-level one-to-many relationship between a document and its pages and " |
| 312 |
"also between a page and its links / annotations. To maintain a consistent" |
| 313 |
" situation, any of the above actions must lead to a complete reset -- in " |
| 314 |
"**Python and, synchronously, in C**." |
| 315 |
msgstr "" |
| 316 |
"これらのルールの理由は、ドキュメントとそのページ、およびページとそのリンク/注釈の間に階層的な2段階の1対多の関係があるためです。一貫した状況を維持するために、上記のアクションのいずれもが" |
| 317 |
" **PythonとCの両方で** 完全なリセットを引き起こさなければなりません。" |
| 318 |
|
| 319 |
#: ../../app3.rst:183 a7f44e6e345e43358b3a79b7c052cd44 |
| 320 |
msgid "SWIG cannot know about this and consequently does not do it." |
| 321 |
msgstr "SWIGはこれを知ることはできないため、それを実行しません。" |
| 322 |
|
| 323 |
#: ../../app3.rst:185 9f2723ebd7904acaa02811c5490da7a1 |
| 324 |
msgid "" |
| 325 |
"The required logic has therefore been built into PyMuPDF itself in the " |
| 326 |
"following way." |
| 327 |
msgstr "必要な論理はしたがって、PyMuPDF自体に以下のように組み込まれています。" |
| 328 |
|
| 329 |
#: ../../app3.rst:187 fd908d3774f14df1b4fb95b1d9afb2f4 |
| 330 |
msgid "" |
| 331 |
"If a page \"loses\" its owning document or is being deleted itself, all " |
| 332 |
"of its currently existing annotations and links will be made unusable in " |
| 333 |
"Python, and their C-level counterparts will be deleted and deallocated." |
| 334 |
msgstr "ページが所有するドキュメントを失ったり、それ自体が削除されると、現在存在するすべての注釈とリンクはPythonで使用できなくなり、それらのCレベルの対応部分が削除されて解放されます。" |
| 335 |
|
| 336 |
#: ../../app3.rst:189 25e9288e71cb47e586bca43a0f860fb2 |
| 337 |
msgid "" |
| 338 |
"If a document is closed (or deleted or set to ``None``) or if its " |
| 339 |
"structure has changed, then similarly all currently existing pages and " |
| 340 |
"their children will be made unusable, and corresponding C-level deletions" |
| 341 |
" will take place. \"Structure changes\" include methods like *select()*, " |
| 342 |
"*delePage()*, *insert_page()*, *insert_pdf()* and so on: all of these " |
| 343 |
"will result in a cascade of object deletions." |
| 344 |
msgstr "" |
| 345 |
"ドキュメントが閉じられたり(または削除されたり、 ``None`` " |
| 346 |
"に設定されたり)したり、構造が変更されたりすると、同様に現在存在するすべてのページとその子要素は使用できなくなり、対応するCレベルの削除が行われます。「構造の変更」とは、" |
| 347 |
" *select()* 、 *delete_page()* 、 *insert_page()* 、 *insert_pdf()* " |
| 348 |
"などのメソッドを含みます。これらのすべてはオブジェクトの削除の連鎖を引き起こします。" |
| 349 |
|
| 350 |
#: ../../app3.rst:191 54df808609fb4f028e086d3d8e9d2f3b |
| 351 |
msgid "" |
| 352 |
"The programmer will normally not realize any of this. If he, however, " |
| 353 |
"tries to access invalidated objects, exceptions will be raised." |
| 354 |
msgstr "プログラマーは通常、これらのいずれも気づかないでしょう。ただし、無効なオブジェクトにアクセスしようとすると、例外が発生します。" |
| 355 |
|
| 356 |
#: ../../app3.rst:193 563eaa2415b64daabefd0a63dca2bd34 |
| 357 |
msgid "" |
| 358 |
"Invalidated objects cannot be directly deleted as with Python statements " |
| 359 |
"like *del page* or *page = None*, etc. Instead, their *__del__* method " |
| 360 |
"must be invoked." |
| 361 |
msgstr "" |
| 362 |
"無効なオブジェクトは、 *del page* または *page = None* " |
| 363 |
"などのPythonステートメントで直接削除することはできません。代わりに、その *__del__* メソッドを呼び出す必要があります。" |
| 364 |
|
| 365 |
#: ../../app3.rst:195 e5c1f65e4ac6489ca69e7ebe7b57195c |
| 366 |
msgid "" |
| 367 |
"All pages, links and annotations have the property *parent*, which points" |
| 368 |
" to the owning object. This is the property that can be checked on the " |
| 369 |
"application level: if *obj.parent == None* then the object's parent is " |
| 370 |
"gone, and any reference to its properties or methods will raise an " |
| 371 |
"exception informing about this \"orphaned\" state." |
| 372 |
msgstr "" |
| 373 |
"すべてのページ、リンク、注釈には、所有するオブジェクトを指す *親* " |
| 374 |
"プロパティがあります。これはアプリケーションレベルでチェックできるプロパティです: *obj.parent == None* " |
| 375 |
"ならば、そのオブジェクトの親は存在せず、そのプロパティやメソッドへの参照は例外を発生させてこの「孤立」した状態について通知します。" |
| 376 |
|
| 377 |
#: ../../app3.rst:197 d631125a6585402abe79abea78f9a828 |
| 378 |
msgid "A sample session:" |
| 379 |
msgstr "サンプルセッション:" |
| 380 |
|
| 381 |
#: ../../app3.rst:214 9f74080977604195aab03d9e5d402dd0 |
| 382 |
msgid "This shows the cascading effect:" |
| 383 |
msgstr "これは連鎖効果を示しています。" |
| 384 |
|
| 385 |
#: ../../app3.rst:231 2b8666687af94a81ad4c68af9a5f9e6b |
| 386 |
msgid "" |
| 387 |
"Objects outside the above relationship are not included in this " |
| 388 |
"mechanism. If you e.g. created a table of contents by *toc = " |
| 389 |
"doc.get_toc()*, and later close or change the document, then this cannot " |
| 390 |
"and does not change variable *toc* in any way. It is your responsibility " |
| 391 |
"to refresh such variables as required." |
| 392 |
msgstr "" |
| 393 |
"上記の関係外のオブジェクトは、このメカニズムに含まれていません。たとえば、 `toc = doc.get_toc()` " |
| 394 |
"のように目次を作成し、後で文書を閉じたり変更したりする場合、これは変数 toc " |
| 395 |
"をどのようにも変更しません。必要に応じてそのような変数を更新する責任はあなたにあります。" |
| 396 |
|
| 397 |
#: ../../app3.rst:238 d3876be10a3649c3b2ab6f5d57c69ce0 |
| 398 |
msgid "Design of Method :meth:`Page.show_pdf_page`" |
| 399 |
msgstr "メソッド :meth:`Page.show_pdf_page` の設計" |
| 400 |
|
| 401 |
#: ../../app3.rst:241 3180435e0924483181b1a26a8cba5f32 |
| 402 |
msgid "Purpose and Capabilities" |
| 403 |
msgstr "目的と機能" |
| 404 |
|
| 405 |
#: ../../app3.rst:243 bf37b033f7ca48c58de17d9d2051b74d |
| 406 |
msgid "" |
| 407 |
"The method displays an image of a (\"source\") page of another PDF " |
| 408 |
"document within a specified rectangle of the current (\"containing\", " |
| 409 |
"\"target\") page." |
| 410 |
msgstr "このメソッドは、現在の(「含まれる」、「ターゲット」)ページの指定された矩形内に別のPDF文書の(「ソース」)ページの画像を表示します。" |
| 411 |
|
| 412 |
#: ../../app3.rst:245 6f60a372555246208767f53ea2bfd820 |
| 413 |
msgid "" |
| 414 |
"**In contrast** to :meth:`Page.insert_image`, this display is vector-" |
| 415 |
"based and hence remains accurate across zooming levels." |
| 416 |
msgstr ":meth:`Page.insert_image` **とは異なり** 、この表示はベクターベースであり、ズームレベルを超えて正確に保たれます。" |
| 417 |
|
| 418 |
#: ../../app3.rst:246 998a98e328ec42aba32d728c2b4334e4 |
| 419 |
msgid "" |
| 420 |
"**Just like** :meth:`Page.insert_image`, the size of the display is " |
| 421 |
"adjusted to the given rectangle." |
| 422 |
msgstr ":meth:`Page.insert_image` **と同様に** 、表示のサイズは指定された矩形に調整されます。" |
| 423 |
|
| 424 |
#: ../../app3.rst:248 e75e8ccc88234308a5ec9fa48fa086f2 |
| 425 |
msgid "The following variations of the display are currently supported:" |
| 426 |
msgstr "現在、次のバリエーションの表示がサポートされています:" |
| 427 |
|
| 428 |
#: ../../app3.rst:250 d8cc5e5d21b84c21b682d4ab99c0d9df |
| 429 |
msgid "" |
| 430 |
"Bool parameter `\"keep_proportion\"` controls whether to maintain the " |
| 431 |
"aspect ratio (default) or not." |
| 432 |
msgstr "Bool パラメーター `\"keep_proportion\"` はアスペクト比を保持するかどうかを制御します(デフォルト)。" |
| 433 |
|
| 434 |
#: ../../app3.rst:251 186e450479084963890fe9da769fab60 |
| 435 |
msgid "" |
| 436 |
"Rectangle parameter `\"clip\"` restricts the visible part of the source " |
| 437 |
"page rectangle. Default is the full page." |
| 438 |
msgstr "矩形パラメーター `\"clip\"` はソースページの矩形の可視部分を制限します。デフォルトはフルページです。" |
| 439 |
|
| 440 |
#: ../../app3.rst:252 4f399ef693d44c11953293c07415b9ae |
| 441 |
msgid "" |
| 442 |
"float `\"rotation\"` rotates the display by an arbitrary angle (degrees)." |
| 443 |
" If the angle is not an integer multiple of 90, only 2 of the 4 corners " |
| 444 |
"may be positioned on the target border if also `\"keep_proportion\"` is " |
| 445 |
"true." |
| 446 |
msgstr "" |
| 447 |
"float `\"rotation\"` " |
| 448 |
"は表示を任意の角度(度)で回転させます。角度が90の倍数でない場合、`\"keep_proportion\"` も true " |
| 449 |
"の場合、ターゲットの境界に4つのうち2つのコーナーのみが配置される場合があります。" |
| 450 |
|
| 451 |
#: ../../app3.rst:253 64850af2d5454c3b8c0cc5f82512df49 |
| 452 |
msgid "" |
| 453 |
"Bool parameter `\"overlay\"` controls whether to put the image on top " |
| 454 |
"(foreground, default) of current page content or not (background)." |
| 455 |
msgstr "" |
| 456 |
"Bool パラメーター `\"overlay\"` " |
| 457 |
"は、画像を現在のページコンテンツの上(前景、デフォルト)に配置するか、そうでないか(背景)を制御します。" |
| 458 |
|
| 459 |
#: ../../app3.rst:255 7e80998882b74dbd8a0af43da85cb0d4 |
| 460 |
msgid "Use cases include (but are not limited to) the following:" |
| 461 |
msgstr "使用例は以下のようなものがありますが、これに限定されません:" |
| 462 |
|
| 463 |
#: ../../app3.rst:257 996173b99261405f88be22fdbd55394b |
| 464 |
msgid "" |
| 465 |
"\"Stamp\" a series of pages of the current document with the same image, " |
| 466 |
"like a company logo or a watermark." |
| 467 |
msgstr "現在の文書の複数のページに同じ画像(企業のロゴや透かし)を「スタンプ」する。" |
| 468 |
|
| 469 |
#: ../../app3.rst:258 1c47493c9a7d4b9f86bf2e065fad544e |
| 470 |
msgid "" |
| 471 |
"Combine arbitrary input pages into one output page to support “booklet” " |
| 472 |
"or double-sided printing (known as \"4-up\", \"n-up\")." |
| 473 |
msgstr "任意の入力ページを1つの出力ページに組み合わせ、\"ブックレット\"や両面印刷をサポートする(「4-up」、「n-up」としても知られています)。" |
| 474 |
|
| 475 |
#: ../../app3.rst:259 7e5cd1ef35154a02b0bee17ee2806729 |
| 476 |
msgid "" |
| 477 |
"Split up (large) input pages into several arbitrary pieces. This is also " |
| 478 |
"called “posterization”, because you e.g. can split an A4 page " |
| 479 |
"horizontally and vertically, print the 4 pieces enlarged to separate A4 " |
| 480 |
"pages, and end up with an A2 version of your original page." |
| 481 |
msgstr "(大きな)入力ページをいくつかの任意のピースに分割する。これは「ポスタリゼーション」とも呼ばれ、たとえばA4ページを水平および垂直に分割し、4つのピースを別々のA4ページに拡大印刷して、元のページのA2バージョンを作成することができます。" |
| 482 |
|
| 483 |
#: ../../app3.rst:262 b540c10d38674f279374416c7ec65281 |
| 484 |
msgid "Technical Implementation" |
| 485 |
msgstr "テクニカル実装" |
| 486 |
|
| 487 |
#: ../../app3.rst:264 69b731e1cb1b4b1f82341ad0baeff00b |
| 488 |
msgid "" |
| 489 |
"This is done using PDF **\"Form XObjects\"**, see section 8.10 on page " |
| 490 |
"217 of :ref:`AdobeManual`. On execution of a :meth:`Page.show_pdf_page`, " |
| 491 |
"the following things happen:" |
| 492 |
msgstr "" |
| 493 |
"これはPDF **「フォームXObject」** を使用して行われます。 :ref:`AdobeManual` リファレンス " |
| 494 |
"の217ページ、セクション8.10を参照してください。 :meth:`Page.show_pdf_page` " |
| 495 |
"が実行されると、次のことが起こります。" |
| 496 |
|
| 497 |
#: ../../app3.rst:266 50910b81c885485fadb624aecb9e1577 |
| 498 |
msgid "" |
| 499 |
"The :data:`resources` and :data:`contents` objects of source page in " |
| 500 |
"source document are copied over to the target document, jointly creating " |
| 501 |
"a new **Form XObject** with the following properties. The PDF " |
| 502 |
":data:`xref` number of this object is returned by the method." |
| 503 |
msgstr "" |
| 504 |
"ソースドキュメント内のソースページの :data:`resources` と :data:`contents` " |
| 505 |
"オブジェクトは、ターゲットドキュメントにコピーされ、共同で新しい **フォームXObject** が作成されます。このオブジェクトのPDF " |
| 506 |
":data:`xref` 番号がメソッドによって返されます。" |
| 507 |
|
| 508 |
#: ../../app3.rst:268 a1333276b2c34164b105e04d7d4d2515 |
| 509 |
msgid "`/BBox` equals `/Mediabox` of the source page" |
| 510 |
msgstr "`/BBox` はソースページの `/Mediabox` に等しいです。" |
| 511 |
|
| 512 |
#: ../../app3.rst:269 fbe66f56505f421dad721b5efa325673 |
| 513 |
msgid "`/Matrix` equals the identity matrix." |
| 514 |
msgstr "`/Matrix` は単位行列と等しいです。" |
| 515 |
|
| 516 |
#: ../../app3.rst:270 3a867e67f3d843608d9857ad1253fa34 |
| 517 |
msgid "" |
| 518 |
"`/Resources` equals that of the source page. This involves a “deep-copy” " |
| 519 |
"of hierarchically nested other objects (including fonts, images, etc.). " |
| 520 |
"The complexity involved here is covered by MuPDF's grafting [#f1]_ " |
| 521 |
"technique functions." |
| 522 |
msgstr "" |
| 523 |
"`/Resources` " |
| 524 |
"はソースページのものに等しいです。これには、階層的にネストされた他のオブジェクト(フォント、画像など)の「ディープコピー」が含まれます。ここでの複雑さは、MuPDFのグラフティング[1]技術関数によってカバーされています。" |
| 525 |
|
| 526 |
#: ../../app3.rst:271 1a49d5440ba142cf9172da9514e3c857 |
| 527 |
msgid "" |
| 528 |
"This is a stream object type, and its stream is an exact copy of the " |
| 529 |
"combined data of the source page's :data:`contents` objects." |
| 530 |
msgstr "" |
| 531 |
"これはストリームオブジェクトタイプであり、そのストリームはソースページの :data:`contents` " |
| 532 |
"オブジェクトの結合データの正確なコピーです。" |
| 533 |
|
| 534 |
#: ../../app3.rst:273 dd47a3e1e5374c23ae28df502b54d8a4 |
| 535 |
msgid "" |
| 536 |
"This Form XObject is only executed once per shown source page. Subsequent" |
| 537 |
" displays of the same source page will skip this step and only create " |
| 538 |
"\"pointer\" Form XObjects (done in next step) to this object." |
| 539 |
msgstr "このフォームXObjectは、表示されるソースページごとに1回だけ実行されます。同じソースページの後続の表示では、このステップはスキップされ、このオブジェクトへの「ポインター」フォームXObject(次のステップで行われる)のみが作成されます。" |
| 540 |
|
| 541 |
#: ../../app3.rst:275 42724012ec184801b99998826eed3a72 |
| 542 |
msgid "" |
| 543 |
"A second **Form XObject** is then created which the target page uses to " |
| 544 |
"invoke the display. This object has the following properties:" |
| 545 |
msgstr "" |
| 546 |
"次に、ターゲットページが表示を呼び出すために使用する2番目の **フォームXObject** " |
| 547 |
"が作成されます。このオブジェクトには次のような特性があります。" |
| 548 |
|
| 549 |
#: ../../app3.rst:277 e03b9eae952d4d1bb6e04da71d195465 |
| 550 |
msgid "`/BBox` equals the `/CropBox` of the source page (or `\"clip\"`)." |
| 551 |
msgstr "`/BBox` はソースページの `/CropBox`(または `\"クリップ\"` )に等しいです。" |
| 552 |
|
| 553 |
#: ../../app3.rst:278 1749263652a44611a4af6fbe1690c814 |
| 554 |
msgid "`/Matrix` represents the mapping of `/BBox` to the target rectangle." |
| 555 |
msgstr "`/Matrix` は `/BBox` からターゲット矩形へのマッピングを表します。" |
| 556 |
|
| 557 |
#: ../../app3.rst:279 4fb0197364cf4a88b015f8fa5d6d6ff2 |
| 558 |
msgid "" |
| 559 |
"`/XObject` references the previous Form XObject via the fixed name " |
| 560 |
"`fullpage`." |
| 561 |
msgstr "`/XObject` は、以前のフォームXObjectを固定された名前 `fullpage` を介して参照します。" |
| 562 |
|
| 563 |
#: ../../app3.rst:280 a3736f591c254b8a801d28e108cec9a8 |
| 564 |
msgid "" |
| 565 |
"The stream of this object contains exactly one fixed statement: " |
| 566 |
"`/fullpage Do`." |
| 567 |
msgstr "このオブジェクトのストリームには、正確に1つの固定されたステートメントが含まれています: `/fullpage Do` 。" |
| 568 |
|
| 569 |
#: ../../app3.rst:281 5d63f1c31a56424b8903208d2ac3af39 |
| 570 |
msgid "" |
| 571 |
"If the method's `\"oc\"` argument is given, its value is assigned to this" |
| 572 |
" Form XObject as `/OC`." |
| 573 |
msgstr "メソッドの `「oc」` 引数が指定された場合、その値はこのフォームXObjectに `/OC` として割り当てられます。" |
| 574 |
|
| 575 |
#: ../../app3.rst:283 e5c4f530e1134086bac2da1f45b4d894 |
| 576 |
msgid "" |
| 577 |
"The :data:`resources` and :data:`contents` objects of the target page are" |
| 578 |
" now modified as follows." |
| 579 |
msgstr "ターゲットページの :data:`リソース` と :data:`コンテンツ` オブジェクトは以下のように変更されます。" |
| 580 |
|
| 581 |
#: ../../app3.rst:285 d81644bc7b114307a984f10eed9801e7 |
| 582 |
msgid "" |
| 583 |
"Add an entry to the `/XObject` dictionary of `/Resources` with the name " |
| 584 |
"`fzFrm<n>` (with n chosen such that this entry is unique on the page)." |
| 585 |
msgstr "" |
| 586 |
"`/Resources` の `/XObject` 辞書に、 ` fzFrm ` " |
| 587 |
"という名前のエントリをページ内で一意であるように追加します(nはこのエントリがページで一意であるように選択されます)。" |
| 588 |
|
| 589 |
#: ../../app3.rst:286 ff1f4fdf2e59413da229698f3921b8d0 |
| 590 |
msgid "" |
| 591 |
"Depending on `\"overlay\"`, prepend or append a new object to the page's " |
| 592 |
"`/Contents` array, containing the statement `q /fzFrm<n> Do Q`." |
| 593 |
msgstr "" |
| 594 |
"`\"overlay\"` に応じて、ページの `/ Contents` 配列に新しいオブジェクトを前または後に追加し、ステートメント `q / " |
| 595 |
"fzFrm<n> Do Q` を含めます。" |
| 596 |
|
| 597 |
#: ../../app3.rst:288 01882ae84bb54534ba3c6ab5ca61b114 |
| 598 |
msgid "This design approach ensures that:" |
| 599 |
msgstr "この設計アプローチは次を保証します:" |
| 600 |
|
| 601 |
#: ../../app3.rst:290 b9976fb7daeb4b6291c769ba97d9ac06 |
| 602 |
msgid "" |
| 603 |
"The (potentially large) source page is only copied once to the target " |
| 604 |
"PDF. Only small \"pointer\" Form XObjects objects are created per each " |
| 605 |
"target page to show the source page." |
| 606 |
msgstr "(潜在的に大きな)ソースページは、ターゲットPDFに1度だけコピーされます。各ターゲットページごとに、ソースページを表示するための小さな「ポインター」フォームXObjectオブジェクトが作成されます。" |
| 607 |
|
| 608 |
#: ../../app3.rst:291 521ab75e321e488ca9676c4ce898d1b3 |
| 609 |
msgid "" |
| 610 |
"Each referring target page can have its own `\"oc\"` parameter to control" |
| 611 |
" the source page's visibility individually." |
| 612 |
msgstr "参照する各ターゲットページは、ソースページの表示を個別に制御するための独自の `「oc」` パラメータを持つことができます。" |
| 613 |
|
| 614 |
#: ../../app3.rst:298 05bf5b83ea6142389d3172a05aa36f27 |
| 615 |
msgid "Diagnostics" |
| 616 |
msgstr "" |
| 617 |
|
| 618 |
#: ../../app3.rst:303 b856bdfa521a4448b19dc8a507f2c401 |
| 619 |
msgid "|PyMuPDF| messages" |
| 620 |
msgstr "" |
| 621 |
|
| 622 |
#: ../../app3.rst:305 85b5e6f89d3649809ada540c8eea82a1 |
| 623 |
msgid "|PyMuPDF| has a Message system for showing text diagnostics." |
| 624 |
msgstr "" |
| 625 |
|
| 626 |
#: ../../app3.rst:307 4c84b6f861ea48f3a8e09715aebfc6d9 |
| 627 |
msgid "" |
| 628 |
"By default messages are written to `sys.stdout`. This can be controlled " |
| 629 |
"in two ways:" |
| 630 |
msgstr "" |
| 631 |
|
| 632 |
#: ../../app3.rst:311 74ccaa7010d84feaaff8d9a38c69b5f1 |
| 633 |
msgid "Set environment variable `PYMUPDF_MESSAGE` before |PyMuPDF| is imported." |
| 634 |
msgstr "" |
| 635 |
|
| 636 |
#: ../../app3.rst:314 2f88318d369944be868c62a39006cca7 |
| 637 |
msgid "Call `set_messages()`:" |
| 638 |
msgstr "" |
| 639 |
|
| 640 |
#: ../../app3.rst:318 e5c533c2a71c4b608f529bfb4df7afb2 |
| 641 |
msgid "|MuPDF| errors and warnings" |
| 642 |
msgstr "" |
| 643 |
|
| 644 |
#: ../../app3.rst:320 1523d23bbbce45f1a25c851f5b69abf0 |
| 645 |
msgid "|MuPDF| generates text errors and warnings." |
| 646 |
msgstr "" |
| 647 |
|
| 648 |
#: ../../app3.rst:323 adb68bfb91384894b21b746a73dd6bc0 |
| 649 |
msgid "" |
| 650 |
"These errors and warnings are appended to an internal list, accessible " |
| 651 |
"with `Tools.mupdf_warnings()`. Also see `Tools.reset_mupdf_warnings()`." |
| 652 |
msgstr "" |
| 653 |
|
| 654 |
#: ../../app3.rst:327 79324fa6e32d42af95e9abf26233099a |
| 655 |
msgid "" |
| 656 |
"By default these errors and warnings are also sent to the |PyMuPDF| " |
| 657 |
"message system." |
| 658 |
msgstr "" |
| 659 |
|
| 660 |
#: ../../app3.rst:330 a71ef1ec2b084888adf04787091192a1 |
| 661 |
msgid "" |
| 662 |
"This can be controlled with `mupdf_display_errors()` and " |
| 663 |
"`mupdf_display_warnings()`." |
| 664 |
msgstr "" |
| 665 |
|
| 666 |
#: ../../app3.rst:334 83b10651533947bc9bd63e655367d81e |
| 667 |
msgid "" |
| 668 |
"These messages are prefixed with `MuPDF error:` and `MuPDF warning:` " |
| 669 |
"respectively." |
| 670 |
msgstr "" |
| 671 |
|
| 672 |
#: ../../app3.rst:337 943f00a7c2a849f483525f7b3653f6a0 |
| 673 |
msgid "Some |MuPDF| errors may lead to Python exceptions." |
| 674 |
msgstr "" |
| 675 |
|
| 676 |
#: ../../app3.rst:339 0cdf1f5474fa4616a11df5f246a531a1 |
| 677 |
msgid "" |
| 678 |
"Example output for a **recoverable error**. We are opening a damaged PDF," |
| 679 |
" but MuPDF is able to repair it and gives us a little information on what" |
| 680 |
" happened. Then we illustrate how to find out whether the document can " |
| 681 |
"later be saved incrementally. Checking the :attr:`Document.is_dirty` " |
| 682 |
"attribute at this point also indicates that during `pymupdf.open` the " |
| 683 |
"document had to be repaired:" |
| 684 |
msgstr "" |
| 685 |
|
| 686 |
#: ../../app3.rst:360 af0558fd6f8c4501a41d850a84d3da7b |
| 687 |
msgid "Example output for an **unrecoverable error**:" |
| 688 |
msgstr "" |
| 689 |
|
| 690 |
#: ../../app3.rst:378 01987f6b7c4e4b13a325bf16dc6d2fda |
| 691 |
msgid "Coordinates" |
| 692 |
msgstr "脚注" |
| 693 |
|
| 694 |
#: ../../app3.rst:381 cc111c4761774e13839c570b6a760b94 |
| 695 |
msgid "" |
| 696 |
"This is one of the most frequently used terms in this documentation. A " |
| 697 |
"**coordinate** generally means a pair of numbers `(x, y)` referring to " |
| 698 |
"some location, like a corner of a rectangle (:ref:`Rect`), a :ref:`Point`" |
| 699 |
" and so forth. The two values usually are floats, but there a objects " |
| 700 |
"like images which only allow them to be integers." |
| 701 |
msgstr "" |
| 702 |
|
| 703 |
#: ../../app3.rst:383 8e23a5ba1da047d88532eda8f671451a |
| 704 |
msgid "" |
| 705 |
"To actually *find* a coordinate's location, we also need to know the " |
| 706 |
"*reference* point for ``x`` and ``y`` - in other words, we must know " |
| 707 |
"where location `(0, 0)` is positioned. Once `(0, 0)` (the \"origin\") is " |
| 708 |
"known, we speak of a \"coordinate system\"." |
| 709 |
msgstr "" |
| 710 |
|
| 711 |
#: ../../app3.rst:385 5720add281a54277b7a0232978fa8662 |
| 712 |
msgid "" |
| 713 |
"Several coordinate systems exist in document processing. For instance, " |
| 714 |
"the coordinate systems of a PDF page and the image created from it are " |
| 715 |
"**different**. We therefore need ways to *transform* coordinates from one" |
| 716 |
" system to another (and also back occasionally). This is the task of a " |
| 717 |
":ref:`Matrix`. It is a mathematical function which works much like a " |
| 718 |
"factor that can be \"multiplied\" with a point or rectangle to give us " |
| 719 |
"the corresponding point / rectangle in another coordinate system. The " |
| 720 |
"inverse of a transformation matrix can be used to revert the " |
| 721 |
"transformation. Much like multiplying by some factor, say 3, can be " |
| 722 |
"reverted by dividing the result by 3 (or multiplying it with 1/3)." |
| 723 |
msgstr "" |
| 724 |
|
| 725 |
#: ../../app3.rst:388 9bd43359dae34a3db3ed2502539abb9f |
| 726 |
msgid "Coordinates and Images" |
| 727 |
msgstr "" |
| 728 |
|
| 729 |
#: ../../app3.rst:390 ef142876a50648b88ce6825a05daf149 |
| 730 |
msgid "" |
| 731 |
"Images have a coordinate system with integer coordinates. Origin `(0, 0)`" |
| 732 |
" is the top-left point. ``x`` values must be in `range(width)`, and ``y``" |
| 733 |
" values in `range(height)`. Therefore, ``y`` values *increase* if we go " |
| 734 |
"*downwards*. For every image, there is only a **finite number** of " |
| 735 |
"coordinates, namely `width * height`. A location in an image is also " |
| 736 |
"called a \"pixel\"." |
| 737 |
msgstr "" |
| 738 |
|
| 739 |
#: ../../app3.rst:392 a43cf286a2d14b4892269df18f857b1b |
| 740 |
msgid "" |
| 741 |
"How **large** an image will be (in centimeters or inches) when e.g. " |
| 742 |
"printed, depends on additional information: the \"resolution\". This is " |
| 743 |
"measured in **DPI** (dots per inch, or pixels per inch). To find the " |
| 744 |
"printed size of some image, we therefore must divide its width and its " |
| 745 |
"height by the corresponding DPI values (there may separate ones for width" |
| 746 |
" and for height) and will get the respective number of inches." |
| 747 |
msgstr "" |
| 748 |
|
| 749 |
#: ../../app3.rst:396 b694fe03ac784433945a778cd53034f2 |
| 750 |
msgid "Origin Point, Point Size and Y-Axis" |
| 751 |
msgstr "" |
| 752 |
|
| 753 |
#: ../../app3.rst:398 a92885d699744510b39176e360fb8a63 |
| 754 |
msgid "" |
| 755 |
"In |PDF|, the origin `(0, 0)` of a page is located at its **bottom-left " |
| 756 |
"point**. In |MuPDF|, the origin `(0, 0)` of a page is located at its " |
| 757 |
"**top-left point**." |
| 758 |
msgstr "" |
| 759 |
|
| 760 |
#: ../../app3.rst:403 b0a22dfe25a8493dbcd9b65008507920 |
| 761 |
msgid "Coordinates are float numbers and measured in **points**, where:" |
| 762 |
msgstr "" |
| 763 |
|
| 764 |
#: ../../app3.rst:405 68d51777bcaf4642b1031f9dc960cd29 |
| 765 |
msgid "**one point equals 1/72 inches**." |
| 766 |
msgstr "" |
| 767 |
|
| 768 |
#: ../../app3.rst:407 756d6701c9f747b9830a3c7d01111f53 |
| 769 |
msgid "" |
| 770 |
"Typical document page sizes are **ISO A4** and **Letter**. A **Letter** " |
| 771 |
"page has a size of **8.5 x 11 inches**, corresponding to **612 x 792 " |
| 772 |
"points**. In the |PDF| coordinate system, the top-left point of a " |
| 773 |
"**Letter** page hence has the coordinate `(0, 792)` as **the y-axis " |
| 774 |
"points upwards**. Now we know our document size the |MuPDF| coordinate " |
| 775 |
"system for the bottom right would be coordinate `(612, 792)` (and for " |
| 776 |
"|PDF| this coordinate would then be `(612,0)`)." |
| 777 |
msgstr "" |
| 778 |
|
| 779 |
#: ../../app3.rst:409 50dac25ebb9848779eb3bff43cb168dc |
| 780 |
msgid "" |
| 781 |
"Theoretically, there are **infinitely many** coordinate positions on a " |
| 782 |
"|PDF| page. In practice however, at most the first 5 decimal places are " |
| 783 |
"sufficient for a reasonable precision." |
| 784 |
msgstr "" |
| 785 |
|
| 786 |
#: ../../app3.rst:412 e630dd4abdb84c43b0315dfb4e77cef8 |
| 787 |
msgid "" |
| 788 |
"In |MuPDF|, multiple document formats are supported - |PDF| just being " |
| 789 |
"one among **over a dozen others**. Images are also supported as documents" |
| 790 |
" in |MuPDF| (therefore having one page usually). This is one of the " |
| 791 |
"reasons why |MuPDF| uses a coordinate system with the origin `(0, 0)` " |
| 792 |
"being the **top-left** point of any document page. **The y-axis points " |
| 793 |
"downwards**, like with images. Coordinates in |MuPDF| in any case are " |
| 794 |
"floats, like in |PDF|." |
| 795 |
msgstr "" |
| 796 |
|
| 797 |
#: ../../app3.rst:414 a69f66be61c5411c909b4daed6378f6c |
| 798 |
msgid "" |
| 799 |
"A rectangle `Rect(0, 0, 100, 100)` for instance in |MuPDF| (and thus " |
| 800 |
"|PyMuPDF|) therefore is a square with edges of length 100 points (= 1.39 " |
| 801 |
"inches or 3.53 centimeters). Its top-left corner is the origin. To switch" |
| 802 |
" between the two coordinate systems |PDF| to |MuPDF|, every :ref:`Page` " |
| 803 |
"object has a :attr:`Page.transformation_matrix`. Its inverse can be used " |
| 804 |
"to compute a rectangle's PDF coordinates. In this way we can conveniently" |
| 805 |
" find that `Rect(0, 0, 100, 100)` in |MuPDF| is the same as `Rect(0, 692," |
| 806 |
" 100, 792)` in |PDF|. See this code snippet::" |
| 807 |
msgstr "" |
| 808 |
|
| 809 |
#: ../../app3.rst:425 0358a41bcfde49298c244a781732a9cc |
| 810 |
msgid "Footnotes" |
| 811 |
msgstr "脚注" |
| 812 |
|
| 813 |
#: ../../app3.rst:426 2a940ba3cc664855b3afbb56eaefdade |
| 814 |
msgid "" |
| 815 |
"MuPDF supports \"deep-copying\" objects between PDF documents. To avoid " |
| 816 |
"duplicate data in the target, it uses so-called \"graftmaps\", like a " |
| 817 |
"form of scratchpad: for each object to be copied, its :data:`xref` number" |
| 818 |
" is looked up in the graftmap. If found, copying is skipped. Otherwise, " |
| 819 |
"the new :data:`xref` is recorded and the copy takes place. PyMuPDF makes " |
| 820 |
"use of this technique in two places so far: :meth:`Document.insert_pdf` " |
| 821 |
"and :meth:`Page.show_pdf_page`. This process is fast and very efficient, " |
| 822 |
"because it prevents multiple copies of typically large and frequently " |
| 823 |
"referenced data, like images and fonts. However, you may still want to " |
| 824 |
"consider using garbage collection (option 4) in any of the following " |
| 825 |
"cases:" |
| 826 |
msgstr "" |
| 827 |
"MuPDFはPDFドキュメント間でオブジェクトを「ディープコピー」することをサポートしています。対象の中で重複するデータを避けるために、「グラフトマップ」と呼ばれる仕組みを使用します。これはスクラッチパッドのようなもので、コピーされる各オブジェクトについて、その" |
| 828 |
" :data:`xref` 番号をグラフトマップで調べます。もし見つかれば、コピーはスキップされます。それ以外の場合は、新しい " |
| 829 |
":data:`xref` が記録され、コピーが行われます。PyMuPDFは、:meth:`Document.insert_pdf` と " |
| 830 |
":meth:`Page.show_pdf_page` " |
| 831 |
"の2つの場所でこの技術を使用しています。このプロセスは高速で非常に効率的です。なぜなら、通常大きなデータや頻繁に参照されるデータ(画像やフォントなど)の複数のコピーを防ぐためです。ただし、次のいずれかの場合にはガベージコレクション(オプション4)の使用を検討することをお勧めします:" |
| 832 |
|
| 833 |
#: ../../app3.rst:428 12291c684340429ebe3dfc12d79126a2 |
| 834 |
msgid "" |
| 835 |
"The target PDF is not new / empty: grafting does not check for resources " |
| 836 |
"that already existed (e.g. images, fonts) in the target document before " |
| 837 |
"opening it." |
| 838 |
msgstr "対象のPDFが新しい/空でない場合:グラフティングは、対象ドキュメント内で既に存在しているリソース(例:画像、フォント)をチェックしません。" |
| 839 |
|
| 840 |
#: ../../app3.rst:429 85b00d1ae84a4e159e1accdfa5034bdc |
| 841 |
msgid "" |
| 842 |
"Using :meth:`Page.show_pdf_page` for more than one source document: each " |
| 843 |
"grafting occurs **within one source** PDF only, not across multiple. So " |
| 844 |
"if e.g. the same image exists in pages from different source PDFs, then " |
| 845 |
"this will not be detected until garbage collection." |
| 846 |
msgstr "" |
| 847 |
"複数のソースドキュメントで :meth:`Page.show_pdf_page` を使用する場合:グラフティングは **1つのソース** " |
| 848 |
"PDF内でのみ発生し、複数のソースPDF間では発生しません。したがって、同じ画像が異なるソースPDFのページに存在する場合、これはガベージコレクションまで検出されません" |
| 849 |
|
| 850 |
#: ../../footer.rst:46 2a972e62f98f45208da9b9eaf1158726 |
| 851 |
msgid "This documentation covers all versions up to |version|." |
| 852 |
msgstr "このドキュメントは |version| までのすべてのバージョンを対象としています。" |
| 853 |
|
| 854 |
#~ msgid "PyMuPDF は、PDF (およびその他の)ドキュメントのデータ抽出、分析、変換、操作のための高性能な Python ライブラリです。" |
| 855 |
#~ msgstr "" |
| 856 |
|
| 857 |
#~ msgid "PDFテキスト抽出、PDFイメージ抽出、PDF変換、PDFテーブル、PDF分割、PDF作成, Pyodide, PyScript" |
| 858 |
#~ msgstr "" |
| 859 |
|
| 860 |
#~ msgid "Redirecting Error and Warning Messages" |
| 861 |
#~ msgstr "エラーと警告メッセージのリダイレクト" |
| 862 |
|
| 863 |
#~ msgid "" |
| 864 |
#~ "Since MuPDF version 1.16 error and " |
| 865 |
#~ "warning messages can be redirected via" |
| 866 |
#~ " an official plugin." |
| 867 |
#~ msgstr "MuPDFバージョン1.16以降、エラーと警告メッセージは公式プラグインを介してリダイレクトできます。" |
| 868 |
|
| 869 |
#~ msgid "" |
| 870 |
#~ "PyMuPDF will put error messages to " |
| 871 |
#~ "`sys.stderr` prefixed with the string " |
| 872 |
#~ "\"mupdf:\". Warnings are internally stored " |
| 873 |
#~ "and can be accessed via " |
| 874 |
#~ "*pymupdf.TOOLS.mupdf_warnings()*. There also is " |
| 875 |
#~ "a function to empty this store." |
| 876 |
#~ msgstr "" |
| 877 |
#~ "PyMuPDFはエラーメッセージを、先頭に文字列「mupdf:」を付けて `sys.stderr` " |
| 878 |
#~ "に表示します。警告は内部で保存され、*pymupdf.TOOLS.mupdf_warnings()* " |
| 879 |
#~ "を通じてアクセスできます。また、この保存領域を空にするための関数も存在します。" |
| 880 |
|
| 881 |
#~ msgid "Discord logo" |
| 882 |
#~ msgstr "" |
| 883 |
|
| 884 |
#~ msgid "" |
| 885 |
#~ "For a long time, an older version" |
| 886 |
#~ " was also available under `this " |
| 887 |
#~ "<http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf>`_" |
| 888 |
#~ " link. It seems to be taken off" |
| 889 |
#~ " of the web site in October " |
| 890 |
#~ "2021. Earlier (pre 1.19.*) versions of" |
| 891 |
#~ " the PyMuPDF documentation used to " |
| 892 |
#~ "refer to this document. We have " |
| 893 |
#~ "undertaken an effort to replace " |
| 894 |
#~ "referrals to the current specification " |
| 895 |
#~ "above." |
| 896 |
#~ msgstr "" |
| 897 |
#~ "長い間、古いバージョンも `この " |
| 898 |
#~ "<http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf>`_" |
| 899 |
#~ " " |
| 900 |
#~ "リンクで利用可能でしたが、2021年10月にウェブサイトから取り下げられたようです。以前(1.19.*より前)のPyMuPDFドキュメンテーションはこの文書を参照していました。私たちは、上記の現行仕様への参照を置き換える取り組みを行っています。" |
| 901 |
|
| 902 |
#~ msgid "MuPDF errors and warnings" |
| 903 |
#~ msgstr "" |
| 904 |
|
| 905 |
#~ msgid "MuPDF generates text errors and warnings." |
| 906 |
#~ msgstr "" |
| 907 |
|
| 908 |
#~ msgid "Some MuPDF errors may lead to Python exceptions." |
| 909 |
#~ msgstr "" |
| 910 |
|