Device (デバイス)#

異なるフォーマットハンドラ(pdf、xps など)はページを「デバイス」に解釈します。デバイスはページで行うすべてのことの基盤であり、レンダリング、テキスト抽出、検索などが行えます。デバイスのタイプは選択した構築方法によって決まります。

クラスAPI

class Device#
__init__(self, object, clip)#

ピクセルマップまたは表示リストデバイスのコンストラクタ。

パラメータ:
  • object (Pixmap or DisplayList(ディスプレイリスト)) -- Pixmap または DisplayList のいずれか。

  • clip (IRect) -- Pixmap デバイス用の任意の IRect で、ページの特定の領域にレンダリングを制限するためのものです。完全なページが必要な場合は、None を指定してください。表示リストデバイスの場合、このパラメータは省略する必要があります。

__init__(self, textpage, flags=0)#

テキストページデバイスのコンストラクタ。

パラメータ:
  • textpage (TextPage (テキストページ)) -- TextPageオブジェクト

  • flags (int) -- テキストがテキストページに解析される方法を制御するフラグです


This software is provided AS-IS with no warranty, either express or implied. This software is distributed under license and may not be copied, modified or distributed except as expressly authorized under the terms of that license. Refer to licensing information at artifex.com or contact Artifex Software Inc., 39 Mesa Street, Suite 108A, San Francisco CA 94129, United States for further information.

Discord logo