| 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 e08ff8c04b304218ac81d35f41292ac6 |
| 23 |
msgid "Artifex" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#: ../../header.rst:-1 a1f1910f4f4b427c872afb309d8717ae |
| 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 067d19d0feee4d3ea790680243bcadde |
| 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-images.rst:7 57931bcbe871420b8981b5294574c1f6 |
| 39 |
msgid "Images" |
| 40 |
msgstr "画像" |
| 41 |
|
| 42 |
#: ../../recipes-images.rst:14 c30d7e40298f4ae28b6931514dcdda2d |
| 43 |
msgid "How to Make Images from Document Pages" |
| 44 |
msgstr "ドキュメントページから画像を作成する方法" |
| 45 |
|
| 46 |
#: ../../recipes-images.rst:16 a5b0953e89e6485ea0cc82a8785e31cf |
| 47 |
msgid "" |
| 48 |
"This little script will take a document filename and generate a PNG file " |
| 49 |
"from each of its pages." |
| 50 |
msgstr "この小さなスクリプトは、文書のファイル名を取得し、各ページからPNGファイルを生成します。" |
| 51 |
|
| 52 |
#: ../../recipes-images.rst:18 f1183a990e834decbf12969a97c76cf8 |
| 53 |
msgid "The document can be any :ref:`supported type<Supported_File_Types>`." |
| 54 |
msgstr "文書の種類は、:ref:`サポートされている <Supported_File_Types>` どんな形式でも構いません。" |
| 55 |
|
| 56 |
#: ../../recipes-images.rst:20 86fd95ad8dba47ed87f53ab293cc7058 |
| 57 |
msgid "" |
| 58 |
"The script works as a command line tool which expects the filename being " |
| 59 |
"supplied as a parameter. The generated image files (1 per page) are " |
| 60 |
"stored in the directory of the script::" |
| 61 |
msgstr "このスクリプトはコマンドラインツールとして動作し、ファイル名をパラメータとして指定することを期待しています。生成された画像ファイル(1ページごとに1つ)は、スクリプトが格納されているディレクトリに保存されます。::" |
| 62 |
|
| 63 |
#: ../../recipes-images.rst:29 3e69a1bf5a8d49978cfc9c8dabfc3648 |
| 64 |
msgid "" |
| 65 |
"The script directory will now contain PNG image files named *page-0.png*," |
| 66 |
" *page-1.png*, etc. Pictures have the dimension of their pages with width" |
| 67 |
" and height rounded to integers, e.g. 595 x 842 pixels for an A4 portrait" |
| 68 |
" sized page. They will have a resolution of 96 dpi in x and y dimension " |
| 69 |
"and have no transparency. You can change all that -- for how to do this, " |
| 70 |
"read the next sections." |
| 71 |
msgstr "" |
| 72 |
"スクリプトのディレクトリには、これから *page-0.png* 、 *page-1.png* " |
| 73 |
"などという名前のPNG画像ファイルが含まれるようになります。画像は各ページの寸法に合わせて整数に丸められた幅と高さを持ちます。例えば、A4縦向きのページであれば595" |
| 74 |
" x 842ピクセルとなります。これらの画像は水平方向と垂直方向の解像度が96 " |
| 75 |
"dpiで、透明度はありません。これらの設定を変更することもできます。詳細については、次のセクションをお読みください。" |
| 76 |
|
| 77 |
#: ../../recipes-images.rst:37 338b2dd52c564f7d9850839bb2b6e0c9 |
| 78 |
msgid "How to Increase :index:`Image Resolution <pair: image; resolution>`" |
| 79 |
msgstr "画像の解像度を上げる方法" |
| 80 |
|
| 81 |
#: ../../recipes-images.rst:39 4770c88fce1d4a0782d7b461b2a4c8b6 |
| 82 |
msgid "" |
| 83 |
"The image of a document page is represented by a :ref:`Pixmap`, and the " |
| 84 |
"simplest way to create a pixmap is via method :meth:`Page.get_pixmap`." |
| 85 |
msgstr "" |
| 86 |
"文書ページの画像はPixmapによって表されます。 :ref:`Pixmap` を作成するもっとも簡単な方法は、メソッド " |
| 87 |
":meth:`Page.get_pixmap` を使うことです。" |
| 88 |
|
| 89 |
#: ../../recipes-images.rst:41 fe71e979e90a4e36ab7e012b4e4cfbaf |
| 90 |
msgid "" |
| 91 |
"This method has many options to influence the result. The most important " |
| 92 |
"among them is the :ref:`Matrix`, which lets you :index:`zoom`, rotate, " |
| 93 |
"distort or mirror the outcome." |
| 94 |
msgstr "このメソッドには結果に影響を与える多くのオプションがあります。その中でも最も重要なのは行列(Matrix)であり、これによって結果を拡大、回転、歪ませる、または反転することができます。" |
| 95 |
|
| 96 |
#: ../../recipes-images.rst:43 879c14c6b55746e184a6a3659ddb8624 |
| 97 |
msgid "" |
| 98 |
":meth:`Page.get_pixmap` by default will use the :ref:`Identity` matrix, " |
| 99 |
"which does nothing." |
| 100 |
msgstr ":meth:`Page.get_pixmap` はデフォルトで :ref:`Identity` 行列を使用しますが、これは何も行いません。" |
| 101 |
|
| 102 |
#: ../../recipes-images.rst:45 7ae61bca1b914ef58650814764c86556 |
| 103 |
msgid "" |
| 104 |
"In the following, we apply a :index:`zoom factor <pair: resolution;zoom>`" |
| 105 |
" of 2 to each dimension, which will generate an image with a four times " |
| 106 |
"better resolution for us (and also about 4 times the size)::" |
| 107 |
msgstr "以下では、各次元に2倍のズームを適用し、結果として解像度が4倍向上した画像を生成します(そしてサイズも約4倍になります)。::" |
| 108 |
|
| 109 |
#: ../../recipes-images.rst:53 a015d3083e624dd0bb52595296bcda69 |
| 110 |
msgid "" |
| 111 |
"Since version 1.19.2 there is a more direct way to set the resolution: " |
| 112 |
"Parameter `\"dpi\"` (dots per inch) can be used in place of `\"matrix\"`." |
| 113 |
" To create a 300 dpi image of a page specify `pix = " |
| 114 |
"page.get_pixmap(dpi=300)`. Apart from notation brevity, this approach has" |
| 115 |
" the additional advantage that the **dpi value is saved with the image** " |
| 116 |
"file -- which does not happen automatically when using the Matrix " |
| 117 |
"notation." |
| 118 |
msgstr "" |
| 119 |
"バージョン1.19.2以降では、解像度を設定するより直接的な方法があります。 `\"dpi\"` (インチあたりのドット数)というパラメータを " |
| 120 |
"`\"matrix\"` の代わりに使用することができます。ページの300 dpiの画像を作成するには、 `pix = " |
| 121 |
"page.get_pixmap(dpi=300)` " |
| 122 |
"と指定します。略記法の利便性に加えて、この方法の追加の利点は、dpiの値が画像ファイルとともに保存されることです。これはMatrixの記法を使用する場合に自動的に行われることはありません。" |
| 123 |
|
| 124 |
#: ../../recipes-images.rst:61 8e820a068673426d8b07c503b4b9b1eb |
| 125 |
msgid "How to Create :index:`Partial Pixmaps` (Clips)" |
| 126 |
msgstr "部分的なPixmap(クリップ)の作成方法" |
| 127 |
|
| 128 |
#: ../../recipes-images.rst:62 3575f660d7f34fcf8740261d5cc13939 |
| 129 |
msgid "" |
| 130 |
"You do not always need or want the full image of a page. This is the case" |
| 131 |
" e.g. when you display the image in a GUI and would like to fill the " |
| 132 |
"respective window with a zoomed part of the page." |
| 133 |
msgstr "常にページの完全な画像が必要なわけではありませんし、必要ともしない場合があります。例えば、GUIで画像を表示し、ページのズームされた部分でウィンドウを埋めたい場合などが該当します。" |
| 134 |
|
| 135 |
#: ../../recipes-images.rst:64 91a6b74e53dc47bba254ef54f6903677 |
| 136 |
msgid "" |
| 137 |
"Let's assume your GUI window has room to display a full document page, " |
| 138 |
"but you now want to fill this room with the bottom right quarter of your " |
| 139 |
"page, thus using a four times better resolution." |
| 140 |
msgstr "GUIウィンドウにフルの文書ページを表示するスペースがあると仮定しましょうが、現在はページの右下の四分の一でこのスペースを埋めたいとします。これにより、解像度が4倍向上します。" |
| 141 |
|
| 142 |
#: ../../recipes-images.rst:66 0c121baa24eb407eb7c91b5f481189c8 |
| 143 |
msgid "" |
| 144 |
"To achieve this, define a rectangle equal to the area you want to appear " |
| 145 |
"in the GUI and call it \"clip\". One way of constructing rectangles in " |
| 146 |
"PyMuPDF is by providing two diagonally opposite corners, which is what we" |
| 147 |
" are doing here." |
| 148 |
msgstr "これを実現するために、GUIに表示したい領域に等しい矩形を定義し、「クリップ」と呼びます。PyMuPDFでは、矩形を構築する方法の1つは、対角線上にある2つの角を指定することです。これがここで行っていることです。" |
| 149 |
|
| 150 |
#: ../../recipes-images.rst:79 355e4acbef614ba299f86cec24da6c88 |
| 151 |
msgid "" |
| 152 |
"In the above we construct *clip* by specifying two diagonally opposite " |
| 153 |
"points: the middle point *mp* of the page rectangle, and its bottom " |
| 154 |
"right, *rect.br*." |
| 155 |
msgstr "" |
| 156 |
"上記では、 `clip` を構築するために、2つの対角線上の点を指定しています:ページ矩形の中心点である `mp` と、その右下の点である " |
| 157 |
"`rect.br` です。" |
| 158 |
|
| 159 |
#: ../../recipes-images.rst:87 39c83e942ce74cb9baddcc259d24777e |
| 160 |
msgid "How to Zoom a Clip to a GUI Window" |
| 161 |
msgstr "GUIウィンドウにクリップをズームする方法" |
| 162 |
|
| 163 |
#: ../../recipes-images.rst:88 5ffea1d8340c4a08939f161390fd42ae |
| 164 |
msgid "" |
| 165 |
"Please also read the previous section. This time we want to **compute the" |
| 166 |
" zoom factor** for a clip, such that its image best fits a given GUI " |
| 167 |
"window. This means, that the image's width or height (or both) will equal" |
| 168 |
" the window dimension. For the following code snippet you need to provide" |
| 169 |
" the WIDTH and HEIGHT of your GUI's window that should receive the page's" |
| 170 |
" clip rectangle." |
| 171 |
msgstr "前のセクションもお読みください。今回は、クリップのズームファクターを計算して、その画像が指定されたGUIウィンドウに最適にフィットするようにします。つまり、画像の幅または高さ(または両方)がウィンドウの寸法と等しくなります。次のコードスニペットでは、GUIウィンドウのWIDTHとHEIGHTを提供する必要があります。それらはページのクリップ矩形を受け取る必要があります。" |
| 172 |
|
| 173 |
#: ../../recipes-images.rst:105 61635a6d0bae4040986c0bd5b66441a2 |
| 174 |
msgid "" |
| 175 |
"For the other way round, now assume you **have** the zoom factor and need" |
| 176 |
" to **compute the fitting clip**." |
| 177 |
msgstr "逆の場合は、ズームファクターがあると仮定し、フィッティングクリップを計算する必要があります。" |
| 178 |
|
| 179 |
#: ../../recipes-images.rst:107 2903b44af458484da6825578d79b1da4 |
| 180 |
msgid "" |
| 181 |
"In this case we have `zoom = HEIGHT/clip.height = WIDTH/clip.width`, so " |
| 182 |
"we must set `clip.height = HEIGHT/zoom` and, `clip.width = WIDTH/zoom`. " |
| 183 |
"Choose the top-left point `tl` of the clip on the page to compute the " |
| 184 |
"right pixmap::" |
| 185 |
msgstr "" |
| 186 |
"この場合、 `zoom = HEIGHT/clip.height = WIDTH/clip.width` となるので、 `clip.height" |
| 187 |
" = HEIGHT/zoom` および `clip.width = WIDTH/zoom` " |
| 188 |
"と設定する必要があります。クリップ内のページ上の左上の点 tl を選択して、適切なピクマップを計算します。" |
| 189 |
|
| 190 |
#: ../../recipes-images.rst:124 956b4a0c798e4b199a96b3f962fadf70 |
| 191 |
msgid "How to Create or Suppress Annotation Images" |
| 192 |
msgstr "注釈画像の作成または抑制方法" |
| 193 |
|
| 194 |
#: ../../recipes-images.rst:125 88238495026f4e289613d5e50b81a474 |
| 195 |
msgid "" |
| 196 |
"Normally, the pixmap of a page also shows the page's annotations. " |
| 197 |
"Occasionally, this may not be desirable." |
| 198 |
msgstr "通常、ページのピクマップにはページの注釈も表示されます。しかし、時にはこれが望ましくない場合があります。" |
| 199 |
|
| 200 |
#: ../../recipes-images.rst:127 7cec58430afd46ed9e720d3b6fa029db |
| 201 |
msgid "" |
| 202 |
"To suppress the annotation images on a rendered page, just specify " |
| 203 |
"`annots=False` in :meth:`Page.get_pixmap`." |
| 204 |
msgstr "描画されたページから注釈画像を抑制するには、 :meth:`Page.get_pixmap` で `annots=False` を指定します。" |
| 205 |
|
| 206 |
#: ../../recipes-images.rst:129 f75aaef8eaa54984a2d2fe045e60d421 |
| 207 |
msgid "" |
| 208 |
"You can also render annotations separately: they have their own " |
| 209 |
":meth:`Annot.get_pixmap` method. The resulting pixmap has the same " |
| 210 |
"dimensions as the annotation rectangle." |
| 211 |
msgstr "" |
| 212 |
"注釈を個別にレンダリングすることもできます。注釈には独自の :meth:`Annot.get_pixmap` " |
| 213 |
"メソッドがあります。結果のピクマップは注釈の矩形と同じ寸法です。" |
| 214 |
|
| 215 |
#: ../../recipes-images.rst:141 9ff376603198474f97ccc539fa162925 |
| 216 |
msgid "How to Extract Images: Non-PDF Documents" |
| 217 |
msgstr "画像の抽出方法:非PDFドキュメント" |
| 218 |
|
| 219 |
#: ../../recipes-images.rst:143 e1ee913277e849ab932b9b97874133c3 |
| 220 |
msgid "" |
| 221 |
"In contrast to the previous sections, this section deals with " |
| 222 |
"**extracting** images **contained** in documents, so they can be " |
| 223 |
"displayed as part of one or more pages." |
| 224 |
msgstr "前のセクションとは対照的に、このセクションではドキュメントに含まれる画像の抽出に取り組みます。これにより、これらの画像を1つ以上のページの一部として表示することができます。" |
| 225 |
|
| 226 |
#: ../../recipes-images.rst:145 a1a829c4fe444807b6db244124c9137d |
| 227 |
msgid "" |
| 228 |
"If you want to recreate the original image in file form or as a memory " |
| 229 |
"area, you have basically two options:" |
| 230 |
msgstr "元の画像をファイル形式またはメモリ領域として再作成したい場合、基本的に2つのオプションがあります:" |
| 231 |
|
| 232 |
#: ../../recipes-images.rst:147 773185000e944e7daeaf940ca6fda472 |
| 233 |
msgid "" |
| 234 |
"Convert your document to a PDF, and then use one of the PDF-only " |
| 235 |
"extraction methods. This snippet will convert a document to PDF::" |
| 236 |
msgstr "ドキュメントをPDFに変換し、その後PDF専用の抽出方法のいずれかを使用します。以下のスニペットはドキュメントをPDFに変換します::" |
| 237 |
|
| 238 |
#: ../../recipes-images.rst:153 6416afce3c7447f98cbcd8b2d98214dd |
| 239 |
msgid "" |
| 240 |
"Use :meth:`Page.get_text` with the \"dict\" parameter. This works for all" |
| 241 |
" document types. It will extract all text and images shown on the page, " |
| 242 |
"formatted as a Python dictionary. Every image will occur in an image " |
| 243 |
"block, containing meta information and **the binary image data**. For " |
| 244 |
"details of the dictionary's structure, see :ref:`TextPage`. The method " |
| 245 |
"works equally well for PDF files. This creates a list of all images shown" |
| 246 |
" on a page::" |
| 247 |
msgstr "" |
| 248 |
"「dict」パラメータを使って :meth:`Page.get_text` " |
| 249 |
"を使用します。これはすべてのドキュメントタイプに対して機能します。これにより、ページに表示されているすべてのテキストと画像がPythonの辞書としてフォーマットされて抽出されます。各画像は、メタ情報とバイナリ画像データを含む画像ブロックに含まれます。辞書の構造の詳細については、" |
| 250 |
" :ref:`TextPage` " |
| 251 |
"を参照してください。この方法はPDFファイルにも同じくうまく機能します。これにより、ページに表示されているすべての画像のリストが作成されます::" |
| 252 |
|
| 253 |
#: ../../recipes-images.rst:182 28308796e3ad4f7abf4d6c2b939aca48 |
| 254 |
msgid "How to Extract Images: PDF Documents" |
| 255 |
msgstr "画像の抽出方法:PDFドキュメント" |
| 256 |
|
| 257 |
#: ../../recipes-images.rst:184 0fc3745f79b8438d9b922c7957f09651 |
| 258 |
msgid "" |
| 259 |
"Like any other \"object\" in a PDF, images are identified by a cross " |
| 260 |
"reference number (:data:`xref`, an integer). If you know this number, you" |
| 261 |
" have two ways to access the image's data:" |
| 262 |
msgstr "" |
| 263 |
"PDF内の他のオブジェクトと同様に、画像は交差参照番号( :data:`xref` " |
| 264 |
"、整数)によって識別されます。この番号を知っていれば、画像のデータにアクセスする方法が2つあります:" |
| 265 |
|
| 266 |
#: ../../recipes-images.rst:186 f2a6f39609bb4bcb838f8d7a34a28da5 |
| 267 |
msgid "" |
| 268 |
"**Create** a :ref:`Pixmap` of the image with instruction *pix = " |
| 269 |
"pymupdf.Pixmap(doc, xref)*. This method is **very** fast (single digit " |
| 270 |
"micro-seconds). The pixmap's properties (width, height, ...) will reflect" |
| 271 |
" the ones of the image. In this case there is no way to tell which image " |
| 272 |
"format the embedded original has." |
| 273 |
msgstr "" |
| 274 |
"**画像の** :ref:`Pixmap` を作成します。指示: `pix = pymupdf.Pixmap(doc, xref)` " |
| 275 |
"。この方法は非常に高速です(単桁のマイクロ秒)。 :ref:`Pixmap` " |
| 276 |
"のプロパティ(幅、高さなど)は、画像のものと同じになります。この場合、埋め込まれたオリジナルの画像形式を判別する方法はありません。" |
| 277 |
|
| 278 |
#: ../../recipes-images.rst:188 903b6e9628bb4a0ea1ad4d2ff2f35557 |
| 279 |
msgid "" |
| 280 |
"**Extract** the image with *img = doc.extract_image(xref)*. This is a " |
| 281 |
"dictionary containing the binary image data as *img[\"image\"]*. A number" |
| 282 |
" of meta data are also provided -- mostly the same as you would find in " |
| 283 |
"the pixmap of the image. The major difference is string *img[\"ext\"]*, " |
| 284 |
"which specifies the image format: apart from \"png\", strings like " |
| 285 |
"\"jpeg\", \"bmp\", \"tiff\", etc. can also occur. Use this string as the " |
| 286 |
"file extension if you want to store to disk. The execution speed of this " |
| 287 |
"method should be compared to the combined speed of the statements *pix = " |
| 288 |
"pymupdf.Pixmap(doc, xref);pix.tobytes()*. If the embedded image is in PNG" |
| 289 |
" format, the speed of :meth:`Document.extract_image` is about the same " |
| 290 |
"(and the binary image data are identical). Otherwise, this method is " |
| 291 |
"**thousands of times faster**, and the **image data is much smaller**." |
| 292 |
msgstr "" |
| 293 |
"**画像を抽出します。指示**: `img = doc.extract_image(xref)` " |
| 294 |
"。これはバイナリ画像データを含む辞書です。多くのメタデータも提供されますが、主に画像の :ref:`Pixmap` " |
| 295 |
"で見つけることができるものとほぼ同じです。主な違いは、文字列 img[\"ext\"] であり、画像形式を指定します。\"png\" 以外にも " |
| 296 |
"\"jpeg\" 、 \"bmp\"、 \"tiff\" " |
| 297 |
"などの文字列が出現することがあります。ディスクに保存する場合は、この文字列をファイル拡張子として使用します。このメソッドの実行速度は、以下のステートメントの組み合わせ速度" |
| 298 |
" `pix = pymupdf.Pixmap(doc, xref);pix.tobytes()` " |
| 299 |
"と比較する必要があります。埋め込まれた画像がPNG形式の場合、 :meth:`Document.extract_image` " |
| 300 |
"の速度はほぼ同じで(バイナリ画像データも同じです)、それ以外の場合は、このメソッドは数千倍高速であり、画像データも小さくなります" |
| 301 |
|
| 302 |
#: ../../recipes-images.rst:190 110186a162f04f83955d7d59285d446b |
| 303 |
msgid "" |
| 304 |
"The question remains: **\"How do I know those 'xref' numbers of " |
| 305 |
"images?\"**. There are two answers to this:" |
| 306 |
msgstr "**「どのようにして画像の'xref'番号を知るのか?」** これには2つの答えがあります:" |
| 307 |
|
| 308 |
#: ../../recipes-images.rst:192 ad8338028ef944a19307f2547e05528f |
| 309 |
msgid "" |
| 310 |
"**\"Inspect the page objects:\"** Loop through the items of " |
| 311 |
":meth:`Page.get_images`. It is a list of list, and its items look like " |
| 312 |
"*[xref, smask, ...]*, containing the :data:`xref` of an image. This " |
| 313 |
":data:`xref` can then be used with one of the above methods. Use this " |
| 314 |
"method for **valid (undamaged)** documents. Be wary however, that the " |
| 315 |
"same image may be referenced multiple times (by different pages), so you " |
| 316 |
"might want to provide a mechanism avoiding multiple extracts." |
| 317 |
msgstr "" |
| 318 |
"**「ページオブジェクトを検査する」** : :meth:`Page.get_images` " |
| 319 |
"の項目をループ処理します。これはリストのリストであり、項目は `[xref、smask、...]` のようになっており、画像の " |
| 320 |
":data:`xref` を含んでいます。この :data:`xref` " |
| 321 |
"を上記の方法の1つで使用できます。これは有効(損傷していない)なドキュメントに使用しますが、同じ画像が複数回(異なるページで)参照されることがあるため、複数回の抽出を避けるメカニズムを提供することが望ましいかもしれません。" |
| 322 |
|
| 323 |
#: ../../recipes-images.rst:193 afeb949615fb470d958fdfc35b1fe9dd |
| 324 |
msgid "" |
| 325 |
"**\"No need to know:\"** Loop through the list of **all xrefs** of the " |
| 326 |
"document and perform a :meth:`Document.extract_image` for each one. If " |
| 327 |
"the returned dictionary is empty, then continue -- this :data:`xref` is " |
| 328 |
"no image. Use this method if the PDF is **damaged (unusable pages)**. " |
| 329 |
"Note that a PDF often contains \"pseudo-images\" (\"stencil masks\") with" |
| 330 |
" the special purpose of defining the transparency of some other image. " |
| 331 |
"You may want to provide logic to exclude those from extraction. Also have" |
| 332 |
" a look at the next section." |
| 333 |
msgstr "" |
| 334 |
"**「知る必要はありません」**:ドキュメントのすべての :data:`xref` のリストをループ処理し、各 :data:`xref` に対して" |
| 335 |
" :meth:`Document.extract_image` を実行します。返される辞書が空であれば、続けて次の :data:`xref` " |
| 336 |
"を処理します。この :data:`xref` " |
| 337 |
"は画像ではありません。これはPDFが損傷している(使用できないページがある)場合に使用します。PDFにはしばしば他の画像の透明度を定義する特別な目的の「擬似画像」(ステンシルマスク)が含まれていることに注意してください。これらを抽出から除外するためのロジックを提供することがあるかもしれません。次のセクションも参照してください。" |
| 338 |
|
| 339 |
#: ../../recipes-images.rst:195 6d656f35aa69461f8e47b7f4bf499261 |
| 340 |
msgid "" |
| 341 |
"For both extraction approaches, there exist ready-to-use general purpose " |
| 342 |
"scripts:" |
| 343 |
msgstr "これらの抽出方法の両方に対して、一般的な用途のスクリプトが存在します。" |
| 344 |
|
| 345 |
#: ../../recipes-images.rst:197 490e93536036437fab679b20daac6f6a |
| 346 |
msgid "" |
| 347 |
"`extract-from-pages.py <https://github.com/pymupdf/PyMuPDF-" |
| 348 |
"Utilities/blob/master/examples/extract-images/extract-from-pages.py>`_ " |
| 349 |
"extracts images page by page:" |
| 350 |
msgstr "" |
| 351 |
"`extract-from-pages.py <https://github.com/pymupdf/PyMuPDF-" |
| 352 |
"Utilities/blob/master/examples/extract-images/extract-from-pages.py>`_ " |
| 353 |
"はページごとに画像を抽出します。" |
| 354 |
|
| 355 |
#: ../../recipes-images.rst:202 87adba5350a8467e87dc3f0e80cae1e4 |
| 356 |
msgid "" |
| 357 |
"and `extract-from-xref.py <https://github.com/pymupdf/PyMuPDF-" |
| 358 |
"Utilities/blob/master/examples/extract-images/extract-from-xref.py>`_ " |
| 359 |
"extracts images by xref table:" |
| 360 |
msgstr "" |
| 361 |
"`extract-from-xref.py <https://github.com/pymupdf/PyMuPDF-" |
| 362 |
"Utilities/blob/master/examples/extract-images/extract-from-xref.py>`_ " |
| 363 |
"はxrefテーブルによって画像を抽出します。" |
| 364 |
|
| 365 |
#: ../../recipes-images.rst:213 b53c02001e2f4f7391e6e9e880b0631f |
| 366 |
msgid "How to Handle Image Masks" |
| 367 |
msgstr "画像マスクの処理方法" |
| 368 |
|
| 369 |
#: ../../recipes-images.rst:214 32034dc3accf4622b51ead4c06f67509 |
| 370 |
msgid "" |
| 371 |
"Some images in PDFs are accompanied by **image masks**. In their simplest" |
| 372 |
" form, masks represent alpha (transparency) bytes stored as separate " |
| 373 |
"images. In order to reconstruct the original of an image, which has a " |
| 374 |
"mask, it must be \"enriched\" with transparency bytes taken from its " |
| 375 |
"mask." |
| 376 |
msgstr "PDF内の一部の画像には画像マスクが付属しています。最も単純な形式では、マスクは別の画像として格納されたアルファ(透明度)バイトを表します。画像の元の形を復元するには、そのマスクから取得した透明度バイトを使用して画像を「補完」する必要があります。" |
| 377 |
|
| 378 |
#: ../../recipes-images.rst:216 e0828025961548d4a2ed0f2e5b9cedf6 |
| 379 |
msgid "" |
| 380 |
"Whether an image does have such a mask can be recognized in one of two " |
| 381 |
"ways in PyMuPDF:" |
| 382 |
msgstr "PyMuPDFでは、画像にそのようなマスクがあるかどうかは次の2つの方法で認識できます:" |
| 383 |
|
| 384 |
#: ../../recipes-images.rst:218 4c26a844692448d6818018bc8e19f652 |
| 385 |
msgid "" |
| 386 |
"An item of :meth:`Document.get_page_images` has the general format " |
| 387 |
"`(xref, smask, ...)`, where :data:`xref` is the image's :data:`xref` and " |
| 388 |
"*smask*, if positive, then it is the :data:`xref` of a mask." |
| 389 |
msgstr "" |
| 390 |
":meth:`Document.get_page_images` の項目は一般的な形式 `(xref、smask、...)` " |
| 391 |
"を持ちます。ここで、xrefは画像の :data:`xref` であり、 「smask」 が正の場合、それはマスクの :data:`xref` " |
| 392 |
"です。" |
| 393 |
|
| 394 |
#: ../../recipes-images.rst:219 8011ba0428cc4b87a64b8031ea34ea90 |
| 395 |
msgid "" |
| 396 |
"The (dictionary) results of :meth:`Document.extract_image` have a key " |
| 397 |
"*\"smask\"*, which also contains any mask's :data:`xref` if positive." |
| 398 |
msgstr "" |
| 399 |
":meth:`Document.extract_image` の結果(辞書)には、キー「smask」があります。このキーには、マスクの " |
| 400 |
":data:`xref` が含まれています。" |
| 401 |
|
| 402 |
#: ../../recipes-images.rst:221 65aadf1969e44334a7c86d7524a50702 |
| 403 |
msgid "" |
| 404 |
"If *smask == 0* then the image encountered via :data:`xref` can be " |
| 405 |
"processed as it is." |
| 406 |
msgstr "`smask == 0` の場合、 :data:`xref` を介して遭遇した画像はそのまま処理できます。" |
| 407 |
|
| 408 |
#: ../../recipes-images.rst:223 302ce99937d44ca995fcedb51c11aaae |
| 409 |
msgid "" |
| 410 |
"To recover the original image using PyMuPDF, the procedure depicted as " |
| 411 |
"follows must be executed:" |
| 412 |
msgstr "PyMuPDFを使用して元の画像を復元するためには、以下に示す手順を実行する必要があります:" |
| 413 |
|
| 414 |
#: ../../recipes-images.rst:232 df80dda6fd5a4c4db985e0cfa929ee0a |
| 415 |
msgid "" |
| 416 |
"Step (1) creates a pixmap of the basic image. Step (2) does the same with" |
| 417 |
" the image mask. Step (3) adds an alpha channel and fills it with " |
| 418 |
"transparency information." |
| 419 |
msgstr "ステップ(1)では、基本画像のピクマップを作成します。ステップ(2)では、同じことを画像マスクで行います。ステップ(3)では、アルファチャンネルを追加し、透明情報で埋めます。" |
| 420 |
|
| 421 |
#: ../../recipes-images.rst:234 4a160a9c64ac45caa88c66099e2af1b1 |
| 422 |
msgid "" |
| 423 |
"The scripts `extract-from-pages.py <https://github.com/pymupdf/PyMuPDF-" |
| 424 |
"Utilities/blob/master/examples/extract-images/extract-from-pages.py>`_, " |
| 425 |
"and `extract-from-xref.py <https://github.com/pymupdf/PyMuPDF-" |
| 426 |
"Utilities/blob/master/examples/extract-images/extract-from-xref.py>`_ " |
| 427 |
"above also contain this logic." |
| 428 |
msgstr "" |
| 429 |
"また、上記の `extract-from-pages.py <https://github.com/pymupdf/PyMuPDF-" |
| 430 |
"Utilities/blob/master/examples/extract-images/extract-from-pages.py>`_ " |
| 431 |
"および `extract-from-xref.py <https://github.com/pymupdf/PyMuPDF-" |
| 432 |
"Utilities/blob/master/examples/extract-images/extract-from-xref.py>`_ " |
| 433 |
"というスクリプトにもこのロジックが含まれています。" |
| 434 |
|
| 435 |
#: ../../recipes-images.rst:250 0f2b285905974f1b99efded1652e0905 |
| 436 |
msgid "How to Make one PDF of all your Pictures (or Files)" |
| 437 |
msgstr "すべての写真(またはファイル)を1つのPDFにする方法" |
| 438 |
|
| 439 |
#: ../../recipes-images.rst:251 8d8107e9ab0942c88a4abccc8f7092dc |
| 440 |
msgid "" |
| 441 |
"We show here **three scripts** that take a list of (image and other) " |
| 442 |
"files and put them all in one PDF." |
| 443 |
msgstr "以下に、(画像およびその他の)ファイルのリストを受け取り、それらをすべて1つのPDFに結合する3つのスクリプトを示します。" |
| 444 |
|
| 445 |
#: ../../recipes-images.rst:253 3df4d9f329c4453f9ca02d580bd2b3ba |
| 446 |
msgid "**Method 1: Inserting Images as Pages**" |
| 447 |
msgstr "**方法1:画像をページとして挿入する方法**" |
| 448 |
|
| 449 |
#: ../../recipes-images.rst:255 0bbd32458c89450b9f8adc7638530473 |
| 450 |
msgid "" |
| 451 |
"The first one converts each image to a PDF page with the same dimensions." |
| 452 |
" The result will be a PDF with one page per image. It will only work for " |
| 453 |
":ref:`supported image<Supported_File_Types>` file formats::" |
| 454 |
msgstr "" |
| 455 |
"最初の方法では、各画像を同じ寸法のPDFページに変換します。結果は、1つの画像に1ページのPDFとなります。ただし、 " |
| 456 |
":ref:`サポートされている <Supported_File_Types>` 画像ファイル形式のみで動作します。::" |
| 457 |
|
| 458 |
#: ../../recipes-images.rst:278 959fd3ad51dc45daa6b1f1310ad95124 |
| 459 |
msgid "" |
| 460 |
"This will generate a PDF only marginally larger than the combined " |
| 461 |
"pictures' size. Some numbers on performance:" |
| 462 |
msgstr "これにより、結合された画像のサイズとほとんど変わらないPDFが生成されます。パフォーマンスに関するいくつかの数値:" |
| 463 |
|
| 464 |
#: ../../recipes-images.rst:280 4996fb148b334e01b2a6baaedf636b52 |
| 465 |
msgid "" |
| 466 |
"The above script needed about 1 minute on my machine for 149 pictures " |
| 467 |
"with a total size of 514 MB (and about the same resulting PDF size)." |
| 468 |
msgstr "上記のスクリプトは、149枚の画像で合計サイズが514 MBの場合、私のマシン上で約1分かかりました(生成されたPDFのサイズもほぼ同じです)。" |
| 469 |
|
| 470 |
#: ../../recipes-images.rst:285 b684aa875c574e47bc3fc5f6c15767d1 |
| 471 |
msgid "" |
| 472 |
"Look `here <https://github.com/pymupdf/PyMuPDF-" |
| 473 |
"Utilities/blob/master/examples/insert-images/insert.py>`_ for a more " |
| 474 |
"complete source code: it offers a directory selection dialog and skips " |
| 475 |
"unsupported files and non-file entries." |
| 476 |
msgstr "" |
| 477 |
"より完全なソースコードは `こちら <https://github.com/pymupdf/PyMuPDF-" |
| 478 |
"Utilities/blob/master/examples/insert-images/insert.py>`_ " |
| 479 |
"をご覧ください:ディレクトリ選択ダイアログを提供し、サポートされていないファイルやファイルでないエントリをスキップします。" |
| 480 |
|
| 481 |
#: ../../recipes-images.rst:287 03c855c845f74ac1bcf9ce3a7ee420c1 |
| 482 |
msgid "" |
| 483 |
"We might have used :meth:`Page.insert_image` instead of " |
| 484 |
":meth:`Page.show_pdf_page`, and the result would have been a similar " |
| 485 |
"looking file. However, depending on the image type, it may store **images" |
| 486 |
" uncompressed**. Therefore, the save option *deflate = True* must be used" |
| 487 |
" to achieve a reasonable file size, which hugely increases the runtime " |
| 488 |
"for large numbers of images. So this alternative **cannot be " |
| 489 |
"recommended** here." |
| 490 |
msgstr "" |
| 491 |
":meth:`Page.insert_image` の代わりに :meth:`Page.show_pdf_page` " |
| 492 |
"を使用することもできましたが、結果として似たような外観のファイルになります。ただし、画像の種類によっては、非圧縮で画像を保存する場合があります。そのため、適切なファイルサイズを得るためには、保存オプションとして" |
| 493 |
" `deflate = True` " |
| 494 |
"を使用する必要がありますが、これにより大量の画像の場合、実行時間が大幅に増加します。そのため、この代替方法はお勧めできません。" |
| 495 |
|
| 496 |
#: ../../recipes-images.rst:289 41c532d33e8f42a39bb7560b25d00787 |
| 497 |
msgid "**Method 2: Embedding Files**" |
| 498 |
msgstr "**方法2:ファイルの埋め込み**" |
| 499 |
|
| 500 |
#: ../../recipes-images.rst:291 490c3dd2b7d64db682e9ea9f27e723df |
| 501 |
msgid "" |
| 502 |
"The second script **embeds** arbitrary files -- not only images. The " |
| 503 |
"resulting PDF will have just one (empty) page, required for technical " |
| 504 |
"reasons. To later access the embedded files again, you would need a " |
| 505 |
"suitable PDF viewer that can display and / or extract embedded files::" |
| 506 |
msgstr "2つ目のスクリプトは、画像だけでなく、任意のファイルを埋め込みます。技術的な理由で必要なので、結果として得られるPDFには1つだけ(空の)ページがあります。埋め込まれたファイルに後でアクセスするためには、埋め込まれたファイルを表示または抽出できる適切なPDFビューアが必要です::" |
| 507 |
|
| 508 |
#: ../../recipes-images.rst:316 aa85ab6a4d7f4c068e437bc62ecde2f7 |
| 509 |
msgid "" |
| 510 |
"This is by far the fastest method, and it also produces the smallest " |
| 511 |
"possible output file size. The above pictures needed 20 seconds on my " |
| 512 |
"machine and yielded a PDF size of 510 MB. Look `here " |
| 513 |
"<https://github.com/pymupdf/PyMuPDF-Utilities/tree/master/examples/embed-" |
| 514 |
"images/embed.py>`_ for a more complete source code: it offers a directory" |
| 515 |
" selection dialog and skips non-file entries." |
| 516 |
msgstr "" |
| 517 |
"これは断然最も高速な方法であり、可能な限り最小の出力ファイルサイズを生成します。上記の画像は私のマシンで20秒かかり、PDFのサイズは510 " |
| 518 |
"MBになりました。より完全なソースコードは `こちら <https://github.com/pymupdf/PyMuPDF-" |
| 519 |
"Utilities/tree/master/examples/embed-images/embed.py>`_ " |
| 520 |
"をご覧ください:ディレクトリ選択ダイアログを提供し、ファイルでないエントリをスキップします。" |
| 521 |
|
| 522 |
#: ../../recipes-images.rst:318 a5e66a78eac4476db9b235257835f444 |
| 523 |
msgid "**Method 3: Attaching Files**" |
| 524 |
msgstr "**方法3:ファイルの添付**" |
| 525 |
|
| 526 |
#: ../../recipes-images.rst:320 25dd45dc2fc5483686500405d2daa76a |
| 527 |
msgid "" |
| 528 |
"A third way to achieve this task is **attaching files** via page " |
| 529 |
"annotations see `here <https://github.com/pymupdf/PyMuPDF-" |
| 530 |
"Utilities/blob/master/examples/attach-images/attach.py>`_ for the " |
| 531 |
"complete source code." |
| 532 |
msgstr "" |
| 533 |
"このタスクを達成する第3の方法は、ページの注釈を介してファイルを添付する方法です。完全なソースコードについては `こちら " |
| 534 |
"<https://github.com/pymupdf/PyMuPDF-Utilities/blob/master/examples" |
| 535 |
"/attach-images/attach.py>`_ をご覧ください。" |
| 536 |
|
| 537 |
#: ../../recipes-images.rst:322 fde0ae6309414feb89541d4ee22f054a |
| 538 |
msgid "" |
| 539 |
"This has a similar performance as the previous script and it also " |
| 540 |
"produces a similar file size. It will produce PDF pages which show a " |
| 541 |
"'FileAttachment' icon for each attached file." |
| 542 |
msgstr "これは前のスクリプトと同様のパフォーマンスを持ち、似たようなファイルサイズも生成します。それぞれの添付ファイルに対して「FileAttachment」アイコンが表示されるPDFページを生成します。" |
| 543 |
|
| 544 |
#: ../../recipes-images.rst:326 807309e9b6e0443c892b7a6d9f92f145 |
| 545 |
msgid "" |
| 546 |
"Both, the **embed** and the **attach** methods can be used for " |
| 547 |
"**arbitrary files** -- not just images." |
| 548 |
msgstr "埋め込みと添付の両方の方法は、画像だけでなく任意のファイルにも使用できます。" |
| 549 |
|
| 550 |
#: ../../recipes-images.rst:328 26ac29237c8d43398109384507fd51a8 |
| 551 |
msgid "" |
| 552 |
"We strongly recommend using the awesome package `PySimpleGUI " |
| 553 |
"<https://pypi.org/project/PySimpleGUI/>`_ to display a progress meter for" |
| 554 |
" tasks that may run for an extended time span. It's pure Python, uses " |
| 555 |
"Tkinter (no additional GUI package) and requires just one more line of " |
| 556 |
"code!" |
| 557 |
msgstr "" |
| 558 |
"長時間にわたるタスクに対して進捗メーターを表示するために、素晴らしいパッケージ `PySimpleGUI " |
| 559 |
"<https://pypi.org/project/PySimpleGUI/>`_ " |
| 560 |
"の使用を強くお勧めします。これは純粋なPythonであり、Tkinter(追加のGUIパッケージは不要)を使用し、たった1行のコードを追加するだけで使えます!" |
| 561 |
|
| 562 |
#: ../../recipes-images.rst:342 ebad9685f21841c2b8ee9ac84740ecf2 |
| 563 |
msgid "How to Create Vector Images" |
| 564 |
msgstr "ベクター画像の作成方法" |
| 565 |
|
| 566 |
#: ../../recipes-images.rst:343 40ce7c0f9b0044e3939ba507d3f936fd |
| 567 |
msgid "" |
| 568 |
"The usual way to create an image from a document page is " |
| 569 |
":meth:`Page.get_pixmap`. A pixmap represents a raster image, so you must " |
| 570 |
"decide on its quality (i.e. resolution) at creation time. It cannot be " |
| 571 |
"changed later." |
| 572 |
msgstr "" |
| 573 |
"ドキュメントページから画像を作成する通常の方法は、 :meth:`Page.get_pixmap` " |
| 574 |
"を使用することです。ピクマップはラスター画像を表しますので、作成時にその品質(つまり解像度)を決定する必要があります。後から変更することはできません。" |
| 575 |
|
| 576 |
#: ../../recipes-images.rst:345 35c05b06ad73440aa94313c3f527dc97 |
| 577 |
msgid "" |
| 578 |
"PyMuPDF also offers a way to create a **vector image** of a page in SVG " |
| 579 |
"format (scalable vector graphics, defined in XML syntax). SVG images " |
| 580 |
"remain precise across zooming levels (of course with the exception of any" |
| 581 |
" raster graphic elements embedded therein)." |
| 582 |
msgstr "PyMuPDFはまた、SVG形式(XML構文で定義されたスケーラブルベクターグラフィックス)でページのベクター画像を作成する方法を提供しています。SVG画像はズームレベルで正確性を保持します(もちろん、埋め込まれたラスターグラフィックス要素を除く)。" |
| 583 |
|
| 584 |
#: ../../recipes-images.rst:347 3664556134d441ee8ca7d943fe0e97b5 |
| 585 |
msgid "" |
| 586 |
"Instruction *svg = page.get_svg_image(matrix=pymupdf.Identity)* delivers " |
| 587 |
"a UTF-8 string *svg* which can be stored with extension \".svg\"." |
| 588 |
msgstr "" |
| 589 |
"指示 `svg = page.get_svg_image(matrix=pymupdf.Identity)` はUTF-8文字列 *svg* " |
| 590 |
"を提供します。これは \".svg\" の拡張子で保存できます。" |
| 591 |
|
| 592 |
#: ../../recipes-images.rst:363 2e788e908541456db558a6d1e638447c |
| 593 |
msgid "How to Convert Images" |
| 594 |
msgstr "画像の変換方法" |
| 595 |
|
| 596 |
#: ../../recipes-images.rst:364 eaecfbf3be504291831504c4b64f18ba |
| 597 |
msgid "" |
| 598 |
"Just as a feature among others, PyMuPDF's image conversion is easy. It " |
| 599 |
"may avoid using other graphics packages like PIL/Pillow in many cases." |
| 600 |
msgstr "PyMuPDFの画像変換も他の機能と同様に簡単です。多くの場合、PIL/Pillowなどの他のグラフィックスパッケージを使用する必要がないかもしれません。" |
| 601 |
|
| 602 |
#: ../../recipes-images.rst:366 c3f0f2ee44ad425e8ec5c957c779fbd5 |
| 603 |
msgid "Notwithstanding that interfacing with Pillow is almost trivial." |
| 604 |
msgstr "ただし、Pillowとの連携はほとんど自明です。" |
| 605 |
|
| 606 |
#: ../../recipes-images.rst:369 6b90048732484c0bb7bfd07609cd24ce |
| 607 |
msgid "**Input Formats**" |
| 608 |
msgstr "**入力フォーマット**" |
| 609 |
|
| 610 |
#: ../../recipes-images.rst:369 07a5c9395a4c45299d51e3bd83222984 |
| 611 |
msgid "**Output Formats**" |
| 612 |
msgstr "**出力フォーマット**" |
| 613 |
|
| 614 |
#: ../../recipes-images.rst:369 8350dc457b254b8291594699ce54839d |
| 615 |
msgid "**Description**" |
| 616 |
msgstr "**説明**" |
| 617 |
|
| 618 |
#: ../../recipes-images.rst:371 0979a1ef86ea4e20a05e557a7442a3b2 |
| 619 |
msgid "BMP" |
| 620 |
msgstr "" |
| 621 |
|
| 622 |
#: ../../recipes-images.rst:371 ../../recipes-images.rst:373 |
| 623 |
#: ../../recipes-images.rst:374 ../../recipes-images.rst:375 |
| 624 |
#: ../../recipes-images.rst:376 ../../recipes-images.rst:383 |
| 625 |
#: ../../recipes-images.rst:384 0bacf30757bb4f319e65010549478182 |
| 626 |
#: 3ad593408aa445ce99d7f7d9479bca6d 55dc892386e3401f95cd320419c8edc9 |
| 627 |
#: 7df71f3343174cfb84397536f4af3a84 84d138cd65ae497681d5c605ce8f2af7 |
| 628 |
#: 95f327688bc1431c9523ec2101e353b0 c96232bb6e7340e2a5eb85364348a2a0 |
| 629 |
msgid "." |
| 630 |
msgstr "" |
| 631 |
|
| 632 |
#: ../../recipes-images.rst:371 5897545255814fd5ba5a65241d15eced |
| 633 |
msgid "Windows Bitmap" |
| 634 |
msgstr "" |
| 635 |
|
| 636 |
#: ../../recipes-images.rst:372 41f6b3399986413abe65e2869c4053ea |
| 637 |
#: d00191a3adf74e71b0459460b1c2e159 |
| 638 |
msgid "JPEG" |
| 639 |
msgstr "" |
| 640 |
|
| 641 |
#: ../../recipes-images.rst:372 d3b57018b2e3452080901854b19d1342 |
| 642 |
msgid "Joint Photographic Experts Group" |
| 643 |
msgstr "" |
| 644 |
|
| 645 |
#: ../../recipes-images.rst:373 a3bdd964789b43cbad6247e119a6c54a |
| 646 |
msgid "JXR" |
| 647 |
msgstr "" |
| 648 |
|
| 649 |
#: ../../recipes-images.rst:373 bbea31de8177475b8158cf220a94abcb |
| 650 |
msgid "JPEG Extended Range" |
| 651 |
msgstr "" |
| 652 |
|
| 653 |
#: ../../recipes-images.rst:374 809526ac7ac74d2fb28e089e82a225d7 |
| 654 |
msgid "JPX/JP2" |
| 655 |
msgstr "" |
| 656 |
|
| 657 |
#: ../../recipes-images.rst:374 9bf0ef68929647cd85f92ab8f862d849 |
| 658 |
msgid "JPEG 2000" |
| 659 |
msgstr "" |
| 660 |
|
| 661 |
#: ../../recipes-images.rst:375 c791169bcfe4452e80b2573539c06ef1 |
| 662 |
msgid "GIF" |
| 663 |
msgstr "" |
| 664 |
|
| 665 |
#: ../../recipes-images.rst:375 4a2960cefc3b47e496db085a39846137 |
| 666 |
msgid "Graphics Interchange Format" |
| 667 |
msgstr "" |
| 668 |
|
| 669 |
#: ../../recipes-images.rst:376 4dcf6574e1574eaf922b9851c56ab035 |
| 670 |
msgid "TIFF" |
| 671 |
msgstr "" |
| 672 |
|
| 673 |
#: ../../recipes-images.rst:376 df65730301314c1f95cb3c5315179281 |
| 674 |
msgid "Tagged Image File Format" |
| 675 |
msgstr "" |
| 676 |
|
| 677 |
#: ../../recipes-images.rst:377 492608579f5a466e93c3441942845056 |
| 678 |
#: 671fbf03f46c46f6a82cc000cfea3b33 |
| 679 |
msgid "PNG" |
| 680 |
msgstr "" |
| 681 |
|
| 682 |
#: ../../recipes-images.rst:377 6800194509e449b699a2f117857a1789 |
| 683 |
msgid "Portable Network Graphics" |
| 684 |
msgstr "" |
| 685 |
|
| 686 |
#: ../../recipes-images.rst:378 12727b15f7504523b43a9f77cc9a9923 |
| 687 |
#: 221349ddd94740f18dc2a986e2f63e53 |
| 688 |
msgid "PNM" |
| 689 |
msgstr "" |
| 690 |
|
| 691 |
#: ../../recipes-images.rst:378 7b091d14802241e4bba073bd5e0dc0d6 |
| 692 |
msgid "Portable Anymap" |
| 693 |
msgstr "" |
| 694 |
|
| 695 |
#: ../../recipes-images.rst:379 bf3bacb00fbe43da9d560e7fbe4f78f4 |
| 696 |
#: ed77816ad90043ff838934fe85431860 |
| 697 |
msgid "PGM" |
| 698 |
msgstr "" |
| 699 |
|
| 700 |
#: ../../recipes-images.rst:379 37c68be55f8c46a3a92da90ed0894ded |
| 701 |
msgid "Portable Graymap" |
| 702 |
msgstr "" |
| 703 |
|
| 704 |
#: ../../recipes-images.rst:380 6f4d332905c643b9899a52fd96de577c |
| 705 |
#: 8530d6f66aaf4ed8b8e74e8de3aaf662 |
| 706 |
msgid "PBM" |
| 707 |
msgstr "" |
| 708 |
|
| 709 |
#: ../../recipes-images.rst:380 78f4ada30b5940558d7575226b665930 |
| 710 |
msgid "Portable Bitmap" |
| 711 |
msgstr "" |
| 712 |
|
| 713 |
#: ../../recipes-images.rst:381 18ad666221cb4e268aac5b2adcb051bc |
| 714 |
#: e4ac66013a6b40ef8f5f8dbcc44cbf3d |
| 715 |
msgid "PPM" |
| 716 |
msgstr "" |
| 717 |
|
| 718 |
#: ../../recipes-images.rst:381 46c1b8ed50c14c30b04706c0bcee355d |
| 719 |
msgid "Portable Pixmap" |
| 720 |
msgstr "" |
| 721 |
|
| 722 |
#: ../../recipes-images.rst:382 4eee3125b6b24045bf368e25ea1ccfe7 |
| 723 |
#: 65190b879c2b49ce893b4dd5d72947a4 |
| 724 |
msgid "PAM" |
| 725 |
msgstr "" |
| 726 |
|
| 727 |
#: ../../recipes-images.rst:382 9cb3d8054e01459bad986a5ff4b72d76 |
| 728 |
msgid "Portable Arbitrary Map" |
| 729 |
msgstr "" |
| 730 |
|
| 731 |
#: ../../recipes-images.rst:383 172c0b24c3c74558b48cecb435b62a71 |
| 732 |
msgid "PSD" |
| 733 |
msgstr "" |
| 734 |
|
| 735 |
#: ../../recipes-images.rst:383 d957051043af4e16a05d1bab3b7846e0 |
| 736 |
msgid "Adobe Photoshop Document" |
| 737 |
msgstr "" |
| 738 |
|
| 739 |
#: ../../recipes-images.rst:384 61adad659533407383e3030a6a26682a |
| 740 |
msgid "PS" |
| 741 |
msgstr "" |
| 742 |
|
| 743 |
#: ../../recipes-images.rst:384 bd96837df2984e15953ba98f2ce8e7ca |
| 744 |
msgid "Adobe Postscript" |
| 745 |
msgstr "" |
| 746 |
|
| 747 |
#: ../../recipes-images.rst:387 2e9599f2f28e412f95d48fc8a90716c0 |
| 748 |
msgid "The general scheme is just the following two lines::" |
| 749 |
msgstr "一般的なスキームは以下の2行です::" |
| 750 |
|
| 751 |
#: ../../recipes-images.rst:392 6a1955099311437ea3d6c722779fe787 |
| 752 |
msgid "**Remarks**" |
| 753 |
msgstr "**コメント**" |
| 754 |
|
| 755 |
#: ../../recipes-images.rst:394 5e7c8ed9975341bb9b398e94977a1c35 |
| 756 |
msgid "" |
| 757 |
"The **input** argument of *pymupdf.Pixmap(arg)* can be a file or a bytes " |
| 758 |
"/ io.BytesIO object containing an image." |
| 759 |
msgstr "`pymupdf.Pixmap(arg)` の入力引数は、画像を含むファイルまたはbytes/io.BytesIOオブジェクトを指定できます。" |
| 760 |
|
| 761 |
#: ../../recipes-images.rst:395 29c03f633e3c4f85905a883594780a1a |
| 762 |
msgid "" |
| 763 |
"Instead of an output **file**, you can also create a bytes object via " |
| 764 |
"*pix.tobytes(\"yyy\")* and pass this around." |
| 765 |
msgstr "出力ファイルの代わりに、 `pix.tobytes(\"yyy\")` を使用してbytesオブジェクトを作成し、それを渡すこともできます。" |
| 766 |
|
| 767 |
#: ../../recipes-images.rst:396 08d941cbdcde49e7894c7cd54dceeb12 |
| 768 |
msgid "" |
| 769 |
"As a matter of course, input and output formats must be compatible in " |
| 770 |
"terms of colorspace and transparency. The ``Pixmap`` class has batteries " |
| 771 |
"included if adjustments are needed." |
| 772 |
msgstr "" |
| 773 |
"もちろん、入力と出力のフォーマットは、色空間と透過性の面で互換性が必要です。 :ref:`Pixmap` " |
| 774 |
"クラスには、必要に応じて調整を行うための組み込みの機能が備わっています。" |
| 775 |
|
| 776 |
#: ../../recipes-images.rst:399 3264d7f4236e472d9acb18b03a6c378f |
| 777 |
msgid "**Convert JPEG to Photoshop**::" |
| 778 |
msgstr "**JPEGをPhotoshopに変換する**::" |
| 779 |
|
| 780 |
#: ../../recipes-images.rst:405 03352131b8ff486f8481486724d51437 |
| 781 |
msgid "" |
| 782 |
"Convert **JPEG to Tkinter PhotoImage**. Any **RGB / no-alpha** image " |
| 783 |
"works exactly the same. Conversion to one of the **Portable Anymap** " |
| 784 |
"formats (PPM, PGM, etc.) does the trick, because they are supported by " |
| 785 |
"all Tkinter versions::" |
| 786 |
msgstr "アルファ付きのPNGをTkinterのPhotoImageに変換してください。これには、PPMへの変換を行う前にアルファバイトを削除する必要があります。" |
| 787 |
|
| 788 |
#: ../../recipes-images.rst:412 1d8ba60c17ef4537a879f8880ddf842e |
| 789 |
msgid "" |
| 790 |
"Convert **PNG with alpha** to Tkinter PhotoImage. This requires " |
| 791 |
"**removing the alpha bytes**, before we can do the PPM conversion::" |
| 792 |
msgstr "アルファ付きのPNGをTkinterのPhotoImageに変換します。このためには、PPMへの変換を行う前にアルファバイトを取り除く必要があります。" |
| 793 |
|
| 794 |
#: ../../recipes-images.rst:429 e998a366000347d1b54bed12c09423fd |
| 795 |
msgid "How to Use Pixmaps: Gluing Images" |
| 796 |
msgstr "ピクスマップの使用方法:画像の結合" |
| 797 |
|
| 798 |
#: ../../recipes-images.rst:431 f97460e4da964505a4f7c1625d462e07 |
| 799 |
msgid "" |
| 800 |
"This shows how pixmaps can be used for purely graphical, non-document " |
| 801 |
"purposes. The script reads an image file and creates a new image which " |
| 802 |
"consist of 3 * 4 tiles of the original::" |
| 803 |
msgstr "" |
| 804 |
"これは、ピクスマップを純粋にグラフィカルで、文書ではない目的で使用する方法を示しています。スクリプトは画像ファイルを読み込み、元の画像の3 * " |
| 805 |
"4タイルからなる新しい画像を作成します。" |
| 806 |
|
| 807 |
#: ../../recipes-images.rst:451 4e2ddaf362f641b79cccb12467620742 |
| 808 |
msgid "This is the input picture:" |
| 809 |
msgstr "これが入力画像です。" |
| 810 |
|
| 811 |
#: ../../recipes-images.rst:456 517480af4baf43568e79bdb13b6ab85c |
| 812 |
msgid "Here is the output:" |
| 813 |
msgstr "こちらが出力結果です。" |
| 814 |
|
| 815 |
#: ../../recipes-images.rst:473 172a0fbba4984e9cb6d93f6ed02742fa |
| 816 |
msgid "How to Use Pixmaps: Making a Fractal" |
| 817 |
msgstr "ピクスマップの使用方法:フラクタルの作成" |
| 818 |
|
| 819 |
#: ../../recipes-images.rst:475 18c71aef80304611bec96e98bcd38669 |
| 820 |
msgid "" |
| 821 |
"Here is another Pixmap example that creates **Sierpinski's Carpet** -- a " |
| 822 |
"fractal generalizing the **Cantor Set** to two dimensions. Given a square" |
| 823 |
" carpet, mark its 9 sub-suqares (3 times 3) and cut out the one in the " |
| 824 |
"center. Treat each of the remaining eight sub-squares in the same way, " |
| 825 |
"and continue *ad infinitum*. The end result is a set with area zero and " |
| 826 |
"fractal dimension 1.8928..." |
| 827 |
msgstr "" |
| 828 |
"ここでは、もう一つのピクスマップの例を紹介します。シェルピンスキーのカーペット(Sierpinski's " |
| 829 |
"Carpet)と呼ばれるフラクタルで、カントール集合を2次元に一般化したものです。正方形のカーペットにおいて、9つの部分正方形(3行3列)をマークし、中央の正方形を切り抜きます。残りの8つの部分正方形に対しても同じ操作を行い、無限に続けます。その結果、面積がゼロであり、フラクタル次元は1.8928...となります。" |
| 830 |
|
| 831 |
#: ../../recipes-images.rst:477 53c09705945d4ed3bec2d17b7c9f1581 |
| 832 |
msgid "" |
| 833 |
"This script creates an approximate image of it as a PNG, by going down to" |
| 834 |
" one-pixel granularity. To increase the image precision, change the value" |
| 835 |
" of n (precision)::" |
| 836 |
msgstr "このスクリプトは、1ピクセルの精度にまで細かくなったPNGの近似画像を作成します。画像の精度を高めるには、n(精度)の値を変更してください::" |
| 837 |
|
| 838 |
#: ../../recipes-images.rst:531 68789bca8b624ff491e93d5a400ff3ac |
| 839 |
msgid "The result should look something like this:" |
| 840 |
msgstr "結果は以下のようになるはずです:" |
| 841 |
|
| 842 |
#: ../../recipes-images.rst:541 93a642a1f6fb4a578a82d7b7baf97ad3 |
| 843 |
msgid "How to Interface with NumPy" |
| 844 |
msgstr "NumPyとのインターフェース方法" |
| 845 |
|
| 846 |
#: ../../recipes-images.rst:543 8f95a3058d5348dfa20391d4596a676e |
| 847 |
msgid "" |
| 848 |
"This shows how to create a PNG file from a numpy array (several times " |
| 849 |
"faster than most other methods)::" |
| 850 |
msgstr "これは、NumPy配列からPNGファイルを作成する方法を示しています(他の方法よりも数倍高速です)。" |
| 851 |
|
| 852 |
#: ../../recipes-images.rst:570 fe1a53c3297d463785209cfc2a811f98 |
| 853 |
msgid "How to Add Images to a PDF Page" |
| 854 |
msgstr "PDFページに画像を追加する方法" |
| 855 |
|
| 856 |
#: ../../recipes-images.rst:572 c4977664b53940488eefb7c79db6760f |
| 857 |
msgid "" |
| 858 |
"There are two methods to add images to a PDF page: " |
| 859 |
":meth:`Page.insert_image` and :meth:`Page.show_pdf_page`. Both methods " |
| 860 |
"have things in common, but there are also differences." |
| 861 |
msgstr "" |
| 862 |
"PDFページに画像を追加するには、2つの方法があります: :meth:`Page.insert_image` と " |
| 863 |
":meth:`Page.show_pdf_page` です。両方の方法には共通点がありますが、違いもあります。" |
| 864 |
|
| 865 |
#: ../../recipes-images.rst:575 05867b3cbf1e4cfbb8b56cd82480ca49 |
| 866 |
msgid "**Criterion**" |
| 867 |
msgstr "**基準**" |
| 868 |
|
| 869 |
#: ../../recipes-images.rst:575 1a4fb4ba40034ec697f3f519a1472c05 |
| 870 |
msgid ":meth:`Page.insert_image`" |
| 871 |
msgstr "" |
| 872 |
|
| 873 |
#: ../../recipes-images.rst:575 c77d016df1554917b7a351e1213d6d30 |
| 874 |
msgid ":meth:`Page.show_pdf_page`" |
| 875 |
msgstr "" |
| 876 |
|
| 877 |
#: ../../recipes-images.rst:577 adaf610a08404152879eecde101b3358 |
| 878 |
msgid "displayable content" |
| 879 |
msgstr "表示可能なコンテンツ" |
| 880 |
|
| 881 |
#: ../../recipes-images.rst:577 be7f0aa395a84ea0967b19ea32e118ad |
| 882 |
msgid "image file, image in memory, pixmap" |
| 883 |
msgstr "画像ファイル、メモリ内の画像、ピクスマップ " |
| 884 |
|
| 885 |
#: ../../recipes-images.rst:577 5dcf084c5bf14f44b42f33e83b39ffb0 |
| 886 |
msgid "PDF page" |
| 887 |
msgstr "PDFページ" |
| 888 |
|
| 889 |
#: ../../recipes-images.rst:578 b21f95bfb2da4d1da8dc1a8de8fcd793 |
| 890 |
msgid "display resolution" |
| 891 |
msgstr "表示解像度 " |
| 892 |
|
| 893 |
#: ../../recipes-images.rst:578 e5fb57d9b06e415496d5fdd4ad9d2860 |
| 894 |
msgid "image resolution" |
| 895 |
msgstr "画像の解像度 " |
| 896 |
|
| 897 |
#: ../../recipes-images.rst:578 f162cd0a2ec54a14bc65d19390efb3ab |
| 898 |
msgid "vectorized (except raster page content)" |
| 899 |
msgstr "ベクトル化(ラスターページコンテンツを除く)" |
| 900 |
|
| 901 |
#: ../../recipes-images.rst:579 8f71139fa4184451a269095eaf3b024d |
| 902 |
msgid "rotation" |
| 903 |
msgstr "回転" |
| 904 |
|
| 905 |
#: ../../recipes-images.rst:579 e07ae649fe5a43b98128e34d2b7295f4 |
| 906 |
msgid "0, 90, 180 or 270 degrees" |
| 907 |
msgstr "0度、90度、180度または270度" |
| 908 |
|
| 909 |
#: ../../recipes-images.rst:579 6f5358e1760c4bfca5a3a418b8c268ff |
| 910 |
msgid "any angle" |
| 911 |
msgstr "任意の角度" |
| 912 |
|
| 913 |
#: ../../recipes-images.rst:580 fd811b11808e4d7fa0b6e434c51cc9de |
| 914 |
msgid "clipping" |
| 915 |
msgstr "クリッピング" |
| 916 |
|
| 917 |
#: ../../recipes-images.rst:580 c2558fbbf1774081b28e0116ee882210 |
| 918 |
msgid "no (full image only)" |
| 919 |
msgstr "いいえ(全体の画像のみ)" |
| 920 |
|
| 921 |
#: ../../recipes-images.rst:580 ../../recipes-images.rst:585 |
| 922 |
#: a907ff72bff14ccab44936c7756bc1a0 dc5568a67d5546399d10903c2198e7b1 |
| 923 |
msgid "yes" |
| 924 |
msgstr "はい" |
| 925 |
|
| 926 |
#: ../../recipes-images.rst:581 9be3b939efd74eb9b064149922973fd7 |
| 927 |
msgid "keep aspect ratio" |
| 928 |
msgstr "アスペクト比を保持" |
| 929 |
|
| 930 |
#: ../../recipes-images.rst:581 90e967a63c944ad2a4d5d5e1a1e1f586 |
| 931 |
#: ae736e0e2d874c22a9ff0e8ec0eafd07 |
| 932 |
msgid "yes (default option)" |
| 933 |
msgstr "はい(デフォルトオプション)" |
| 934 |
|
| 935 |
#: ../../recipes-images.rst:582 149cd46d36314fd9983779124a4b00a5 |
| 936 |
msgid "transparency (water marking)" |
| 937 |
msgstr "透明性(ウォーターマーキング)" |
| 938 |
|
| 939 |
#: ../../recipes-images.rst:582 f5ee92e1f762447294b068b3151cf8ba |
| 940 |
msgid "depends on the image" |
| 941 |
msgstr "画像による" |
| 942 |
|
| 943 |
#: ../../recipes-images.rst:582 48bce5fbaea9451c8a0205e90189408b |
| 944 |
msgid "depends on the page" |
| 945 |
msgstr "ページによる" |
| 946 |
|
| 947 |
#: ../../recipes-images.rst:583 b0cc7970f86848258e39444054ac610b |
| 948 |
msgid "location / placement" |
| 949 |
msgstr "位置/配置 " |
| 950 |
|
| 951 |
#: ../../recipes-images.rst:583 3d965dc24e154178970ddf5ed7662f16 |
| 952 |
#: 5a690d8091e446ac921b5a5e97de9884 |
| 953 |
msgid "scaled to fit target rectangle" |
| 954 |
msgstr "ターゲットの矩形にフィットするようにスケーリング" |
| 955 |
|
| 956 |
#: ../../recipes-images.rst:584 78fa2e33851d443584542c9de0f6ea73 |
| 957 |
msgid "performance" |
| 958 |
msgstr "パフォーマンス" |
| 959 |
|
| 960 |
#: ../../recipes-images.rst:584 07bc6beb376d4561bf3ed4427bfeada8 |
| 961 |
#: 883bd897a4de4ed2a0f2af42a61dd792 |
| 962 |
msgid "automatic prevention of duplicates;" |
| 963 |
msgstr "重複の自動防止" |
| 964 |
|
| 965 |
#: ../../recipes-images.rst:585 7ef2987d846a48a9a38bb80ba9ee36be |
| 966 |
msgid "multi-page image support" |
| 967 |
msgstr "マルチページ画像のサポート" |
| 968 |
|
| 969 |
#: ../../recipes-images.rst:585 02be9acec59f4fa3adf501ba7f63438f |
| 970 |
msgid "no" |
| 971 |
msgstr "いいえ" |
| 972 |
|
| 973 |
#: ../../recipes-images.rst:586 018cb20575654c4aa10c951f189464f3 |
| 974 |
msgid "ease of use" |
| 975 |
msgstr "使いやすさ" |
| 976 |
|
| 977 |
#: ../../recipes-images.rst:586 c28d925902ab48b389c171a05aca19c6 |
| 978 |
msgid "simple, intuitive;" |
| 979 |
msgstr "シンプルで直感的" |
| 980 |
|
| 981 |
#: ../../recipes-images.rst:586 afc67eb6d74a495c9dc4e53eb661ae08 |
| 982 |
msgid "" |
| 983 |
"simple, intuitive; **usable for all document types** (including images!) " |
| 984 |
"after conversion to PDF via :meth:`Document.convert_to_pdf`" |
| 985 |
msgstr "" |
| 986 |
"シンプルで直感的; :meth:`Document.convert_to_pdf` " |
| 987 |
"を介してPDFに変換後、すべてのドキュメントタイプ(画像を含む!)に使用可能" |
| 988 |
|
| 989 |
#: ../../recipes-images.rst:592 e4d67c78bd67458c84faeb0c8e6ea5f5 |
| 990 |
msgid "" |
| 991 |
"Basic code pattern for :meth:`Page.insert_image`. **Exactly one** of the " |
| 992 |
"parameters **filename / stream / pixmap** must be given, if not re-" |
| 993 |
"inserting an existing image::" |
| 994 |
msgstr "" |
| 995 |
":meth:`Page.insert_image` の基本的なコードパターン。 **filename / stream / pixmap** " |
| 996 |
"のうち、1つだけを指定する必要があります(既存の画像を再挿入しない場合)::" |
| 997 |
|
| 998 |
#: ../../recipes-images.rst:607 a7bbf44ff07e494bb6788af779c4f19f |
| 999 |
msgid "" |
| 1000 |
"Basic code pattern for :meth:`Page.show_pdf_page`. Source and target PDF " |
| 1001 |
"must be different :ref:`Document` objects (but may be opened from the " |
| 1002 |
"same file)::" |
| 1003 |
msgstr "" |
| 1004 |
":meth:`Page.show_pdf_page` の基本的なコードパターン。ソースとターゲットのPDFは異なる :ref:`Document`" |
| 1005 |
" オブジェクトである必要があります(ただし、同じファイルから開くこともできます)::" |
| 1006 |
|
| 1007 |
#: ../../recipes-images.rst:623 247c3cb945de42e3977137d8975573b2 |
| 1008 |
msgid "How to Use Pixmaps: Checking Text Visibility" |
| 1009 |
msgstr "ピクスマップの使用方法:テキストの表示可否の確認" |
| 1010 |
|
| 1011 |
#: ../../recipes-images.rst:625 265feb286a04491a9466ccd75f125d7a |
| 1012 |
msgid "" |
| 1013 |
"Whether or not a given piece of text is actually visible on a page " |
| 1014 |
"depends on a number of factors:" |
| 1015 |
msgstr "特定のテキストが実際にページ上で表示されるかどうかは、いくつかの要因に依存します:" |
| 1016 |
|
| 1017 |
#: ../../recipes-images.rst:627 cb95f70cf5474c549b283bb06a5b637d |
| 1018 |
msgid "" |
| 1019 |
"Text is not covered by another object but may have the same color as the " |
| 1020 |
"background i.e., white-on-white etc." |
| 1021 |
msgstr "テキストは他のオブジェクトによって隠されていないが、背景と同じ色を持っている場合があります。例えば、白文字が白地になっているなどです。" |
| 1022 |
|
| 1023 |
#: ../../recipes-images.rst:628 d8c9eec28274456bbae7dfd39049394b |
| 1024 |
msgid "" |
| 1025 |
"Text may be covered by an image or vector graphics. Detecting this is an " |
| 1026 |
"important capability, for example to uncover badly anonymized legal " |
| 1027 |
"documents." |
| 1028 |
msgstr "テキストは画像やベクトルグラフィックスによって隠されている場合があります。これを検出することは重要な機能であり、例えば不適切に匿名化された法的文書を解明するために使用されます。" |
| 1029 |
|
| 1030 |
#: ../../recipes-images.rst:629 54573a8eea4e421ca5e82c476f55b0e9 |
| 1031 |
msgid "" |
| 1032 |
"Text is created hidden. This technique is usually used by OCR tools to " |
| 1033 |
"store the recognized text in an invisible layer on the page." |
| 1034 |
msgstr "テキストが非表示に作成される場合があります。これは通常、OCRツールが認識されたテキストをページ上の非表示レイヤーに保存するために使用されます。" |
| 1035 |
|
| 1036 |
#: ../../recipes-images.rst:631 421ec6799ba94504a184bb6003eeeac8 |
| 1037 |
msgid "" |
| 1038 |
"The following shows how to detect situation 1. above, or situation 2. if " |
| 1039 |
"the covering object is unicolor::" |
| 1040 |
msgstr "以下では、1.の状況を検出する方法、または2.の状況を検出する方法(カバーしているオブジェクトが単色である場合)を示します::" |
| 1041 |
|
| 1042 |
#: ../../recipes-images.rst:645 a958215274f14ffc9a1039c6445e57ec |
| 1043 |
msgid "" |
| 1044 |
"Method :meth:`Pixmap.color_topusage` returns a tuple `(ratio, pixel)` " |
| 1045 |
"where 0 < ratio <= 1 and *pixel* is the pixel value of the color. Please " |
| 1046 |
"note that we create a **pixmap only once**. This can save a lot of " |
| 1047 |
"processing time if there are multiple hit rectangles." |
| 1048 |
msgstr "" |
| 1049 |
"メソッド :meth:`Pixmap.color_topusage` は、タプル `(ratio, pixel)` " |
| 1050 |
"(比率、ピクセル)を返します。ここで、0 < ratio <= " |
| 1051 |
"1であり、pixelは色のピクセル値です。複数のヒット矩形がある場合、ピクスマップを1回だけ作成することに注意してください。これにより、処理時間を大幅に節約できます。" |
| 1052 |
|
| 1053 |
#: ../../recipes-images.rst:647 675626a41d9f4ee49cee5bb637261c3f |
| 1054 |
msgid "" |
| 1055 |
"The logic of the above code is: If the needle's rectangle is (\"almost\":" |
| 1056 |
" > 95%) unicolor, then the text cannot be visible. A typical result for " |
| 1057 |
"visible text returns the color of the background (mostly white) and a " |
| 1058 |
"ratio around 0.7 to 0.8, for example `(0.685, b'\\xff\\xff\\xff')`." |
| 1059 |
msgstr "" |
| 1060 |
"上記のコードのロジックは次の通りです:もしニードルの矩形が「ほぼ」(95%以上)単色であれば、テキストは表示されないと判断します。テキストが表示される場合の典型的な結果は、背景の色(主に白)と比率が0.7から0.8程度で返されることがあります。例えば、`(0.685," |
| 1061 |
" b'xffxffxff')` のような結果が得られます。" |
| 1062 |
|
| 1063 |
#: ../../footer.rst:60 20230f8c88394d47a41e985bb5942765 |
| 1064 |
msgid "This documentation covers all versions up to |version|." |
| 1065 |
msgstr "このドキュメントは |version| までのすべてのバージョンを対象としています。" |
| 1066 |
|
| 1067 |
#~ msgid "PyMuPDF は、PDF (およびその他の)ドキュメントのデータ抽出、分析、変換、操作のための高性能な Python ライブラリです。" |
| 1068 |
#~ msgstr "" |
| 1069 |
|
| 1070 |
#~ msgid "PDFテキスト抽出、PDFイメージ抽出、PDF変換、PDFテーブル、PDF分割、PDF作成, Pyodide, PyScript" |
| 1071 |
#~ msgstr "" |
| 1072 |
|
| 1073 |
#~ msgid "Discord logo" |
| 1074 |
#~ msgstr "" |
| 1075 |
|