| 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-04-17 15:00+0100\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 7f129fba564145f8954ab3f7e226f0ec |
| 23 |
msgid "Artifex" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#: ../../header.rst:-1 c67d240759fd40d187a0308599adeca9 |
| 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 076a135f5e7c4cc5bd9192d710ce8cdb |
| 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 |
#: ../../recipes-low-level-interfaces.rst:7 4f7ca622e5254dcb820080c8ec29fe16 |
| 39 |
msgid "Low-Level Interfaces" |
| 40 |
msgstr "低レベルインターフェース" |
| 41 |
|
| 42 |
#: ../../recipes-low-level-interfaces.rst:10 1fea1e3b7f2f4f31a3c902bf61e962c9 |
| 43 |
msgid "" |
| 44 |
"Numerous methods are available to access and manipulate PDF files on a " |
| 45 |
"fairly low level. Admittedly, a clear distinction between \"low level\" " |
| 46 |
"and \"normal\" functionality is not always possible or subject to " |
| 47 |
"personal taste." |
| 48 |
msgstr "PDFファイルにアクセスして操作するための多くのメソッドが低レベルで利用可能です。正直なところ、「低レベル」機能と「通常」機能の明確な区別は常にできるわけではなく、個人の好みによるところもあります。" |
| 49 |
|
| 50 |
#: ../../recipes-low-level-interfaces.rst:12 1de25fa4e10d4576a94ca8b7096618bd |
| 51 |
msgid "" |
| 52 |
"It also may happen, that functionality previously deemed low-level is " |
| 53 |
"later on assessed as being part of the normal interface. This has " |
| 54 |
"happened in v1.14.0 for the class :ref:`Tools` - you now find it as an " |
| 55 |
"item in the Classes chapter." |
| 56 |
msgstr "" |
| 57 |
"また、以前は低レベルと考えられていた機能が後に通常のインターフェースの一部として評価されることもあります。例えば、バージョン1.14.0ではクラス" |
| 58 |
" :ref:`Tools` についてそのようなことが起きており、現在では「Classes」のセクションで見つけることができます。" |
| 59 |
|
| 60 |
#: ../../recipes-low-level-interfaces.rst:14 1007d8a4ff5c4147805c1dc892b9b29c |
| 61 |
msgid "" |
| 62 |
"It is a matter of documentation only in which chapter of the " |
| 63 |
"documentation you find what you are looking for. Everything is available " |
| 64 |
"and always via the same interface." |
| 65 |
msgstr "何を探しているかに関しては、ドキュメントのどのセクションにあるかはドキュメンテーションのみの問題です。すべての情報は同じインターフェースを介して常に利用可能です。" |
| 66 |
|
| 67 |
#: ../../recipes-low-level-interfaces.rst:19 f087f3a96eec4b1a9dd86d6e8a3cffd7 |
| 68 |
msgid "How to Iterate through the :data:`xref` Table" |
| 69 |
msgstr ":data:`xref` テーブルのイテレーション方法" |
| 70 |
|
| 71 |
#: ../../recipes-low-level-interfaces.rst:20 0027f20fcd894b3f921d205dbf3c6fbb |
| 72 |
msgid "" |
| 73 |
"A PDF's :data:`xref` table is a list of all objects defined in the file. " |
| 74 |
"This table may easily contain many thousands of entries -- the manual " |
| 75 |
":ref:`AdobeManual` for example has 127,000 objects. Table entry \"0\" is " |
| 76 |
"reserved and must not be touched. The following script loops through the " |
| 77 |
":data:`xref` table and prints each object's definition::" |
| 78 |
msgstr "" |
| 79 |
"PDFの :data:`xref` " |
| 80 |
"テーブルはファイル内で定義されているすべてのオブジェクトのリストです。このテーブルには非常に多くのエントリが含まれることがあります - 例えば " |
| 81 |
":ref:`AdobeManual` " |
| 82 |
"マニュアルには127,000のオブジェクトが含まれています。テーブルのエントリ「0」は予約されており、触れてはいけません" |
| 83 |
|
| 84 |
#: ../../recipes-low-level-interfaces.rst:32 bf35a4cef5db4592ba20e8879d737aff |
| 85 |
msgid "This produces the following output::" |
| 86 |
msgstr "これにより、以下の出力が生成されます::" |
| 87 |
|
| 88 |
#: ../../recipes-low-level-interfaces.rst:72 b83975ea49a84c1a8993fd6918a32c64 |
| 89 |
msgid "A PDF object definition is an ordinary ASCII string." |
| 90 |
msgstr "PDFオブジェクトの定義は通常のASCII文字列です。" |
| 91 |
|
| 92 |
#: ../../recipes-low-level-interfaces.rst:77 2cab525052174e5889a8b5eeea539330 |
| 93 |
msgid "How to Handle Object Streams" |
| 94 |
msgstr "オブジェクトストリームの処理方法" |
| 95 |
|
| 96 |
#: ../../recipes-low-level-interfaces.rst:78 658c13e1cc6947b09fc237301c2bc678 |
| 97 |
msgid "" |
| 98 |
"Some object types contain additional data apart from their object " |
| 99 |
"definition. Examples are images, fonts, embedded files or commands " |
| 100 |
"describing the appearance of a page." |
| 101 |
msgstr "オブジェクトストリームの処理方法一部のオブジェクトタイプには、オブジェクト定義以外に追加のデータが含まれています。例として、画像、フォント、埋め込みファイル、またはページの外観を記述するコマンドが挙げられます。" |
| 102 |
|
| 103 |
#: ../../recipes-low-level-interfaces.rst:80 2796bcc0f1ed4c599541dd675171586e |
| 104 |
msgid "" |
| 105 |
"Objects of these types are called \"stream objects\". PyMuPDF allows " |
| 106 |
"reading an object's stream via method :meth:`Document.xref_stream` with " |
| 107 |
"the object's :data:`xref` as an argument. It is also possible to write " |
| 108 |
"back a modified version of a stream using :meth:`Document.update_stream`." |
| 109 |
msgstr "" |
| 110 |
"これらのタイプのオブジェクトは「ストリームオブジェクト」と呼ばれます。PyMuPDFでは、メソッド " |
| 111 |
":meth:`Document.xref_stream` を使用して、オブジェクトの :data:`xref` " |
| 112 |
"を引数としてオブジェクトのストリームを読み取ることができます。また、:meth:`Document.update_stream` " |
| 113 |
"を使用して、ストリームの変更されたバージョンを書き戻すことも可能です。" |
| 114 |
|
| 115 |
#: ../../recipes-low-level-interfaces.rst:82 3771d4779f8f40dba59160b01c9ee9cf |
| 116 |
msgid "" |
| 117 |
"Assume that the following snippet wants to read all streams of a PDF for " |
| 118 |
"whatever reason::" |
| 119 |
msgstr "次のスニペットが、PDFのすべてのストリームを読み取るためのものであると仮定します::" |
| 120 |
|
| 121 |
#: ../../recipes-low-level-interfaces.rst:91 9c27d6d70d6b40fba9999600e789863f |
| 122 |
msgid "" |
| 123 |
":meth:`Document.xref_stream` automatically returns a stream decompressed " |
| 124 |
"as a bytes object -- and :meth:`Document.update_stream` automatically " |
| 125 |
"compresses it if beneficial." |
| 126 |
msgstr "" |
| 127 |
":meth:`Document.xref_stream` " |
| 128 |
"は自動的にバイトオブジェクトとして展開されたストリームを返し、:meth:`Document.update_stream` " |
| 129 |
"は必要に応じて自動的に圧縮されます。" |
| 130 |
|
| 131 |
#: ../../recipes-low-level-interfaces.rst:96 8090153b26c14df4a507877668bc7624 |
| 132 |
msgid "How to Handle Page Contents" |
| 133 |
msgstr "ページ内容の処理方法" |
| 134 |
|
| 135 |
#: ../../recipes-low-level-interfaces.rst:97 848d7acefeb245dc8af34902fe0aff24 |
| 136 |
msgid "" |
| 137 |
"A PDF page can have zero or multiple :data:`contents` objects. These are " |
| 138 |
"stream objects describing **what** appears **where** and **how** on a " |
| 139 |
"page (like text and images). They are written in a special mini-language " |
| 140 |
"described e.g. in chapter \"APPENDIX A - Operator Summary\" on page 643 " |
| 141 |
"of the :ref:`AdobeManual`." |
| 142 |
msgstr "" |
| 143 |
"PDFページにはゼロまたは複数の :data:`contents` " |
| 144 |
"オブジェクトが存在できます。これらは、ページ上に何がどこにどのように表示されるかを記述するストリームオブジェクト(テキストや画像など)です。これらは、:ref:`AdobeManual`" |
| 145 |
" のページ643の「付録A - オペレーターサマリー」などで説明されている特別なミニ言語で記述されています。" |
| 146 |
|
| 147 |
#: ../../recipes-low-level-interfaces.rst:99 4188f5c77de44ced870411c31528cec5 |
| 148 |
msgid "" |
| 149 |
"Every PDF reader application must be able to interpret the contents " |
| 150 |
"syntax to reproduce the intended appearance of the page." |
| 151 |
msgstr "すべてのPDFリーダーアプリケーションは、コンテンツの構文を解釈してページの意図した表示を再現できる必要があります。" |
| 152 |
|
| 153 |
#: ../../recipes-low-level-interfaces.rst:101 1f87bc0453d24082b53750397e2d3f74 |
| 154 |
msgid "" |
| 155 |
"If multiple :data:`contents` objects are provided, they must be " |
| 156 |
"interpreted in the specified sequence in exactly the same way as if they " |
| 157 |
"were provided as a concatenation of the several." |
| 158 |
msgstr "" |
| 159 |
"複数の :data:`contents` " |
| 160 |
"オブジェクトが提供される場合、それらは複数のコンテンツを連結した場合とまったく同じ方法で、指定された順序で解釈される必要があります。" |
| 161 |
|
| 162 |
#: ../../recipes-low-level-interfaces.rst:103 c8df9beb4ec84255a6972a53be5fca52 |
| 163 |
msgid "" |
| 164 |
"There are good technical arguments for having multiple :data:`contents` " |
| 165 |
"objects:" |
| 166 |
msgstr "複数の :data:`contents` オブジェクトを持つメリットには、次のような良い技術的理由があります:" |
| 167 |
|
| 168 |
#: ../../recipes-low-level-interfaces.rst:105 98cc88c334df4c1ebefdc905e195d627 |
| 169 |
msgid "" |
| 170 |
"It is a lot easier and faster to just add new :data:`contents` objects " |
| 171 |
"than maintaining a single big one (which entails reading, decompressing, " |
| 172 |
"modifying, recompressing, and rewriting it for each change)." |
| 173 |
msgstr "" |
| 174 |
"新しい :data:`contents` " |
| 175 |
"オブジェクトを追加するだけで、単一の大きなコンテンツオブジェクトを維持するよりもはるかに簡単で高速です(各変更のたびに読み取り、展開、変更、再圧縮、書き直しが必要です)。" |
| 176 |
|
| 177 |
#: ../../recipes-low-level-interfaces.rst:106 f2458f2703db48d58afa2677cb1a6f0b |
| 178 |
msgid "" |
| 179 |
"When working with incremental updates, a modified big :data:`contents` " |
| 180 |
"object will bloat the update delta and can thus easily negate the " |
| 181 |
"efficiency of incremental saves." |
| 182 |
msgstr "" |
| 183 |
"増分更新を使用する場合、修正された大きな :data:`contents` " |
| 184 |
"オブジェクトは更新デルタを膨らませ、増分保存の効率を簡単に打ち消す可能性があります。" |
| 185 |
|
| 186 |
#: ../../recipes-low-level-interfaces.rst:108 774608ae29314d87af2590cc55b0b96a |
| 187 |
msgid "" |
| 188 |
"For example, PyMuPDF adds new, small :data:`contents` objects in methods " |
| 189 |
":meth:`Page.insert_image`, :meth:`Page.show_pdf_page` and the " |
| 190 |
":ref:`Shape` methods." |
| 191 |
msgstr "" |
| 192 |
"例えば、PyMuPDFは :meth:`Page.insert_image` 、 :meth:`Page.show_pdf_page` 、および" |
| 193 |
" :ref:`Shape` メソッドで新しい小さな :data:`contents` オブジェクトを追加します。" |
| 194 |
|
| 195 |
#: ../../recipes-low-level-interfaces.rst:110 5cc4b562e7f643678dec3abbd5c901af |
| 196 |
msgid "" |
| 197 |
"However, there are also situations when a **single** :data:`contents` " |
| 198 |
"object is beneficial: it is easier to interpret and more compressible " |
| 199 |
"than multiple smaller ones." |
| 200 |
msgstr "" |
| 201 |
"ただし、単一の :data:`contents` " |
| 202 |
"オブジェクトが有益な状況もあります。それは複数の小さなオブジェクトよりも解釈が容易で、圧縮が効果的です。" |
| 203 |
|
| 204 |
#: ../../recipes-low-level-interfaces.rst:112 f8d8be1710d74bb9b417dc9948c862c9 |
| 205 |
msgid "Here are two ways of combining multiple contents of a page::" |
| 206 |
msgstr "以下は、ページの複数のコンテンツを組み合わせる2つの方法です:" |
| 207 |
|
| 208 |
#: ../../recipes-low-level-interfaces.rst:124 0016b0cc7db9493c9b5bfecfdd25e99c |
| 209 |
msgid "" |
| 210 |
"The clean function :meth:`Page.clean_contents` does a lot more than just " |
| 211 |
"glueing :data:`contents` objects: it also corrects and optimizes the PDF " |
| 212 |
"operator syntax of the page and removes any inconsistencies with the " |
| 213 |
"page's object definition." |
| 214 |
msgstr "" |
| 215 |
":meth:`Page.clean_contents` は、:data:`contents` " |
| 216 |
"オブジェクトを結合するだけでなく、ページのPDFオペレータ構文を修正し最適化し、ページのオブジェクト定義との整合性を保つためにも役立ちます。" |
| 217 |
|
| 218 |
#: ../../recipes-low-level-interfaces.rst:129 8fd84d6a4af441adb8fcf1c77aa5b0bd |
| 219 |
msgid "How to Access the PDF Catalog" |
| 220 |
msgstr "PDFカタログへのアクセス方法" |
| 221 |
|
| 222 |
#: ../../recipes-low-level-interfaces.rst:130 2a2e41fa0c34401ea22c6f2ed40a89e7 |
| 223 |
msgid "" |
| 224 |
"This is a central (\"root\") object of a PDF. It serves as a starting " |
| 225 |
"point to reach important other objects and it also contains some global " |
| 226 |
"options for the PDF::" |
| 227 |
msgstr "これはPDFの中心的な(\"ルート\")オブジェクトです。これは重要な他のオブジェクトに到達するための出発点として機能し、PDFのいくつかのグローバルオプションも含まれています::" |
| 228 |
|
| 229 |
#: ../../recipes-low-level-interfaces.rst:146 5b118633d9a341a1a95aed016917f5d2 |
| 230 |
msgid "" |
| 231 |
"Indentation, line breaks and comments are inserted here for clarification" |
| 232 |
" purposes only and will not normally appear. For more information on the " |
| 233 |
"PDF catalog see section 7.7.2 on page 71 of the :ref:`AdobeManual`." |
| 234 |
msgstr "" |
| 235 |
"字下げ、改行、コメントは説明のために挿入されており、通常は表示されません。PDFカタログの詳細については、 :ref:`AdobeManual` " |
| 236 |
"のページ71のセクション7.7.2を参照してください。" |
| 237 |
|
| 238 |
#: ../../recipes-low-level-interfaces.rst:151 f6b9f5c2736444a09a44be0af1efd3ef |
| 239 |
msgid "How to Access the PDF File Trailer" |
| 240 |
msgstr "PDFファイルトレーラーへのアクセス方法" |
| 241 |
|
| 242 |
#: ../../recipes-low-level-interfaces.rst:152 4cb33f7607ff4b7da3a368b706d7f85d |
| 243 |
msgid "" |
| 244 |
"The trailer of a PDF file is a :data:`dictionary` located towards the end" |
| 245 |
" of the file. It contains special objects, and pointers to important " |
| 246 |
"other information. See :ref:`AdobeManual` p. 42. Here is an overview:" |
| 247 |
msgstr "" |
| 248 |
"PDFファイルのトレーラーは、ファイルの終わりに位置する :data:`dictionary` " |
| 249 |
"です。特別なオブジェクトと、重要な他の情報へのポインタが含まれています。:ref:`AdobeManual` を参照してください(p. " |
| 250 |
"42)。以下に概要を示します:" |
| 251 |
|
| 252 |
#: ../../recipes-low-level-interfaces.rst:155 6a08c29e38b14b4f8780edbf2bbd57ed |
| 253 |
msgid "**Key**" |
| 254 |
msgstr "**キー**" |
| 255 |
|
| 256 |
#: ../../recipes-low-level-interfaces.rst:155 58913ef5bc0e42449995f9ddc470a9b6 |
| 257 |
msgid "**Type**" |
| 258 |
msgstr "**タイプ**" |
| 259 |
|
| 260 |
#: ../../recipes-low-level-interfaces.rst:155 6bd41f1c095b4146a4be333408ae4d28 |
| 261 |
msgid "**Value**" |
| 262 |
msgstr "" |
| 263 |
|
| 264 |
#: ../../recipes-low-level-interfaces.rst:157 4f3f1be3c87948899e54efc916c7ef18 |
| 265 |
msgid "Size" |
| 266 |
msgstr "**値**" |
| 267 |
|
| 268 |
#: ../../recipes-low-level-interfaces.rst:157 |
| 269 |
#: ../../recipes-low-level-interfaces.rst:158 |
| 270 |
#: ../../recipes-low-level-interfaces.rst:163 81a6a91f16444f15bdeeaaf278f1bcd1 |
| 271 |
#: 8682c7b530344453ade63634c104ed4f f11a36ccb1b94cd3ae600b685375afff |
| 272 |
msgid "int" |
| 273 |
msgstr "" |
| 274 |
|
| 275 |
#: ../../recipes-low-level-interfaces.rst:157 c285913e7e4943f9867315f2d6712e7f |
| 276 |
msgid "Number of entries in the cross-reference table + 1." |
| 277 |
msgstr "クロスリファレンステーブル内のエントリ数 + 1 の数値。" |
| 278 |
|
| 279 |
#: ../../recipes-low-level-interfaces.rst:158 c49bb116e66c4fca9cdeb500ae675247 |
| 280 |
msgid "Prev" |
| 281 |
msgstr "" |
| 282 |
|
| 283 |
#: ../../recipes-low-level-interfaces.rst:158 28fbdab151c14d60acbe435e09d03829 |
| 284 |
msgid "Offset to previous :data:`xref` section (indicates incremental updates)." |
| 285 |
msgstr "前の :data:`xref` セクションへのオフセット(増分更新を示す)。" |
| 286 |
|
| 287 |
#: ../../recipes-low-level-interfaces.rst:159 96893c3d42a943ffaa753c2af598ddda |
| 288 |
msgid "Root" |
| 289 |
msgstr "" |
| 290 |
|
| 291 |
#: ../../recipes-low-level-interfaces.rst:159 |
| 292 |
#: ../../recipes-low-level-interfaces.rst:160 |
| 293 |
#: ../../recipes-low-level-interfaces.rst:161 17e32472677349bfa94d61bc793d8475 |
| 294 |
#: 2d049d53c6cd4ae8a2bc07f1cbcf53bb ce33dca31774448c9bdd1e213de5d090 |
| 295 |
msgid "dictionary" |
| 296 |
msgstr "" |
| 297 |
|
| 298 |
#: ../../recipes-low-level-interfaces.rst:159 fecd0772f75c49fdb36a4962c490461e |
| 299 |
msgid "(indirect) Pointer to the catalog. See previous section." |
| 300 |
msgstr "(間接的) カタログへのポインタ。前のセクションを参照してください。" |
| 301 |
|
| 302 |
#: ../../recipes-low-level-interfaces.rst:160 b7b167190b0149ce9bdd9ef671d03ae2 |
| 303 |
msgid "Encrypt" |
| 304 |
msgstr "" |
| 305 |
|
| 306 |
#: ../../recipes-low-level-interfaces.rst:160 aa8f56b6637c4a7ca41846fa1ebf6eca |
| 307 |
msgid "Pointer to encryption object (encrypted files only)." |
| 308 |
msgstr "(暗号化されたファイルのみ) 暗号化オブジェクトへのポインタ。" |
| 309 |
|
| 310 |
#: ../../recipes-low-level-interfaces.rst:161 d9be1827baa242068f64cd1307f9bd58 |
| 311 |
msgid "Info" |
| 312 |
msgstr "" |
| 313 |
|
| 314 |
#: ../../recipes-low-level-interfaces.rst:161 597be1c0e13342c694e56f1faf8dcca5 |
| 315 |
msgid "(indirect) Pointer to information (metadata)." |
| 316 |
msgstr "(間接的) 情報(メタデータ)へのポインタ。" |
| 317 |
|
| 318 |
#: ../../recipes-low-level-interfaces.rst:162 66abcc5c41b044d7ba24bef4374f4cba |
| 319 |
msgid "ID" |
| 320 |
msgstr "" |
| 321 |
|
| 322 |
#: ../../recipes-low-level-interfaces.rst:162 e6d762fa8f38487992b7f2ddc8737388 |
| 323 |
msgid "array" |
| 324 |
msgstr "" |
| 325 |
|
| 326 |
#: ../../recipes-low-level-interfaces.rst:162 ae4de832cc2c4e1cb9943cb9a61596da |
| 327 |
msgid "File identifier consisting of two byte strings." |
| 328 |
msgstr "2つのバイト文字列からなるファイル識別子。" |
| 329 |
|
| 330 |
#: ../../recipes-low-level-interfaces.rst:163 fe39430132414ae0b7367e63724369e0 |
| 331 |
msgid "XRefStm" |
| 332 |
msgstr "" |
| 333 |
|
| 334 |
#: ../../recipes-low-level-interfaces.rst:163 2f5419e850a744d790f2b70a0e221c5a |
| 335 |
msgid "Offset of a cross-reference stream. See :ref:`AdobeManual` p. 49." |
| 336 |
msgstr "クロスリファレンスストリームのオフセット。:ref:`AdobeManual` を参照してください(p. 49)。" |
| 337 |
|
| 338 |
#: ../../recipes-low-level-interfaces.rst:166 f658e5b17a384d9c90104cba97aa85ff |
| 339 |
msgid "" |
| 340 |
"Access this information via PyMuPDF with :meth:`Document.pdf_trailer` or," |
| 341 |
" equivalently, via :meth:`Document.xref_object` using -1 instead of a " |
| 342 |
"valid :data:`xref` number." |
| 343 |
msgstr "" |
| 344 |
"これらの情報には、PyMuPDFを使用して :meth:`Document.pdf_trailer` または、同等の " |
| 345 |
":meth:`Document.xref_object` を使用して -1 の代わりに有効な :data:`xref` " |
| 346 |
"番号を指定することでアクセスします。" |
| 347 |
|
| 348 |
#: ../../recipes-low-level-interfaces.rst:187 98759bbd8d114604a80fbf742832adba |
| 349 |
msgid "How to Access XML Metadata" |
| 350 |
msgstr "XMLメタデータへのアクセス方法" |
| 351 |
|
| 352 |
#: ../../recipes-low-level-interfaces.rst:188 a4c560abb05646a6b21fccc292008ea0 |
| 353 |
msgid "" |
| 354 |
"A PDF may contain XML metadata in addition to the standard metadata " |
| 355 |
"format. In fact, most PDF viewer or modification software adds this type " |
| 356 |
"of information when saving the PDF (Adobe, Nitro PDF, PDF-XChange, etc.)." |
| 357 |
msgstr "" |
| 358 |
"PDFには、標準のメタデータ形式に加えてXMLメタデータが含まれている場合があります。実際、ほとんどのPDFビューアや編集ソフトウェアは、PDFを保存する際に(Adobe、Nitro" |
| 359 |
" PDF、PDF-XChangeなど)この種の情報を追加します。" |
| 360 |
|
| 361 |
#: ../../recipes-low-level-interfaces.rst:190 a02f8f95ed834b4386f05f01b7baf217 |
| 362 |
msgid "" |
| 363 |
"PyMuPDF has no way to **interpret or change** this information directly, " |
| 364 |
"because it contains no XML features. XML metadata is however stored as a " |
| 365 |
":data:`stream` object, so it can be read, modified with appropriate " |
| 366 |
"software and written back." |
| 367 |
msgstr "" |
| 368 |
"しかし、PyMuPDFはXMLの機能を持たないため、この情報を直接解釈または変更する方法はありません。ただし、XMLメタデータは " |
| 369 |
":data:`stream` オブジェクトとして格納されているため、適切なソフトウェアで読み取り、変更し、書き戻すことができます。" |
| 370 |
|
| 371 |
#: ../../recipes-low-level-interfaces.rst:202 763734a1837d4847a3c820225381f4cb |
| 372 |
msgid "" |
| 373 |
"Using some XML package, the XML data can be interpreted and / or modified" |
| 374 |
" and then stored back. The following also works, if the PDF previously " |
| 375 |
"had no XML metadata::" |
| 376 |
msgstr "あるXMLパッケージを使用して、XMLデータを解釈および/または変更し、それを保存し直すことができます。次の方法もPDFに以前にXMLメタデータがない場合にも機能します::" |
| 377 |
|
| 378 |
#: ../../recipes-low-level-interfaces.rst:213 b484e4babb6b4821a2d4ca50b936f40b |
| 379 |
msgid "How to Extend PDF Metadata" |
| 380 |
msgstr "PDFメタデータの拡張方法" |
| 381 |
|
| 382 |
#: ../../recipes-low-level-interfaces.rst:214 bd8ade0701494f0aa8d64389ba8c01db |
| 383 |
msgid "" |
| 384 |
"Attribute :attr:`Document.metadata` is designed so it works for all " |
| 385 |
":ref:`supported document types<Supported_File_Types>` in the same way: it" |
| 386 |
" is a Python dictionary with a **fixed set of key-value pairs**. " |
| 387 |
"Correspondingly, :meth:`Document.set_metadata` only accepts standard " |
| 388 |
"keys." |
| 389 |
msgstr "" |
| 390 |
"属性 :attr:`Document.metadata` は、すべての :ref:`サポートされている " |
| 391 |
"<Supported_File_Types>` " |
| 392 |
"ドキュメントタイプで同じ方法で機能するように設計されています。これは、固定されたキーと値のセットを持つPython辞書です。同様に、:meth:`Document.set_metadata`" |
| 393 |
" は標準のキーのみを受け入れます。" |
| 394 |
|
| 395 |
#: ../../recipes-low-level-interfaces.rst:216 2ed9e5740749448898a94bedd85fa94f |
| 396 |
msgid "" |
| 397 |
"However, PDFs may contain items not accessible like this. Also, there may" |
| 398 |
" be reasons to store additional information, like copyrights. Here is a " |
| 399 |
"way to handle **arbitrary metadata items** by using PyMuPDF low-level " |
| 400 |
"functions." |
| 401 |
msgstr "しかし、PDFにはこのようにアクセスできない項目が含まれている場合があります。また、著作権などの追加情報を保存する理由もあるかもしれません。以下は、PyMuPDFの低レベル関数を使用して任意のメタデータ項目を処理する方法です。" |
| 402 |
|
| 403 |
#: ../../recipes-low-level-interfaces.rst:218 f2e1b634d30a481da6cb600b52f2dccc |
| 404 |
msgid "As an example, look at this standard metadata output of some PDF::" |
| 405 |
msgstr "例として、次のPDFの標準メタデータ出力をご覧ください::" |
| 406 |
|
| 407 |
#: ../../recipes-low-level-interfaces.rst:237 ae127729cd53409cb04f9ebc390699c4 |
| 408 |
msgid "" |
| 409 |
"Use the following code to see **all items** stored in the metadata " |
| 410 |
"object::" |
| 411 |
msgstr "以下のコードを使用して、メタデータオブジェクトに保存されているすべてのアイテムを表示します::" |
| 412 |
|
| 413 |
#: ../../recipes-low-level-interfaces.rst:265 f219d010f8094f62934815b489d0dc25 |
| 414 |
msgid "" |
| 415 |
"*Vice versa*, you can also **store private metadata items** in a PDF. It " |
| 416 |
"is your responsibility to make sure that these items conform to PDF " |
| 417 |
"specifications - especially they must be (unicode) strings. Consult " |
| 418 |
"section 14.3 (p. 548) of the :ref:`AdobeManual` for details and caveats::" |
| 419 |
msgstr "" |
| 420 |
"逆に、PDFにはプライベートなメタデータアイテムを保存することもできます。これらのアイテムがPDF仕様に準拠していることを確認する責任はあなたにあります。特に、これらは(Unicode)文字列である必要があります。詳細や注意事項については、Adobe" |
| 421 |
" PDFリファレンスのセクション14.3(p. 548)を参照してください::" |
| 422 |
|
| 423 |
#: ../../recipes-low-level-interfaces.rst:287 2dc3761486a541f6821711dfd609da05 |
| 424 |
msgid "" |
| 425 |
"To delete selected keys, use `doc.xref_set_key(xref, \"mykey\", " |
| 426 |
"\"null\")`. As explained in the next section, string \"null\" is the PDF " |
| 427 |
"equivalent to Python's `None`. A key with that value will be treated as " |
| 428 |
"not being specified -- and physically removed in garbage collections." |
| 429 |
msgstr "" |
| 430 |
"選択したキーを削除するには、`doc.xref_set_key(xref, \"mykey\", \"null\")` " |
| 431 |
"を使用します。次のセクションで説明されているように、文字列 `\"null\"` はPDFのバージョンでPythonの `None` " |
| 432 |
"に相当します。その値のキーは指定されていないものとして扱われ、ガベージコレクションで物理的に削除されます。" |
| 433 |
|
| 434 |
#: ../../recipes-low-level-interfaces.rst:292 b8e1f01138dd4a638ffd1e3689508d1c |
| 435 |
msgid "How to Read and Update PDF Objects" |
| 436 |
msgstr "PDFオブジェクトの読み取りと更新方法" |
| 437 |
|
| 438 |
#: ../../recipes-low-level-interfaces.rst:297 c7c33727bafc478ca88a1cdae0ec859b |
| 439 |
msgid "" |
| 440 |
"There also exist granular, elegant ways to access and manipulate selected" |
| 441 |
" PDF :data:`dictionary` keys." |
| 442 |
msgstr "選択したPDF :data:`dictionary` キーにアクセスし、操作するための粒状で洗練された方法も存在します。" |
| 443 |
|
| 444 |
#: ../../recipes-low-level-interfaces.rst:299 04aa0e1d70b944b3a904ea382f4f0c30 |
| 445 |
msgid "" |
| 446 |
":meth:`Document.xref_get_keys` returns the PDF keys of the object at " |
| 447 |
":data:`xref`::" |
| 448 |
msgstr ":meth:`Document.xref_get_keys` は、:data:`xref` のオブジェクトのPDFキーを返します::" |
| 449 |
|
| 450 |
#: ../../recipes-low-level-interfaces.rst:308 ec3415a9ffc54434860c48bc58bd55d9 |
| 451 |
msgid "Compare with the full object definition::" |
| 452 |
msgstr "完全なオブジェクト定義と比較してください::" |
| 453 |
|
| 454 |
#: ../../recipes-low-level-interfaces.rst:319 4ee823aae30f4627b0f7c02f4267bfdc |
| 455 |
msgid "" |
| 456 |
"Single keys can also be accessed directly via " |
| 457 |
":meth:`Document.xref_get_key`. The value **always is a string** together " |
| 458 |
"with type information, that helps with interpreting it::" |
| 459 |
msgstr "" |
| 460 |
"単一のキーは、 :meth:`Document.xref_get_key` " |
| 461 |
"を介して直接アクセスすることもできます。値は常に文字列であり、それを解釈するのに役立つタイプ情報が含まれています::" |
| 462 |
|
| 463 |
#: ../../recipes-low-level-interfaces.rst:324 5b603693f93c4e03a5111618579b46ce |
| 464 |
msgid "Here is a full listing of the above page keys::" |
| 465 |
msgstr "以下は、上記のページキーの完全な一覧です::" |
| 466 |
|
| 467 |
#: ../../recipes-low-level-interfaces.rst:335 f13dcde484e24d32bc88ea9b8cf371dd |
| 468 |
msgid "" |
| 469 |
"An undefined key inquiry returns `('null', 'null')` -- PDF object type " |
| 470 |
"`null` corresponds to `None` in Python. Similar for the booleans `true` " |
| 471 |
"and `false`." |
| 472 |
msgstr "" |
| 473 |
"未定義のキーの問い合わせは、`('null', 'null')` を返します - PDFオブジェクトタイプ `null` はPythonの " |
| 474 |
"`None` に対応します。 `true` および `false` も同様です。" |
| 475 |
|
| 476 |
#: ../../recipes-low-level-interfaces.rst:336 14eee493b6bb4c06b2afcbdade3ca9e7 |
| 477 |
msgid "" |
| 478 |
"Let us add a new key to the page definition that sets its rotation to 90 " |
| 479 |
"degrees (you are aware that there actually exists " |
| 480 |
":meth:`Page.set_rotation` for this?)::" |
| 481 |
msgstr "" |
| 482 |
"ページ定義に新しいキーを追加して、その回転角を90度に設定しましょう(実際には :meth:`Page.set_rotation` " |
| 483 |
"が存在することを知っているかと思いますが、そうですか?)::" |
| 484 |
|
| 485 |
#: ../../recipes-low-level-interfaces.rst:351 b9ecea1e87e7421faea4ae09003de94f |
| 486 |
msgid "" |
| 487 |
"This method can also be used to remove a key from the :data:`xref` " |
| 488 |
"dictionary by setting its value to `null`: The following will remove the " |
| 489 |
"rotation specification from the page: `doc.xref_set_key(page.xref, " |
| 490 |
"\"Rotate\", \"null\")`. Similarly, to remove all links, annotations and " |
| 491 |
"fields from a page, use `doc.xref_set_key(page.xref, \"Annots\", " |
| 492 |
"\"null\")`. Because `Annots` by definition is an array, setting en empty " |
| 493 |
"array with the statement `doc.xref_set_key(page.xref, \"Annots\", " |
| 494 |
"\"[]\")` would do the same job in this case." |
| 495 |
msgstr "" |
| 496 |
"このメソッドは、値を `null` に設定することで :data:`xref` " |
| 497 |
"辞書からキーを削除するためにも使用できます:次の方法は、ページから回転指定を削除します: `doc.xref_set_key(page.xref," |
| 498 |
" \"Rotate\", \"null\")` 。同様に、ページからすべてのリンク、注釈、およびフィールドを削除するには、 " |
| 499 |
"`doc.xref_set_key(page.xref, \"Annots\", \"null\")` を使用します。`Annots` " |
| 500 |
"は定義上配列であるため、`doc.xref_set_key(page.xref, \"Annots\", \"[]\")` " |
| 501 |
"という文で空の配列を設定すると、同じ操作が実行されます。" |
| 502 |
|
| 503 |
#: ../../recipes-low-level-interfaces.rst:353 25ee5ad120ca43a7af7fb238b8ee91cd |
| 504 |
msgid "" |
| 505 |
"PDF dictionaries can be hierarchically nested. In the following page " |
| 506 |
"object definition both, `Font` and `XObject` are subdictionaries of " |
| 507 |
"`Resources`::" |
| 508 |
msgstr "" |
| 509 |
"PDF辞書は階層的に入れ子にすることができます。次のページオブジェクト定義では、`Font` と `XObject` は両方とも " |
| 510 |
"`Resources` のサブディクショナリです::" |
| 511 |
|
| 512 |
#: ../../recipes-low-level-interfaces.rst:373 166311ecb59d42579d5324506515d2e5 |
| 513 |
msgid "" |
| 514 |
"The above situation **is supported** by methods " |
| 515 |
":meth:`Document.xref_set_key` and :meth:`Document.xref_get_key`: use a " |
| 516 |
"path-like notation to point at the required key. For example, to retrieve" |
| 517 |
" the value of key `Im1` above, specify the complete chain of dictionaries" |
| 518 |
" \"above\" it in the key argument: `\"Resources/XObject/Im1\"`::" |
| 519 |
msgstr "" |
| 520 |
"上記の状況は、メソッド :meth:`Document.xref_set_key` と :meth:`Document.xref_get_key`" |
| 521 |
" によってサポートされています。必要なキーを指すために、パスのような表記法を使用します。たとえば、上記の `Im1` " |
| 522 |
"キーの値を取得するには、キー引数にその上位の辞書の完全なチェーン `\"Resources/XObject/Im1\"` を指定します::" |
| 523 |
|
| 524 |
#: ../../recipes-low-level-interfaces.rst:378 decc969788824b2f905d28ed9ea37c97 |
| 525 |
msgid "" |
| 526 |
"The path notation can also be used to **directly set a value**: use the " |
| 527 |
"following to let `Im1` point to a different object::" |
| 528 |
msgstr "パス表記法は、値を直接設定するためにも使用できます。以下を使用して、`Im1` を異なるオブジェクトを指すように設定します::" |
| 529 |
|
| 530 |
#: ../../recipes-low-level-interfaces.rst:399 8134074039144ebca0e928b428cf7ad4 |
| 531 |
msgid "" |
| 532 |
"Be aware, that **no semantic checks** whatsoever will take place here: if" |
| 533 |
" the PDF has no xref 9999, it won't be detected at this point." |
| 534 |
msgstr "ここでは、何の意味的なチェックも行われないことに注意してください。PDFにxref 9999が存在しない場合、この段階では検出されません。" |
| 535 |
|
| 536 |
#: ../../recipes-low-level-interfaces.rst:401 d717c7f21a174300a90bb992653ab939 |
| 537 |
msgid "" |
| 538 |
"If a key does not exist, it will be created by setting its value. " |
| 539 |
"Moreover, if any intermediate keys do not exist either, they will also be" |
| 540 |
" created as necessary. The following creates an array `D` several levels " |
| 541 |
"below the existing dictionary `A`. Intermediate dictionaries `B` and `C` " |
| 542 |
"are automatically created::" |
| 543 |
msgstr "" |
| 544 |
"キーが存在しない場合、その値を設定することで新しく作成されます。さらに、中間のキーが存在しない場合も、必要に応じて自動的に作成されます。次の例では、既存の辞書" |
| 545 |
" `A` の下にいくつかの階層下に配列 `D` を作成しています。中間の辞書 `B` と `C` も自動的に作成されます::" |
| 546 |
|
| 547 |
#: ../../recipes-low-level-interfaces.rst:421 79d1fc2866c6405e852e7bc1d59c5f72 |
| 548 |
msgid "" |
| 549 |
"When setting key values, basic **PDF syntax checking** will be done by " |
| 550 |
"MuPDF. For example, new keys can only be created **below a dictionary**. " |
| 551 |
"The following tries to create some new string item `E` below the " |
| 552 |
"previously created array `D`::" |
| 553 |
msgstr "" |
| 554 |
"キーの値を設定する際には、MuPDFによって基本的なPDF構文のチェックが行われます。たとえば、新しいキーは辞書の下にのみ作成できます。次の例では、以前に作成された配列" |
| 555 |
" `D` の下に新しい文字列アイテム `E` を作成しようとしています:" |
| 556 |
|
| 557 |
#: ../../recipes-low-level-interfaces.rst:429 891aef9e0fe9425881312a1752d59e9f |
| 558 |
msgid "" |
| 559 |
"It is also **not possible**, to create a key if some higher level key is " |
| 560 |
"an **\"indirect\"** object, i.e. an xref. In other words, xrefs can only " |
| 561 |
"be modified directly and not implicitly via other objects referencing " |
| 562 |
"them::" |
| 563 |
msgstr "同様に、上位のキーが「間接」オブジェクト、つまりxrefである場合、キーを作成することはできません。言い換えれば、xrefは直接的に変更できるが、それを参照する他のオブジェクトを通じて暗黙的に変更することはできません::" |
| 564 |
|
| 565 |
#: ../../recipes-low-level-interfaces.rst:442 cb6c84fd491f4c3eaab967eb4ab22326 |
| 566 |
msgid "" |
| 567 |
"These are expert functions! There are no validations as to whether valid " |
| 568 |
"PDF objects, xrefs, etc. are specified. As with other low-level methods " |
| 569 |
"there is the risk to render the PDF, or parts of it unusable." |
| 570 |
msgstr "これらは専門家向けの機能です!有効なPDFオブジェクトやxrefなどが指定されているかどうかの検証はありません。他の低レベルメソッドと同様に、PDF全体またはその一部を利用不能にする可能性があるため注意が必要です。" |
| 571 |
|
| 572 |
#: ../../footer.rst:60 4695c17edec440ea85382cf6f78ad072 |
| 573 |
msgid "This documentation covers all versions up to |version|." |
| 574 |
msgstr "このドキュメントは |version| までのすべてのバージョンを対象としています。" |
| 575 |
|
| 576 |
#~ msgid "PyMuPDF は、PDF (およびその他の)ドキュメントのデータ抽出、分析、変換、操作のための高性能な Python ライブラリです。" |
| 577 |
#~ msgstr "" |
| 578 |
|
| 579 |
#~ msgid "PDFテキスト抽出、PDFイメージ抽出、PDF変換、PDFテーブル、PDF分割、PDF作成, Pyodide, PyScript" |
| 580 |
#~ msgstr "" |
| 581 |
|
| 582 |
#~ msgid "Discord logo" |
| 583 |
#~ msgstr "" |
| 584 |
|