# PyMuPDF Japanese documentation # Copyright (C) 2015-2023, Artifex # This file is distributed under the same license as the PyMuPDF package. # Jamie Lemon , 2023. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PyMuPDF 1.23.0rc1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2025-11-25 23:33+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Suzan Sanver \n" "Language: ja\n" "Language-Team: ja \n" "Plural-Forms: nplurals=1; plural=0;\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.10.3\n" #: ../../header.rst:-1 af1c872c0c8149488a828ec57db0d05a msgid "Artifex" msgstr "" #: ../../header.rst:-1 5f296e40a5a84c7db71c20c23cf034c9 msgid "" "PyMuPDF is a high-performance Python library for data extraction, " "analysis, conversion & manipulation of PDF (and other) documents." msgstr "PyMuPDF は、PDF (およびその他の)ドキュメントのデータ抽出、分析、変換、操作のための高性能な Python ライブラリです。" #: ../../header.rst:-1 6ce8107c629e456a909666cce87fe6bd msgid "" "PDF Text Extraction, PDF Image Extraction, PDF Conversion, PDF Tables, " "PDF Splitting, PDF Creation, Pyodide, PyScript" msgstr "PDFテキスト抽出、PDFイメージ抽出、PDF変換、PDFテーブル、PDF分割、PDF作成, Pyodide, PyScript" #: ../../tutorial.rst:8 939af6d1c28b485eb4ff9f7d7027d32c msgid "Tutorial" msgstr "チュートリアル" #: ../../tutorial.rst:12 4f39e913a37d45aaaae25d581b6b21a5 msgid "" "This tutorial will show you the use of |PyMuPDF|, |MuPDF| in Python, step" " by step." msgstr "このチュートリアルでは、PythonでのPyMuPDF、MuPDFのステップバイステップの使用方法を紹介します。" #: ../../tutorial.rst:14 5a427c507e6b44479862e8eb2c0a69ba msgid "" "Because |MuPDF| supports not only PDF, but also XPS, OpenXPS, CBZ, CBR, " "FB2 and EPUB formats, so does |PyMuPDF| [#f1]_. Nevertheless, for the " "sake of brevity we will only talk about PDF files. At places where indeed" " only PDF files are supported, this will be mentioned explicitly." msgstr "MuPDFはPDFだけでなく、XPS、OpenXPS、CBZ、CBR、FB2、EPUB形式もサポートしており、PyMuPDFも同様です[1]。ただし、簡潔さのために、ここではPDFファイルについてのみ話を進めます。本当にPDFファイルのみがサポートされている場所では、明示的にその旨を記述します。" #: ../../tutorial.rst:16 b2c324e1eda6484681a5b98002f9f022 msgid "" "In addition to this introduction, please do visit PyMuPDF's `YouTube " "Channel `_ which covers most of the " "following in the form of YouTube \"Shorts\" and longer videos." msgstr "" "このイントロダクションに加えて、ぜひ `PyMuPDF の YouTube " "`_ チャンネル " "もご覧ください。以下の内容の多くが、YouTubeの「ショート動画」や長編動画の形式で紹介されています。" #: ../../tutorial.rst:19 c23da3317c5d43fdadba3fa7c99c3afc msgid "Importing the Bindings" msgstr "バインディングのインポート" #: ../../tutorial.rst:20 a04dcd4a09c3420f950b46d664276cd8 msgid "" "The Python bindings to MuPDF are made available by this import statement." " We also show here how your version can be checked::" msgstr "MuPDFへのPythonバインディングは、このインポート文によって利用可能になります。また、ここではあなたのバージョンを確認する方法も示します::" #: ../../tutorial.rst:30 56adbb5b22484758912815cc290316d8 msgid "Note on the Name *fitz*" msgstr "*fitz* という名前についての注意事項" #: ../../tutorial.rst:32 3b2a413d1d2040d38bbc841d83f98d16 msgid "" "Old versions of |PyMuPDF| had their **Python** import name as `fitz`. " "Newer versions use `pymupdf` instead, and offer `fitz` as a fallback so " "that old code will still work." msgstr "このライブラリのPythonのトップレベルインポート名は **\"fitz\"** です。 これには歴史的な理由があります:" #: ../../tutorial.rst:34 e7ad072736bc434da33243355f43a143 msgid "The reason for the name `fitz` is a historical curiosity:" msgstr "これには歴史的な理由があります:" #: ../../tutorial.rst:36 0a1388985e214bc8803f67a3cdc99664 msgid "The original rendering library for MuPDF was called *Libart*." msgstr "MuPDFの元々のレンダリングライブラリは *Libart* と呼ばれていました。" #: ../../tutorial.rst:38 6bb98d1d5fd843a9a823b5a023f389e8 msgid "" "*\"After Artifex Software acquired the MuPDF project, the development " "focus shifted on writing a new modern graphics library called \"Fitz\". " "Fitz was originally intended as an R&D project to replace the aging " "Ghostscript graphics library, but has instead become the rendering engine" " powering MuPDF.\"* (Quoted from `Wikipedia " "`_)." msgstr "" "「 Artifex SoftwareがMuPDFプロジェクトを取得した後、開発の焦点は新しいモダンなグラフィックスライブラリ " "\"Fitz\"の開発に移りました。 " "Fitzの開発に移りました。Fitzは元々古くなったGhostscriptグラフィックスライブラリを置き換えるためのR&Dプロジェクトとして意図されていましたが、代わりにMuPDFを駆動するレンダリングエンジンになりました。」*" " ( `Wikipedia `_ より引用 ) 。" #: ../../tutorial.rst:42 f0b608072e0948f0a8d5019e86f78ae4 msgid "" "Use of legacy name `fitz` can fail if defunct pypi.org package `fitz` is " "installed; see :ref:`problems-after-installation`." msgstr "" #: ../../tutorial.rst:48 5b6f4f47d3d14b3dabbafb6419e1bfd3 msgid "Opening a Document" msgstr "ドキュメントの開く" #: ../../tutorial.rst:50 bad87b705ed349689aeb233740a2a4dd msgid "" "To access a :ref:`supported document`, it must be " "opened with the following statement::" msgstr ":ref:`サポートされているドキュメント ` にアクセスするには、次の文で開く必要があります::" #: ../../tutorial.rst:54 8ee29d11c6664eaba2d74e39fe256992 msgid "" "This creates the :ref:`Document` object *doc*. *filename* must be a " "Python string (or a `pathlib.Path`) specifying the name of an existing " "file." msgstr "" "これにより、 :ref:`Document` " "オブジェクトdocが作成されます。filenameは、既存のファイルの名前を指定するPythonの文字列(または `pathlib.Path` " ")である必要があります。" #: ../../tutorial.rst:56 fd7dc22114c4467ea703f11c5e4ddad9 msgid "" "It is also possible to open a document from memory data, or to create a " "new, empty PDF. See :ref:`Document` for details. You can also use " ":ref:`Document` as a *context manager*." msgstr "" "また、メモリデータからドキュメントを開くことや、新しい空のPDFを作成することも可能です。詳細については、 :ref:`Document` " "を参照してください。 :ref:`Document` はコンテキストマネージャとしても使用できます。" #: ../../tutorial.rst:58 e53b2ee3b09744bba7d0a597e3110a06 msgid "" "A document contains many attributes and functions. Among them are meta " "information (like \"author\" or \"subject\"), number of total pages, " "outline and encryption information." msgstr "ドキュメントには多くの属性と関数が含まれています。その中には、メタ情報(「author」や「subject」など)、総ページ数、アウトライン、暗号化情報などがあります。" #: ../../tutorial.rst:61 ed2d7a85b35c446faacb3600235eef21 msgid "Some :ref:`Document` Methods and Attributes" msgstr "いくつかの :ref:`Document` メソッドと属" #: ../../tutorial.rst:64 3b4470725538483087f6877a0b238a75 msgid "**Method / Attribute**" msgstr "**メソッド / 属性**" #: ../../tutorial.rst:64 348a919c08be4e7bacbcbdebf6aadceb msgid "**Description**" msgstr "説明" #: ../../tutorial.rst:66 3c58bb5e0cfd4357bf595f5730c490f5 msgid ":attr:`Document.page_count`" msgstr "" #: ../../tutorial.rst:66 71bcf48456184a0a864819c5c6c6b639 msgid "the number of pages (*int*)" msgstr "ページ数 (*int*)" #: ../../tutorial.rst:67 a9ca3bea8587466696f8c3a412c51474 msgid ":attr:`Document.metadata`" msgstr "" #: ../../tutorial.rst:67 5d63c2f5c2bf442da412566cddc8f0da msgid "the metadata (*dict*)" msgstr "メタデータ (*dict*)" #: ../../tutorial.rst:68 3a230f9d11cf49c8abaabfc21332281a msgid ":meth:`Document.get_toc`" msgstr "" #: ../../tutorial.rst:68 670c25d439184b3d864535494e4bc345 msgid "get the table of contents (*list*)" msgstr "目次を取得する (*list*)" #: ../../tutorial.rst:69 4dbf36bdcc774cfe94f6fe488e23ab70 msgid ":meth:`Document.load_page`" msgstr "" #: ../../tutorial.rst:69 6a5260a61382415882e9d006c179fe90 msgid "read a :ref:`Page`" msgstr ":ref:`Page` を読む" #: ../../tutorial.rst:73 d6bc5b209b1c4e7aa5b367e616992438 msgid "Accessing Meta Data" msgstr "メタデータへのアクセス" #: ../../tutorial.rst:74 5eeb7a67a3834701bda60567079af358 msgid "" "PyMuPDF fully supports standard metadata. :attr:`Document.metadata` is a " "Python dictionary with the following keys. It is available for **all " "document types**, though not all entries may always contain data. For " "details of their meanings and formats consult the respective manuals, " "e.g. :ref:`AdobeManual` for PDF. Further information can also be found in" " chapter :ref:`Document`. The meta data fields are strings or ``None`` if" " not otherwise indicated. Also be aware that not all of them always " "contain meaningful data -- even if they are not ``None``." msgstr "" "PyMuPDFは標準的なメタデータを完全にサポートしています。 :attr:`Document.metadata` " "はPythonの辞書で、次のキーが含まれています。これはすべてのドキュメントタイプで利用可能ですが、すべてのエントリが常にデータを含むわけではありません。それらの意味や形式の詳細については、対応するマニュアルを参照してください。例えば、PDFの場合は" " :ref:`AdobeManual` を参照してください。さらなる情報は :ref:`Document` " "の章でも見つけることができます。メタデータのフィールドは文字列または ``None`` " "です(特に指定がない場合)。また、それらのすべてが常に意味のあるデータを含んでいるわけではないことにも注意してください。" #: ../../tutorial.rst:77 6c9a21d704a241029ce9b7f001b7bac5 msgid "Key" msgstr "キー" #: ../../tutorial.rst:77 8400973337594bcf8e3da33817744ccf msgid "Value" msgstr "値" #: ../../tutorial.rst:79 6aa5ce470f8642c4af491e28af8bc999 msgid "producer" msgstr "" #: ../../tutorial.rst:79 52ee9d5cf1d94e4e824f1486804c0a49 msgid "producer (producing software)" msgstr "プロデューサー(生成ソフトウェア)" #: ../../tutorial.rst:80 85a0fa96090940f499052abc68aac361 msgid "format" msgstr "" #: ../../tutorial.rst:80 cd1a7dc5cfca479ca59b0e5e2b00f5bb msgid "format: 'PDF-1.4', 'EPUB', etc." msgstr "形式:'PDF-1.4'、'EPUB'など" #: ../../tutorial.rst:81 96773e4fde41492a8fbc9d8e0dfffe01 msgid "encryption" msgstr "" #: ../../tutorial.rst:81 4b242b9f88fb40e4847a8ad0358789ec msgid "encryption method used if any" msgstr "暗号化方法(適用されている場合)" #: ../../tutorial.rst:82 520e1f5cffc3419faccbecacb778ad88 #: adc5542c41534ce68fe9d02192b1f9e0 msgid "author" msgstr "" #: ../../tutorial.rst:83 d593bfa2f3f1464ca98020a5d8cc2d74 msgid "modDate" msgstr "" #: ../../tutorial.rst:83 49db626a877e41699ba02058512b97d9 msgid "date of last modification" msgstr "最終更新日" #: ../../tutorial.rst:84 ac0f4c311d9d4f91b366556afa0eac07 #: cad667882e9247ed9a8465e9e8f6f30e msgid "keywords" msgstr "" #: ../../tutorial.rst:85 4a12c1d082794891871985009346217e #: 9afee53342a24f749bd6b1695ceba4ca msgid "title" msgstr "" #: ../../tutorial.rst:86 0659f2376ae84f0694559432c6acc6ab msgid "creationDate" msgstr "" #: ../../tutorial.rst:86 c3e9c7f2af964de1a4ea55d6dfc87ae7 msgid "date of creation" msgstr "作成日" #: ../../tutorial.rst:87 f7336bfddb6c47da8c979a965fd0e200 msgid "creator" msgstr "" #: ../../tutorial.rst:87 cde7dc3a8d604edeb4df81869876cc12 msgid "creating application" msgstr "作成アプリケーション" #: ../../tutorial.rst:88 59f646e95f21440aab80a6d9eaee2cb5 #: dfcc9986b7404e3ea4869973f3300afb msgid "subject" msgstr "" #: ../../tutorial.rst:91 e212f47f482f4ba086c347c1ee602818 msgid "" "Apart from these standard metadata, **PDF documents** starting from PDF " "version 1.4 may also contain so-called *\"metadata streams\"* (see also " ":data:`stream`). Information in such streams is coded in XML. PyMuPDF " "deliberately contains no XML components for this purpose (the " ":ref:`PyMuPDF Xml class` is a helper class intended to access the " "DOM content of a :ref:`Story` object), so we do not directly support " "access to information contained therein. But you can extract the stream " "as a whole, inspect or modify it using a package like `lxml`_ and then " "store the result back into the PDF. If you want, you can also delete this" " data altogether." msgstr "" "PDFバージョン1.4以降のPDFドキュメントには、これらの標準的なメタデータに加えて、いわゆる「メタデータストリーム」(streamも参照)が含まれていることがあります。このようなストリームに含まれる情報はXMLでコード化されています。PyMuPDFは意図的にこの目的のためにXMLコンポーネントを含んでいないため(" " :ref:`PyMuPDF Xml class` クラスは :ref:`Story` " "オブジェクトのDOMコンテンツにアクセスするためのヘルパークラスです)、その情報への直接的なアクセスをサポートしていません。しかし、 " "`lxml`_ " "などのパッケージを使用してストリーム全体を抽出し、検査または変更し、その結果をPDFに再格納することはできます。必要な場合は、このデータを完全に削除することもできます。" #: ../../tutorial.rst:93 5ec202ac5c494be3bf62e68bf5ba28b1 msgid "" "There are two utility scripts in the repository that `metadata import " "(PDF only)`_ resp. `metadata export`_ metadata from resp. to CSV files." msgstr "" "リポジトリには、`metadata import(PDF only)`_ および `metadata export`_ " "をCSVファイルに行うための2つのユーティリティスクリプトがあります" #: ../../tutorial.rst:96 1d31369f6b884d08a61b700b01e9e7b1 msgid "Working with Outlines" msgstr "アウトラインと一緒に作業する" #: ../../tutorial.rst:97 fe8e22242a324f349fca363f8d0f6348 msgid "" "The easiest way to get all outlines (also called \"bookmarks\") of a " "document, is by loading its *table of contents*::" msgstr "アウトライン(または「ブックマーク」とも呼ばれる)を取得する最も簡単な方法は、そのドキュメントの目次を読み込むことです::" #: ../../tutorial.rst:101 4fe54a9ca0244cd9871ba72a155cbe95 msgid "" "This will return a Python list of lists *[[lvl, title, page, ...], ...]* " "which looks much like a conventional table of contents found in books." msgstr "" "これにより、Pythonのリストであるリスト [[lvl, title, page, ...], ...] " "が返されます。これは、本に見られる伝統的な目次に非常によく似たものです。" #: ../../tutorial.rst:103 a0df1526a42e4d88bf1fb24bf14c2392 msgid "" "*lvl* is the hierarchy level of the entry (starting from 1), *title* is " "the entry's title, and *page* the page number (1-based!). Other " "parameters describe details of the bookmark target." msgstr "" "lvl はエントリーの階層レベル(1から開始)を示し、title はエントリーのタイトル、page " "はページ番号(1から始まる)を示します。その他のパラメータはブックマークのターゲットの詳細を説明します。" #: ../../tutorial.rst:105 f60efb5302364edfb64c7775c185929b msgid "" "There are two utility scripts in the repository that `toc import (PDF " "only)`_ resp. `toc export`_ table of contents from resp. to CSV files." msgstr "" "リポジトリ内には、CSVファイルから目次をインポートおよびエクスポートするためのユーティリティスクリプトが2つあります。詳細は、 `toc " "import (PDF only)`_ および `toc export`_ をご覧ください。" #: ../../tutorial.rst:108 f7e0d8ac5cd64bbfb19d5a7680f37840 msgid "Working with Pages" msgstr "ページの操作" #: ../../tutorial.rst:109 bea68ab57a6a4ec49fa98a57625daec3 msgid ":ref:`Page` handling is at the core of MuPDF's functionality." msgstr ":ref:`Page` の処理はMuPDFの機能の中核です。" #: ../../tutorial.rst:111 705fbd37cfd04f5eb2725ee74973716c msgid "" "You can render a page into a raster or vector (SVG) image, optionally " "zooming, rotating, shifting or shearing it." msgstr "ページをラスターまたはベクター(SVG)イメージにレンダリングすることができます。オプションでズーム、回転、シフト、またはシアーを行うこともできます" #: ../../tutorial.rst:112 07346e73ca2f4851bcb7243ed707f0c5 msgid "" "You can extract a page's text and images in many formats and search for " "text strings." msgstr "テキストと画像を多くの形式で抽出し、テキスト文字列を検索することができます。" #: ../../tutorial.rst:113 b10390460b7e469d933d4b0bca64cbd8 msgid "" "For PDF documents many more methods are available to add text or images " "to pages." msgstr "PDFドキュメントの場合、さらに多くのメソッドが利用可能で、テキストや画像をページに追加することができます" #: ../../tutorial.rst:115 634af7e840c34aba910ebc8b50aac6b1 msgid "" "First, a :ref:`Page` must be created. This is a method of " ":ref:`Document`::" msgstr "最初に :ref:`Page` を作成する必要があります。これは :ref:`Document` のメソッドです::" #: ../../tutorial.rst:120 e13781020ec34c48a1d29405c5d4063b msgid "" "Any integer `-∞ < pno < page_count` is possible here. Negative numbers " "count backwards from the end, so *doc[-1]* is the last page, like with " "Python sequences." msgstr "" "ここでは、どんな整数 `-∞ < pno < page_count` でも可能です。負の数は末尾から逆に数えますので、doc[-1] " "はPythonのシーケンスと同様に最後のページになります" #: ../../tutorial.rst:122 4e28316907e444489cfbf10a12e27bba msgid "" "Some more advanced way would be using the document as an **iterator** " "over its pages::" msgstr "より高度な方法として、ドキュメントをそのページの **イテレータ** として使用することもできます::" #: ../../tutorial.rst:136 84e73234fd424852a2b36c0bc15b2d9d msgid "Once you have your page, here is what you would typically do with it:" msgstr "ページを取得したら、通常は次のようなことを行います:" #: ../../tutorial.rst:139 088737b71af34948b17fbe30a60a9dc4 msgid "Inspecting the Links, Annotations or Form Fields of a Page" msgstr "リンク、注釈、またはフォームフィールドをページで調査する" #: ../../tutorial.rst:140 80600b8ed5664159a8aad4e5b6706037 msgid "" "Links are shown as \"hot areas\" when a document is displayed with some " "viewer software. If you click while your cursor shows a hand symbol, you " "will usually be taken to the target that is encoded in that hot area. " "Here is how to get all links::" msgstr "リンクは、ドキュメントがビューアソフトウェアで表示されるときに「ホットエリア」として表示されます。カーソルが手のシンボルを示すときにクリックすると、通常、そのホットエリアにエンコードされたターゲットに移動します。以下はすべてのリンクを取得する方法です::" #: ../../tutorial.rst:145 5b90391005b24d46b953ffde747dbd80 msgid "" "*links* is a Python list of dictionaries. For details see " ":meth:`Page.get_links`." msgstr "`links` はPythonの辞書のリストです。詳細は :meth:`Page.get_links` を参照してください。" #: ../../tutorial.rst:147 19b388140fd44ace88779d4d2f85e3f5 msgid "You can also use an iterator which emits one link at a time::" msgstr "また、一度に1つのリンクを生成するイテレータを使用することもできます::" #: ../../tutorial.rst:152 972adb409c6b4d1781d1976cb040f944 msgid "" "If dealing with a PDF document page, there may also exist annotations " "(:ref:`Annot`) or form fields (:ref:`Widget`), each of which have their " "own iterators::" msgstr "PDFドキュメントのページを扱う場合、注釈(:ref:`Annot`)やフォームフィールド(:ref:`Widget`)も存在する場合があります。それぞれに独自のイテレータがあります::" #: ../../tutorial.rst:162 354960511fbd4e299b3561f27464ffa6 msgid "Rendering a Page" msgstr "ページのレンダリング" #: ../../tutorial.rst:163 4b29e0e4b9f04b54a4b12db45462cebe msgid "This example creates a **raster** image of a page's content::" msgstr "以下の例は、ページの内容をラスター画像として作成します::" #: ../../tutorial.rst:167 b23c4b5d3b5345f0add5cb0dffaa6255 msgid "" "``pix`` is a :ref:`Pixmap` object which (in this case) contains an " "**RGB** image of the page, ready to be used for many purposes. Method " ":meth:`Page.get_pixmap` offers lots of variations for controlling the " "image: resolution / DPI, colorspace (e.g. to produce a grayscale image or" " an image with a subtractive color scheme), transparency, rotation, " "mirroring, shifting, shearing, etc. For example: to create an **RGBA** " "image (i.e. containing an alpha channel), specify *pix = " "page.get_pixmap(alpha=True)*." msgstr "" "`pix` はページのRGBイメージを含む :ref:`Pixmap` " "オブジェクトです。このイメージは多くの目的に使用する準備ができています。:meth:`Page.get_pixmap` " "メソッドには、画像を制御するためのさまざまなオプションが用意されています:解像度/DPI、カラースペース(例えば、グレースケールイメージや減色カラースキームのイメージを作成するために)、透明度、回転、ミラーリング、シフト、シアーなどがあります。例えば、RGBAイメージ(アルファチャネルを含むイメージ)を作成する場合は、`pix" " = page.get_pixmap(alpha=True)` と指定します。" #: ../../tutorial.rst:169 e2331fb68ff848cab6245b27ba5f4079 msgid "" "A :ref:`Pixmap` contains a number of methods and attributes which are " "referenced below. Among them are the integers ``width``, ``height`` (each" " in pixels) and ``stride`` (number of bytes of one horizontal image " "line). Attribute ``samples`` represents a rectangular area of bytes " "representing the image data (a Python ``bytes`` object)." msgstr "" ":ref:`Pixmap` " "には、以下で参照されるいくつかのメソッドと属性が含まれています。その中には、ピクセル単位の整数である幅、高さ(それぞれピクセル単位)および " "`stride` (1つの水平イメージラインのバイト数)があります。属性 `samples` " "は、イメージデータを表すバイトの長方形領域(Pythonの `bytes` オブジェクト)を表します。" #: ../../tutorial.rst:171 03e8c67cd34a4299bbacfe8abd40de63 msgid "" "You can also create a **vector** image of a page by using " ":meth:`Page.get_svg_image`. Refer to this `Vector Image Support page`_ " "for details." msgstr "" ":meth:`Page.get_svg_image` " "を使用することで、ページのベクターイメージを作成することもできます。詳細については、`Vector Image Support page`_ " "ページを参照してください。" #: ../../tutorial.rst:174 c887d409be174ceca947d6b32e881d03 msgid "Saving the Page Image in a File" msgstr "ページのイメージをファイルに保存する" #: ../../tutorial.rst:175 5e39659faf42451083abd892ba3bdb4e msgid "We can simply store the image in a PNG file::" msgstr "簡単にページのイメージをPNGファイルに保存できます::" #: ../../tutorial.rst:180 7ef7b19218354906a6c5d511a0672a1f msgid "Displaying the Image in GUIs" msgstr "GUIでイメージを表示する" #: ../../tutorial.rst:181 f6651c84f3d54689abdaff0d00a3095e msgid "" "We can also use it in GUI dialog managers. :attr:`Pixmap.samples` " "represents an area of bytes of all the pixels as a Python bytes object. " "Here are some examples, find more in the `examples`_ directory." msgstr "" "GUIダイアログマネージャーでも使用できます。 :attr:`Pixmap.samples` " "は、すべてのピクセルのバイトの領域をPythonのbytesオブジェクトとして表します。以下はいくつかの例ですが、さらに多くの例は " "`examples`_ ディレクトリで見つけることができます。" #: ../../tutorial.rst:184 93b0ff029516467ca4a36bb526aeb687 msgid "wxPython" msgstr "" #: ../../tutorial.rst:185 6f03843027834dda8394ee85d04238d5 msgid "" "Consult their documentation for adjustments to RGB(A) pixmaps and, " "potentially, specifics for your wxPython release::" msgstr "RGB(A)のピクセルマップに対する調整や、可能な場合はwxPythonのリリースに特有の詳細については、関連するドキュメントを参照してください。" #: ../../tutorial.rst:193 b6f1e9b15675411e9bd7023777e4b99a msgid "Tkinter" msgstr "" #: ../../tutorial.rst:194 c11e72b65c0e4368a0fe00c748909105 msgid "Please also see section 3.19 of the `Pillow documentation`_::" msgstr "`Pillow documentation`_ ドキュメントのセクション3.19も参照してください。" #: ../../tutorial.rst:203 41e53493133b4606b75fc48aa4b02d6b msgid "The following **avoids using Pillow**::" msgstr "以下の方法では、Pillowを使用しないようにしています。" #: ../../tutorial.rst:210 2d36aa26bccf4e5ba49ede95aef20a49 msgid "" "If you are looking for a complete Tkinter script paging through **any " "supported** document, `here it is!`_. It can also zoom into pages, and it" " runs under Python 2 or 3. It requires the extremely handy `PySimpleGUI`_" " pure Python package." msgstr "" "もし、サポートされている任意のドキュメントをページ送りで表示する完全なTkinterスクリプトをお探しでしたら、`こちらがあります! " "`_ また、このスクリプトではページをズームインすることもでき、Python " "2または3で動作します。非常に便利な純粋なPythonパッケージである `PySimpleGUI`_ が必要です。" #: ../../tutorial.rst:213 9a88cb97b2d9452ab197250569501e5f msgid "PyQt4, PyQt5, PySide" msgstr "" #: ../../tutorial.rst:214 daeac83261ba4066a7dc604d3aa562f2 msgid "Please also see section 3.16 of the `Pillow documentation`_::" msgstr "Pillowドキュメントのセクション3.16も参照してください。" #: ../../tutorial.rst:223 b85add3e93e4499b89e82f1646430a26 msgid "" "Again, you also can get along **without using Pillow.** Qt's `QImage` " "luckily supports native Python pointers, so the following is the " "recommended way to create Qt images::" msgstr "Pillowを使用せずに進めることもできます。幸運なことに、QtのQImageはネイティブなPythonポインタをサポートしているので、以下はQtイメージを作成する推奨される方法です。" #: ../../tutorial.rst:233 0fcb7bc54009424fa20575e22fb06d0e msgid "Extracting Text and Images" msgstr "テキストや画像を抽出する" #: ../../tutorial.rst:234 f5900cc6c4924334a0f4bf4d1bdae4ae msgid "" "We can also extract all text, images and other information of a page in " "many different forms, and levels of detail::" msgstr "ページのすべてのテキスト、画像、およびその他の情報を、さまざまな形式や詳細レベルで抽出することもできます。::" #: ../../tutorial.rst:238 48bff694040b45549010d3b53435733b msgid "" "Use one of the following strings for *opt* to obtain different formats " "[#f2]_:" msgstr "異なるフォーマットを得るために、以下の文字列のうち1つをoptに使用できます [#f2]_:" #: ../../tutorial.rst:240 3c9203fe338a46629695295936dc44a4 msgid "" "**\"text\"**: (default) plain text with line breaks. No formatting, no " "text position details, no images." msgstr "**\"text\"**: (デフォルト) 行送りのプレーンテキスト。書式設定やテキストの位置の詳細、画像は含まれません。" #: ../../tutorial.rst:242 ef523faacbb4433e9599b78451f9a623 msgid "**\"blocks\"**: generate a list of text blocks (= paragraphs)." msgstr "**\"blocks\"**: テキストブロック(段落)のリストを生成します。" #: ../../tutorial.rst:244 494f2cbaf4dc4d3595b54a18d8165a4f msgid "**\"words\"**: generate a list of words (strings not containing spaces)." msgstr "**\"words\"**: 単語(スペースを含まない文字列)のリストを生成します。" #: ../../tutorial.rst:246 f95d696f7efa4e48a4fe4018638ee139 msgid "" "**\"html\"**: creates a full visual version of the page including any " "images. This can be displayed with your internet browser." msgstr "**\"html\"**: 画像を含むページの完全な視覚的バージョンを作成します。これはインターネットブラウザで表示できます。" #: ../../tutorial.rst:248 8f24748d78b04cc6b92c29fcae8ff8ca msgid "" "**\"dict\"** / **\"json\"**: same information level as HTML, but provided" " as a Python dictionary or resp. JSON string. See " ":meth:`TextPage.extractDICT` for details of its structure." msgstr "" "**\"dict\"** / **\"json\"**: " "HTMLと同じ情報レベルですが、Pythonの辞書またはJSON文字列として提供されます。その構造の詳細については、:meth:`TextPage.extractDICT`" " を参照してください。" #: ../../tutorial.rst:250 266283a205584bb98dd88e0282b81b8a msgid "" "**\"rawdict\"** / **\"rawjson\"**: a super-set of **\"dict\"** / " "**\"json\"**. It additionally provides character detail information like " "XML. See :meth:`TextPage.extractRAWDICT` for details of its structure." msgstr "" "**\"rawdict\"** / **\"rawjson\"**: \"dict\" / " "\"json\"のスーパーセットです。これにはXMLのような文字の詳細情報も含まれます。その構造の詳細については、:meth:`TextPage.extractRAWDICT`" " を参照してください。" #: ../../tutorial.rst:252 be5015a7daf84be89659b718295dcaf6 msgid "" "**\"xhtml\"**: text information level as the TEXT version but includes " "images. Can also be displayed by internet browsers." msgstr "**\"xhtml\"**: TEXTバージョンのテキスト情報レベルを含み、画像も含まれます。インターネットブラウザでも表示できます。" #: ../../tutorial.rst:254 6a9fccccc2af470dbe418b64d95196fb msgid "" "**\"xml\"**: contains no images, but full position and font information " "down to each single text character. Use an XML module to interpret." msgstr "" "**\"xml\"**: " "画像は含まれませんが、各テキスト文字までの完全な位置とフォント情報を含みます。XMLモジュールを使用して解釈することができます。" #: ../../tutorial.rst:256 c2fb29629d574544ba6240118706a993 msgid "" "To give you an idea about the output of these alternatives, we did text " "example extracts. See :ref:`Appendix1`." msgstr "これらの代替方法の出力のイメージを示すために、テキストの例抽出を行いました。:ref:`Appendix1` を参照してください" #: ../../tutorial.rst:259 6fcbe8fa549f4672940aa6a7baa43298 msgid "Searching for Text" msgstr "テキストを検索す" #: ../../tutorial.rst:260 055f0da706d34efba1868870cc7ac25e msgid "You can find out, exactly where on a page a certain text string appears::" msgstr "特定のテキスト文字列がページのどこに現れるかを正確に調べることができます。::" #: ../../tutorial.rst:264 fa6460b021d44b8aba602b1940777f99 msgid "" "This delivers a list of rectangles (see :ref:`Rect`), each of which " "surrounds one occurrence of the string \"mupdf\" (case insensitive). You " "could use this information to e.g. highlight those areas (PDF only) or " "create a cross reference of the document." msgstr "" "このコードは、\"mupdf\"(大文字と小文字を区別しない)という文字列が含まれる各領域を囲む長方形( :ref:`Rect` " "参照)のリストを生成します。この情報を使って、それらの領域を強調表示したり(PDFのみ)、文書のクロスリファレンスを作成したりすることができます。" #: ../../tutorial.rst:266 9602ff0fbee54febb5a9bce0eb7643a8 msgid "" "Please also do have a look at chapter :ref:`cooperation` and at demo " "programs `demo.py`_ and `demo-lowlevel.py`_. Among other things they " "contain details on how the :ref:`TextPage`, :ref:`Device` and " ":ref:`DisplayList` classes can be used for a more direct control, e.g. " "when performance considerations suggest it." msgstr "" "また、:ref:`cooperation` という章、およびデモプログラム `demo.py`_ と `demo-lowlevel.py`_ " "も参照してください。これらには、:ref:`TextPage` 、 :ref:`Device` 、:ref:`DisplayList` " "クラスをより直接的に制御する方法に関する詳細な情報が含まれています。例えば、パフォーマンスを考慮する必要がある場合などに役立ちます" #: ../../tutorial.rst:273 d532b1e3d0b249d5863b7d1af292f56f msgid "Stories: Generating PDF from HTML Source" msgstr "ストーリー: HTMLソースからPDFを生成する" #: ../../tutorial.rst:275 416352710d134781921a3400fd5b5ef0 msgid "" "The :ref:`Story` class is a new feature of PyMuPDF version 1.21.0. It " "represents support for MuPDF's **\"story\"** interface." msgstr "" "ストーリークラスはPyMuPDFバージョン1.21.0の新機能です。これはMuPDFの :ref:`Story` " "インターフェースに対するサポートを表しています。" #: ../../tutorial.rst:277 accd3e3fc6d547b78b274237642033d6 msgid "" "The following is a quote from the book `\"MuPDF Explored\"`_ by Robin " "Watts from `Artifex`_:" msgstr "以下はArtifexのRobin Wattsによる書籍「MuPDF Explored」からの引用です。" #: ../../tutorial.rst:281 47e500970eb842949a968db6adee0910 msgid "" "*Stories provide a way to easily layout styled content for use with " "devices, such as those offered by Document Writers (...). The concept of " "a story comes from desktop publishing, which in turn (...) gets it from " "newspapers. If you consider a traditional newspaper layout, it will " "consist of various news articles (stories) that are laid out into " "multiple columns, possibly across multiple pages.*" msgstr "*ストーリーは、ドキュメントライターなどのデバイスで使用するためのスタイル付きコンテンツを簡単にレイアウトする方法を提供します。ストーリーという概念は、デスクトップパブリッシングから来ており、それ自体が新聞から取り入れられています。伝統的な新聞のレイアウトを考えると、複数の列や複数のページにわたって配置されたさまざまなニュース記事(ストーリー)で構成されています。*" #: ../../tutorial.rst:283 27ebf650cfb746b6ae9e42bdde508478 msgid "" "*Accordingly, MuPDF uses a story to represent a flow of text with styling" " information. The user of the story can then supply a sequence of " "rectangles into which the story will be laid out, and the positioned text" " can then be drawn to an output device. This keeps the concept of the " "text itself (the story) to be separated from the areas into which the " "text should be flowed (the layout).*" msgstr "*それに応じて、MuPDFでは、テキストのフローとスタイリング情報を表すためにストーリーを使用しています。ストーリーのユーザーは、ストーリーをレイアウトするための矩形のシーケンスを提供し、配置されたテキストを出力デバイスに描画できます。これにより、テキスト自体(ストーリー)がテキストを配置する領域(レイアウト)から分離されるという概念が保持されます*" #: ../../tutorial.rst:287 7da64d937fe84390a33b56158c76d219 msgid "" "A Story works somewhat similar to an internet browser: It faithfully " "parses and renders HTML hypertext and also optional stylesheets (CSS). " "But its **output is a PDF** -- not web pages." msgstr "ストーリーは、インターネットブラウザといくつかの点で似ています。それは忠実にHTMLハイパーテキストとオプションのスタイルシート(CSS)を解析してレンダリングします。ただし、出力されるのはPDFであり、ウェブページではありません。" #: ../../tutorial.rst:290 290d5414b6754a0a8cec4ef553811e70 msgid "" "When creating a :ref:`Story`, the input from up to three different " "information sources is taken into account. All these items are optional." msgstr "ストーリーを作成する際には、最大3つの異なる情報源からの入力が考慮されます。これらのすべてのアイテムはオプションです。" #: ../../tutorial.rst:292 b76811f3a6e94ca48849af027b1e4aa7 msgid "" "HTML source code, either a Python string or **created by the script** " "using methods of :ref:`Xml`." msgstr "HTMLソースコード:Pythonの文字列として提供されるか、 :ref:`Xml` のメソッドを使用してスクリプトによって作成されます。" #: ../../tutorial.rst:294 631005d36d9d478eb1222c6746a62f78 msgid "" "CSS (Cascaded Style Sheet) source code, provided as a Python string. CSS " "can be used to provide styling information (text font size, color, etc.) " "like it would happen for web pages. Obviously, this string may also be " "read from a file." msgstr "CSS(カスケーディングスタイルシート)ソースコード:Pythonの文字列として提供されます。CSSは、ウェブページにおけるように、スタイリング情報(テキストフォントサイズ、色など)を提供するために使用できます。もちろん、この文字列はファイルから読み込むこともできます。" #: ../../tutorial.rst:296 b555903aaf064df4ac02bf4379ecd84b msgid "" "An :ref:`Archive` **must be used** whenever the DOM references images, or" " uses text fonts except the standard :ref:`Base-14-Fonts`, CJK fonts and " "the NOTO fonts generated into the PyMuPDF binary." msgstr "" "DOMが画像を参照する場合や、標準の :ref:`Base-14-Fonts` " "、CJKフォント、およびPyMuPDFバイナリに生成されたNOTOフォント以外のテキストフォントを使用する場合、 :ref:`Archive` " "を使用する必要があります。" #: ../../tutorial.rst:299 5a5a7775caf44157ab99d4fb18a08da0 msgid "" "The :ref:`API` allows creating DOMs completely from scratch, " "including desired styling information. It can also be used to modify or " "extend **provided** HTML: text can be deleted or replaced, or its styling" " can be changed. Text -- for example extracted from databases -- can also" " be added and fill template-like HTML documents." msgstr "" "この :ref:`API` " "では、望むスタイル情報を含めて、DOMを完全にゼロから作成することができます。また、提供されたHTMLを変更したり拡張したりするためにも使用できます。テキストは削除や置換ができ、スタイルも変更できます。データベースから抽出されたテキストを追加して、テンプレートのようなHTMLドキュメントを作成することもできます。" #: ../../tutorial.rst:301 eff1f356f57a4a5baa32893df82ccc7f msgid "" "It is **not required** to provide syntactically complete HTML documents: " "snippets like `Hello World!` are fully accepted, and many /" " most syntax errors are automatically corrected." msgstr "" "文法的に完全なHTMLドキュメントを提供する必要はありません。例えば ``HelloWorld!`` " "のような断片も完全に受け入れられ、多くの場合、構文エラーは自動的に修正されます。" #: ../../tutorial.rst:303 365fa2cc06434ed8ad7429aaf3a63265 msgid "" "After the HTML is considered complete, it can be used to create a PDF " "document. This happens via the new :ref:`DocumentWriter` class. The " "programmer calls its methods to create a new empty page, and passes " "rectangles to the Story to fill them." msgstr "" "HTMLが完成したと見なされた後、それを使用してPDF文書を作成できます。これは新しい :ref:`DocumentWriter` " "クラスを介して行われます。プログラマーはそのメソッドを呼び出して新しい空のページを作成し、:ref:`Story` " "に矩形を渡してそれらを埋めることができます。" #: ../../tutorial.rst:305 3291ca47108e47b19f4b0bc0a5a4027b msgid "" "The story in turn will return completion codes indicating whether or not " "more content is waiting to be written. Which part of the content will " "land in which rectangle or on which page is automatically determined by " "the story itself -- it cannot be influenced other than by providing the " "rectangles." msgstr "" ":ref:`Story` " "は、書き込まれる待機中のコンテンツがあるかどうかを示す完了コードを返します。コンテンツのどの部分がどの矩形またはどのページに配置されるかは、:ref:`Story`" " 自体によって自動的に決定されます。矩形を提供すること以外では影響を与えることはできません。" #: ../../tutorial.rst:307 bd9d9dd769be42d4b2431ad4fac946e4 msgid "" "Please see the :ref:`Stories recipes` for a number of " "typical use cases." msgstr "典型的な使用例については、 :ref:`Stories recipes` レシピをご覧ください。" #: ../../tutorial.rst:311 b4514f2b40064533bbf026420a0260d7 msgid "PDF Maintenance" msgstr "PDFメンテナンス" #: ../../tutorial.rst:312 76f8cae636954def812f6bd6aa4d9077 msgid "" "PDFs are the only document type that can be **modified** using PyMuPDF. " "Other file types are read-only." msgstr "PDFはPyMuPDFを使用して変更できる唯一のドキュメントタイプです。他のファイルタイプは読み取り専用です。" #: ../../tutorial.rst:314 6d192d43c9e24232be29c65e1e0c1018 msgid "" "However, you can convert **any document** (including images) to a PDF and" " then apply all PyMuPDF features to the conversion result. Find out more " "here :meth:`Document.convert_to_pdf`, and also look at the demo script " "`pdf-converter.py`_ which can convert any :ref:`supported " "document` to PDF." msgstr "" "ただし、任意のドキュメント(画像を含む)をPDFに変換し、変換結果にすべてのPyMuPDF機能を適用することができます。 " ":meth:`Document.convert_to_pdf` " "で詳細を確認できます。また、任意のサポートされているドキュメントをPDFに変換できるデモスクリプト `pdf-converter.py`_ " "も確認してください。" #: ../../tutorial.rst:316 05d7bbe4027a4e9b98372c4707c22cd4 msgid "" ":meth:`Document.save()` always stores a PDF in its current (potentially " "modified) state on disk." msgstr ":meth:`Document.save()` は常に現在の(変更された可能性のある)PDFをディスクに保存します。" #: ../../tutorial.rst:318 400c516b51f0441a9c6ac7d433101329 msgid "" "You normally can choose whether to save to a new file, or just append " "your modifications to the existing one (\"incremental save\"), which " "often is very much faster." msgstr "通常、新しいファイルに保存するか、既存のファイルに変更内容を追加するか(「増分保存」)を選択できます。増分保存は非常に高速な場合があります。" #: ../../tutorial.rst:320 57fdfcd11a1245249d7e837f37b43094 msgid "" "The following describes ways how you can manipulate PDF documents. This " "description is by no means complete: much more can be found in the " "following chapters." msgstr "以下にPDFドキュメントを操作する方法を示しますが、これに限らず、詳細は次の章でさらに見つけることができます。" #: ../../tutorial.rst:323 ec4c85ec57124203b67f52652f082b88 msgid "Modifying, Creating, Re-arranging and Deleting Pages" msgstr "ページの修正、作成、再配置、および削" #: ../../tutorial.rst:324 625ab390c172404fbdc7aa9520874495 msgid "" "There are several ways to manipulate the so-called **page tree** (a " "structure describing all the pages) of a PDF:" msgstr "PDFの**ページツリー** (すべてのページを記述する構造)を操作するためには、いくつかの方法があります。" #: ../../tutorial.rst:326 159259eb9e4145daa6c13b2ad767f12e msgid "" ":meth:`Document.delete_page` and :meth:`Document.delete_pages` delete " "pages." msgstr ":meth:`Document.delete_page` と :meth:`Document.delete_pages` はページを削除します。" #: ../../tutorial.rst:328 473d5897fff649019f539d6232e91f44 msgid "" ":meth:`Document.copy_page`, :meth:`Document.fullcopy_page` and " ":meth:`Document.move_page` copy or move a page to other locations within " "the same document." msgstr "" ":meth:`Document.copy_page` 、 :meth:`Document.fullcopy_page` 、 " ":meth:`Document.move_page` は、ページを同じドキュメント内の他の場所にコピーしたり移動したりします。" #: ../../tutorial.rst:330 1e6c19e64c734426bec58da4dfbe7e0b msgid "" ":meth:`Document.select` shrinks a PDF down to selected pages. Parameter " "is a sequence [#f3]_ of the page numbers that you want to keep. These " "integers must all be in range *0 <= i < page_count*. When executed, all " "pages **missing** in this list will be deleted. Remaining pages will " "occur **in the sequence and as many times (!) as you specify them**." msgstr "" ":meth:`Document.select` " "はPDFを選択したページに縮小します。パラメータは[3]のページ番号のシーケンスで、保持したいページの番号を指定します。これらの整数はすべて範囲 " "`0 <= i < page_count` " "にある必要があります。実行されると、このリストに含まれていないすべてのページが削除されます。残ったページは指定した順序通りに(指定回数分!)現れます。" #: ../../tutorial.rst:332 1032d54636274cfab2c769409afa76e0 msgid "So you can easily create new PDFs with" msgstr "したがって、次のような簡単な方法で新しいPDFを作成できます:" #: ../../tutorial.rst:334 e8415caf00594110bef2b948c89abcbd msgid "the first or last 10 pages," msgstr "最初または最後の10ページ" #: ../../tutorial.rst:335 fc336f721207413b95dce987329adfad msgid "only the odd or only the even pages (for doing double-sided printing)," msgstr "奇数ページのみまたは偶数ページのみ(両面印刷用)" #: ../../tutorial.rst:336 3a6929bd1e7d4e178ef1549c9c67d87a msgid "pages that **do** or **don't** contain a given text," msgstr "特定のテキストを含むまたは含まないページ" #: ../../tutorial.rst:337 968ba746356447208207a1cee391ea52 msgid "reverse the page sequence, ..." msgstr "ページの順序を逆にする" #: ../../tutorial.rst:339 1c2ed724e9564be1a8841011462e53a1 msgid "... whatever you can think of." msgstr "... など、思いつく限りのことができます。" #: ../../tutorial.rst:341 3a7dc1aa206e4858a930d0cc0ce437cf msgid "" "The saved new document will contain links, annotations and bookmarks that" " are still valid (i.a.w. either pointing to a selected page or to some " "external resource)." msgstr "保存された新しいドキュメントには、まだ有効なリンク、注釈、およびブックマークが含まれています(選択したページを指すか、あるいは外部リソースを指すかを問わず)。" #: ../../tutorial.rst:343 62273df02f3a43edaca93b7b9899b551 msgid "" ":meth:`Document.insert_page` and :meth:`Document.new_page` insert new " "pages." msgstr ":meth:`Document.insert_page` および :meth:`Document.new_page` は新しいページを挿入します。" #: ../../tutorial.rst:345 62ec5bdcc4854cc0ab7b5a9c5de8295e msgid "" "Pages themselves can moreover be modified by a range of methods (e.g. " "page rotation, annotation and link maintenance, text and image " "insertion)." msgstr "さらに、ページ自体はさまざまな方法で変更できます(ページの回転、注釈とリンクの維持、テキストと画像の挿入など)" #: ../../tutorial.rst:348 f481a1f85523458ba716bfffa017ecc2 msgid "Joining and Splitting PDF Documents" msgstr "PDF文書の結合と分割" #: ../../tutorial.rst:350 5c4f9e715c364f99ab85e02a35390a54 msgid "" "Method :meth:`Document.insert_pdf` copies pages **between different** PDF" " documents. Here is a simple **joiner** example (*doc1* and *doc2* being " "opened PDFs)::" msgstr "" "メソッド :meth:`Document.insert_pdf` は異なるPDF文書間でページをコピーします。以下は簡単な結合の例です( " "`doc1` と `doc2` は開かれたPDF文書です)::" #: ../../tutorial.rst:355 76e1ca6378be4c7780b008c6aa0147b1 msgid "" "Here is a snippet that **splits** *doc1*. It creates a new document of " "its first and its last 10 pages::" msgstr "以下は、 `doc1` を分割するスニペットです。最初の10ページと最後の10ページを含む新しいドキュメントを作成します。" #: ../../tutorial.rst:362 425d928677684aaebd2c13acc306cc3a msgid "" "More can be found in the :ref:`Document` chapter. Also have a look at " "`PDFjoiner.py`_." msgstr ":ref:`Document` の章にはさらに詳細が記載されています。また、 `PDFjoiner.py`_ も確認してください。" #: ../../tutorial.rst:365 3a32f81f55af4ff2942e6a5bda5351e4 msgid "Embedding Data" msgstr "データの埋め込み" #: ../../tutorial.rst:367 e8c1a07274464e69b5716d2cfcd333a2 msgid "" "PDFs can be used as containers for arbitrary data (executables, other " "PDFs, text or binary files, etc.) much like ZIP archives." msgstr "PDFはZIPアーカイブのように、任意のデータ(実行可能ファイル、他のPDF、テキストファイル、バイナリファイルなど)をコンテナとして使用できます。" #: ../../tutorial.rst:369 e53116859c304e5d8cae52bca7615d49 #, fuzzy msgid "" "PyMuPDF fully supports this feature via :ref:`Document` ``embfile_*`` " "methods and attributes. For some detail read :ref:`Appendix 3`, consult " "the Wiki on `dealing with embedding files`_, or the example scripts " "`embedded-copy.py`_, `embedded-export.py`_, `embedded-import.py`_, and " "`embedded-list.py`_." msgstr "" "PyMuPDFは :ref:`Document` *embfile_** " "メソッドと属性を介して、この機能を完全にサポートしています。詳細については、 :ref:`Appendix3` " "を読むか、ファイルの埋め込みに対処するためのウィキを参照してください。また、exampleスクリプトの `embedded-copy.py`_ " "、`embedded-export.py`_ 、`embedded-import.py`_ 、および `embedded-list.py`_ " "も参考になるでしょう。" #: ../../tutorial.rst:373 7e063cc85bf74b67af328699883eabcd msgid "Saving" msgstr "保存" #: ../../tutorial.rst:375 ddc980f323444d9a888df621e5e4413a msgid "" "As mentioned above, :meth:`Document.save` will **always** save the " "document in its current state." msgstr "前述のように、 :meth:`Document.save` は常にドキュメントを現在の状態で保存します。" #: ../../tutorial.rst:377 938eb4bca93d44e7ad9d9db6a21b0197 msgid "" "You can write changes back to the **original PDF** by specifying option " "``incremental=True``. This process is (usually) **extremely fast**, since" " changes are **appended to the original file** without completely " "rewriting it." msgstr "" "オプション `incremental=True` " "を指定することで、変更を元のPDFに書き戻すことができます。このプロセスは(通常)非常に高速です。変更は元のファイルに追加されるため、完全に書き直す必要がありません。" #: ../../tutorial.rst:379 34a90e8b41204457b27c7bf4c896ed07 msgid "" ":meth:`Document.save` options correspond to options of MuPDF's command " "line utility *mutool clean*, see the following table." msgstr "" ":meth:`Document.save` のオプションは、MuPDFのコマンドラインユーティリティmutool " "cleanのオプションと対応しています。以下の表を参照してください。" #: ../../tutorial.rst:382 1163070c3e2e478c9edfeeef99960201 msgid "**Save Option**" msgstr "**保存オプション**" #: ../../tutorial.rst:382 94311b1ebca3478a8d7bf6f6d522fd8b msgid "**mutool**" msgstr "" #: ../../tutorial.rst:382 962d3ef8846c431c8e9dfdf9d487bfb1 msgid "**Effect**" msgstr "**効果**" #: ../../tutorial.rst:384 b65cf8acc8bc476f8334931a4c8a17b8 msgid "garbage=1" msgstr "" #: ../../tutorial.rst:384 6b4221531c1b4915975145d5a46840f9 msgid "g" msgstr "" #: ../../tutorial.rst:384 b773213735d5433a912d7d50de094b58 msgid "garbage collect unused objects" msgstr "未使用のオブジェクトをガベージコレクションします" #: ../../tutorial.rst:385 9bb3557107484b32b9d48ee883975e41 msgid "garbage=2" msgstr "" #: ../../tutorial.rst:385 e5d8266ec4434156843ae8d329cb1234 msgid "gg" msgstr "" #: ../../tutorial.rst:385 5d1cd64ee4a44495b52e5808a4c51ebf msgid "in addition to 1, compact :data:`xref` tables" msgstr "1に加えて、xrefテーブルをコンパクトにします" #: ../../tutorial.rst:386 5846a30c454d494b9cb77c2612b7e3ba msgid "garbage=3" msgstr "" #: ../../tutorial.rst:386 8499a2c0b7254ddfbc44cba627532452 msgid "ggg" msgstr "" #: ../../tutorial.rst:386 349d1afd120c468c8663d3467baf0a1d msgid "in addition to 2, merge duplicate objects" msgstr "2に加えて、重複したオブジェクトをマージします" #: ../../tutorial.rst:387 f97513200d184db2818ef3272e06659d msgid "garbage=4" msgstr "" #: ../../tutorial.rst:387 8818b59f9bf3464e8ff2acae77c152f2 msgid "gggg" msgstr "" #: ../../tutorial.rst:387 c284ddf0b0794e979bfa728c57373d83 msgid "in addition to 3, merge duplicate stream content" msgstr "3に加えて、重複したストリームの内容をマージします" #: ../../tutorial.rst:388 7874a21a2a374610abddf1cbd7efb717 msgid "clean=True" msgstr "" #: ../../tutorial.rst:388 c1e6bac1097a452a8399150c1e9c8279 msgid "cs" msgstr "" #: ../../tutorial.rst:388 9ddc64830c9040ed8451f02ed2741816 msgid "clean and sanitize content streams" msgstr "コンテンツストリームをクリーンアップしてサニタイズします" #: ../../tutorial.rst:389 c2f486c396c84db0ba07db1c9ee5a7ae msgid "deflate=True" msgstr "" #: ../../tutorial.rst:389 49a98a67d15747c98e6ca70bb53f3c51 msgid "z" msgstr "" #: ../../tutorial.rst:389 37e910e46f2247d3a69e36dbd0748d94 msgid "deflate uncompressed streams" msgstr "非圧縮のストリームをdeflate圧縮します" #: ../../tutorial.rst:390 7ffbd7aa96264ff1902b58f73b4fd092 msgid "deflate_images=True" msgstr "" #: ../../tutorial.rst:390 83ea4c4b317d488092885540eb84f939 msgid "i" msgstr "" #: ../../tutorial.rst:390 4e719956c06a4d49bb8d10a19576ee42 msgid "deflate image streams" msgstr "画像ストリームをdeflate圧縮します" #: ../../tutorial.rst:391 c33f6052e9494538ae7f4e1191c64fd2 msgid "deflate_fonts=True" msgstr "" #: ../../tutorial.rst:391 9786f972e1be4a16b85ffee8b754ec19 msgid "f" msgstr "" #: ../../tutorial.rst:391 79fefb0533874ecb8a096e7db7f10332 msgid "deflate fontfile streams" msgstr "フォントファイルストリームをdeflate圧縮します" #: ../../tutorial.rst:392 423d166f2fc54b4498a9377a2dd30960 msgid "ascii=True" msgstr "" #: ../../tutorial.rst:392 a67143a6cbe040c590ae0a63a0fe9234 msgid "a" msgstr "" #: ../../tutorial.rst:392 59590f861522439b8f81250d3941e06c msgid "convert binary data to ASCII format" msgstr "バイナリデータをASCII形式に変換します" #: ../../tutorial.rst:393 86236a9e66cf4150970d92080d6e1583 msgid "linear=True" msgstr "" #: ../../tutorial.rst:393 5893e24f2faa4060ba0c43aa63dbd263 msgid "l" msgstr "" #: ../../tutorial.rst:393 0dec5675398e49978e78651893a99395 msgid "create a linearized version" msgstr "線形化バージョンを作成します" #: ../../tutorial.rst:394 febbe58d4b104f8bbe950ccccccb1859 msgid "expand=True" msgstr "" #: ../../tutorial.rst:394 ef0e028a01314e21a0d744ca0d2ad01f msgid "d" msgstr "" #: ../../tutorial.rst:394 09ec7a0736e34a67aa68a9542195d17e msgid "decompress all streams" msgstr "すべてのストリームを解凍します" #: ../../tutorial.rst:397 e917b060c085407fb80a474e3bec75e9 #, fuzzy msgid "" "For an explanation of terms like ``object``, ``stream``, ``xref`` consult" " the :ref:`Glossary` chapter." msgstr "オブジェクト、ストリーム、xrefなどの用語の詳細については、 :ref:`Glossary` の章を参照してください。" #: ../../tutorial.rst:399 dcb5dc3e6c3a41349a7db5e5052ed2e0 msgid "" "For example, ``mutool clean -ggggz file.pdf`` yields excellent " "compression results. It corresponds to ``doc.save(filename, garbage=4, " "deflate=True)``." msgstr "" "例えば、 `mutool clean -ggggz file.pdf` は優れた圧縮結果をもたらします。これは " "`doc.save(filename, garbage=4, deflate=True)` に対応しています。" #: ../../tutorial.rst:402 c79ea0512d3b44e78f142255268af6ac msgid "Closing" msgstr "クローズ" #: ../../tutorial.rst:403 f745b8b8cfd64cd0955b6d9c72baa5f3 msgid "" "It is often desirable to \"close\" a document to relinquish control of " "the underlying file to the OS, while your program continues." msgstr "プログラムが継続する間に、基になるファイルの制御をOSに戻すために、ドキュメントを「クローズ」することがしばしば望まれます。" #: ../../tutorial.rst:405 6ec44b753b01413a9bcbd6b21a1310d7 msgid "" "This can be achieved by the :meth:`Document.close` method. Apart from " "closing the underlying file, buffer areas associated with the document " "will be freed." msgstr "" "これは :meth:`Document.close` " "メソッドによって実現できます。基になるファイルをクローズするだけでなく、ドキュメントに関連するバッファ領域も解放されます。" #: ../../tutorial.rst:408 88cb960755d5457da5441939ff0c836d msgid "Further Reading" msgstr "さらなる情報" #: ../../tutorial.rst:409 079337447add4588b00679495c0756c6 msgid "" "Also have a look at PyMuPDF's `Wiki`_ pages. Especially those named in " "the sidebar under title **\"Recipes\"** cover over 15 topics written in " "\"How-To\" style." msgstr "" "また、PyMuPDFの `Wiki`_ " "ページもご覧ください。特に、サイドバーのタイトル「Recipes」の下に名前が挙げられているものは、15以上のトピックが「How-" "To」スタイルで書かれています。" #: ../../tutorial.rst:411 4ff206365d3c46319f8786732294335f msgid "" "This document also contains a :ref:`FAQ`. This chapter has close " "connection to the aforementioned recipes, and it will be extended with " "more content over time." msgstr ":ref:`Recipes: Table of Contents` をご覧ください。" #: ../../tutorial.rst:418 8469cb98a4bc46da95e015537403452d msgid "Footnotes" msgstr "脚注" #: ../../tutorial.rst:419 7abfecf3e58542b0859cd575498948f7 msgid "" "PyMuPDF lets you also open several image file types just like normal " "documents. See section :ref:`ImageFiles` in chapter :ref:`Pixmap` for " "more comments." msgstr "" "PyMuPDFは通常のドキュメントと同様に、いくつかの画像ファイル形式も開くことができます。詳細は、章 :ref:`Pixmap` のセクション " ":ref:`ImageFiles` を参照してください。" #: ../../tutorial.rst:421 70b740aad28644b395c85b6a12f20f0e msgid "" ":meth:`Page.get_text` is a convenience wrapper for several methods of " "another PyMuPDF class, :ref:`TextPage`. The names of these methods " "correspond to the argument string passed to :meth:`Page.get_text` \\: " "*Page.get_text(\"dict\")* is equivalent to *TextPage.extractDICT()* \\." msgstr "" ":meth:`Page.get_text` は、別のPyMuPDFクラス、:ref:`TextPage` " "のいくつかのメソッドの便利なラッパーです。これらのメソッドの名前は、 :meth:`Page.get_text` " "に渡された引数文字列に対応しています。例えば、 `Page.get_text(“dict”)` は " "`TextPage.extractDICT()` と同等です。" #: ../../tutorial.rst:423 13eddbfd7bd64cd49e523d76972c7368 msgid "" "\"Sequences\" are Python objects conforming to the sequence protocol. " "These objects implement a method named *__getitem__()*. Best known " "examples are Python tuples and lists. But *array.array*, *numpy.array* " "and PyMuPDF's \"geometry\" objects (:ref:`Algebra`) are sequences, too. " "Refer to :ref:`SequenceTypes` for details." msgstr "\"シーケンス\"とは、シーケンスプロトコルに準拠したPythonオブジェクトのことを指します。これらのオブジェクトは、getitem()という名前のメソッドを実装しています。よく知られた例としては、Pythonのタプルやリストがあります。しかし、array.array、numpy.array、およびPyMuPDFの「geometry」オブジェクト(幾何オブジェクトのためのオペレーター代数)もシーケンスです。詳細については、「PyMuPDFにおけるPythonシーケンスの引数の使用」を参照してください" #: ../../footer.rst:46 34f591e7f8ab491b884b15a32b4f508e msgid "This documentation covers all versions up to |version|." msgstr "このドキュメントは |version| までのすべてのバージョンを対象としています。" #~ msgid "PyMuPDF は、PDF (およびその他の)ドキュメントのデータ抽出、分析、変換、操作のための高性能な Python ライブラリです。" #~ msgstr "" #~ msgid "PDFテキスト抽出、PDFイメージ抽出、PDF変換、PDFテーブル、PDF分割、PDF作成, Pyodide, PyScript" #~ msgstr "" #~ msgid "" #~ "Importing |PyMuPDF| as `fitz` still " #~ "works however |PyMuPDF| **cannot coexist** " #~ "with other packages named \"fitz\" in" #~ " the same Python environment." #~ msgstr "したがって、PyMuPDFは同じPython環境で「fitz」という名前のパッケージと共存することはできません" #~ msgid "Discord logo" #~ msgstr ""