XpsDocument

Inheritance: java.lang.Object, com.aspose.page.Document

All Implemented Interfaces: java.io.Closeable

public final class XpsDocument extends Document implements Closeable

任意の XPS 要素に対する操作メソッドを提供する XPS ドキュメントの主要エンティティをカプセル化するクラス。

コンストラクタ

コンストラクタ説明
XpsDocument()デフォルトのページサイズで空の XPS ドキュメントを作成します。
XpsDocument(String path)指定されたパスにある既存の XPS ドキュメントを開きます。
XpsDocument(InputStream stream, LoadOptions options)ストリームに格納された既存のドキュメントを XPS ドキュメントとしてロードします。

メソッド

メソッド説明
add(T element)コンテンツ要素(Canvas、Path、または Glyphs)を追加します
insert(int index, T element)アクティブページのインデックス位置に要素(Canvas、Path、または Glyphs)を挿入します。
remove(T element)アクティブページから要素を削除します。
addCanvas()アクティブページに新しいキャンバスを追加します。
addDocument()デフォルトのページサイズで空のドキュメントを追加し、追加されたドキュメントをアクティブとして選択します。
addDocument(boolean activate)デフォルトのページサイズで空のドキュメントを追加します。
addDocument(float width, float height)最初のページの width と height の寸法で空のドキュメントを追加し、追加されたドキュメントをアクティブとして選択します。
addDocument(float width, float height, boolean activate)最初のページの width と height を持つ空のドキュメントを追加します。
addGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)アクティブなページに新しいグリフを追加します。
addGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)アクティブなページに新しいグリフを追加します。
addOutlineEntry(String description, int outlineLevel, XpsHyperlinkTarget target)ドキュメントにアウトラインエントリを追加します。
addPage()デフォルトのページサイズで空のページをドキュメントに追加します。
addPage(boolean activate)デフォルトのページサイズで空のページをドキュメントに追加します。
addPage(XpsPage page)ページをドキュメントに追加し、追加されたページをアクティブに選択します。
addPage(XpsPage page, boolean activate)ページをドキュメントに追加します。
addPage(float width, float height)指定された width と height を持つ空のページをドキュメントに追加します。
addPage(float width, float height, boolean activate)指定された width と height を持つ空のページをドキュメントに追加します。
addPath(XpsPathGeometry data)アクティブなページに新しいパスを追加します。
close()インスタンスを破棄します。
createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection)新しいストロークされた楕円弧セグメントを作成します。
createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection, boolean isStroked)新しい楕円弧セグメントを作成します。
createCanvas()新しいキャンバスを作成します。
createColor(XpsIccProfile iccProfile, float[] components)ICCベースのカラースペースで新しい色を作成します。
createColor(float r, float g, float b)scRGB カラースペースで新しい色を作成します。
createColor(float a, float r, float g, float b)scRGB カラースペースで新しい色を作成します。
createColor(int r, int g, int b)sRGB カラースペースで新しい色を作成します。
createColor(int a, int r, int g, int b)sRGB カラースペースで新しい色を作成します。
createColor(Color color)新しい色を作成します。
createColor(String path, float[] components)ICCベースのカラースペースで新しい色を作成します。
createFont(InputStream stream)stream から新しい TrueType フォントリソースを作成します。
createFont(String fontFamily, XpsFontStyle fontStyle)新しい TrueType フォントリソースを作成します。
createGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)新しいグリフを作成します。
createGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)新しいグリフを作成します。
createGradientStop(XpsColor color, float offset)新しいグラデーションストップを作成します。
createGradientStop(Color color, float offset)新しいグラデーションストップを作成します。
createIccProfile(InputStream stream)stream から新しい ICC プロファイルリソースを作成します。
createIccProfile(String iccProfilePath)iccProfilePath にある ICC プロファイルファイルから新しい ICC プロファイルリソースを作成します。
createImage(InputStream stream)stream から新しい画像リソースを作成します。
createImage(String imagePath)imagePath にある画像ファイルから新しい画像リソースを作成します。
createImageBrush(XpsImage image, Rectangle2D viewbox, Rectangle2D viewport)新しいイメージブラシを作成します。
createImageBrush(String imagePath, Rectangle2D viewbox, Rectangle2D viewport)新しいイメージブラシを作成します。
createLinearGradientBrush(Point2D startPoint, Point2D endPoint)新しい線形グラデーションブラシを作成します。
createLinearGradientBrush(List gradientStops, Point2D startPoint, Point2D endPoint)新しい線形グラデーションブラシを作成します。
createMatrix(float m11, float m12, float m21, float m22, float m31, float m32)新しいアフィン変換行列を作成します。
createPath(XpsPathGeometry data)新しいパスを作成します。
createPathFigure(Point2D startPoint)新しいオープンパス図形を作成します。
createPathFigure(Point2D startPoint, boolean isClosed)新しいパス図形を作成します。
createPathFigure(Point2D startPoint, List segments)新しいオープンパス図形を作成します。
createPathFigure(Point2D startPoint, List segments, boolean isClosed)新しいパス図形を作成します。
createPathGeometry()新しいパスジオメトリを作成します。
createPathGeometry(String abbreviatedGeometry)省略形で指定された新しいパスジオメトリを作成します。
createPathGeometry(List pathFigures)指定されたパス図形のリストで新しいパスジオメトリを作成します。
createPolyBezierSegment(Point2D[] points)ストロークされた立方ベジエ曲線の新しいセットを作成します。
createPolyBezierSegment(Point2D[] points, boolean isStroked)立方ベジエ曲線の新しいセットを作成します。
createPolyLineSegment(Point2D[] points)任意の数の個々の頂点を含む新しいストロークされた多角形描画を作成します。
createPolyLineSegment(Point2D[] points, boolean isStroked)任意の数の個々の頂点を含む新しい多角形描画を作成します。
createPolyQuadraticBezierSegment(Point2D[] points)パス図形の前の点から指定された制御点を使用して頂点のセットを通過する、ストロークされた二次ベジエ曲線の新しいセットを作成します。
createPolyQuadraticBezierSegment(Point2D[] points, boolean isStroked)パス図形の前の点から指定された制御点を使用して頂点のセットを通過する、二次ベジエ曲線の新しいセットを作成します。
createRadialGradientBrush(Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)新しい放射状グラデーションブラシを作成します。
createRadialGradientBrush(List gradientStops, Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)新しい放射状グラデーションブラシを作成します。
createSolidColorBrush(XpsColor color)新しい単色ブラシを作成します。
createSolidColorBrush(Color color)新しい単色ブラシを作成します。
createVisualBrush(XpsContentElement element, Rectangle2D viewbox, Rectangle2D viewport)新しいビジュアルブラシを作成します。
equals(Object arg0)
getActiveDocument()アクティブなドキュメント番号を返します。
getActivePage()アクティブなドキュメント内のアクティブなページ番号を返します。
getClass()
getDocumentCount()XPS パッケージ内のドキュメント数を返します。
getDocumentPrintTicket(int documentIndex)documentIndex でインデックスされたドキュメントの印刷チケットを取得します。
getJobPrintTicket()ドキュメントのジョブ印刷チケットを返します。
getPage()アクティブなページの XpsPage インスタンスを返します。
getPageCount()アクティブなドキュメントのページ数を返します。
getPagePrintTicket(int documentIndex, int pageIndex)documentIndex でインデックスされたドキュメント内の pageIndex でインデックスされたページの印刷チケットを取得します。
getTotalPageCount()XPS ドキュメント内のすべてのドキュメントの総ページ数を返します。
getUtils()正式な XPS 操作 API を超えるユーティリティを提供するオブジェクトを取得します。
hashCode()
insertCanvas(int index)index の位置にアクティブなページへ新しいキャンバスを挿入します。
insertDocument(int index)index の位置にデフォルトのページサイズの空のドキュメントを挿入し、挿入されたドキュメントをアクティブに選択します。
insertDocument(int index, boolean activate)index の位置にデフォルトのページサイズの空のドキュメントを挿入します。
insertDocument(int index, float width, float height)index の位置に最初のページの width と height を持つ空のドキュメントを挿入し、挿入されたドキュメントをアクティブに選択します。
insertDocument(int index, float width, float height, boolean activate)インデックス 位置 に、width と height の最初のページ寸法を持つ空のドキュメントを挿入します。
insertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, String unicodeString)インデックス 位置 にアクティブページへ新しいグリフを挿入します。
insertGlyphs(int index, String fontFamily, float fontSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)インデックス 位置 にアクティブページへ新しいグリフを挿入します。
insertPage(int index)インデックス 位置 にデフォルトページサイズの空ページをドキュメントに挿入し、挿入されたページをアクティブに選択します。
insertPage(int index, boolean activate)インデックス 位置 にデフォルトページサイズの空ページをドキュメントに挿入します。
insertPage(int index, XpsPage page)インデックス 位置 にページをドキュメントに挿入し、挿入されたページをアクティブに選択します。
insertPage(int index, XpsPage page, boolean activate)インデックス 位置 にページをドキュメントに挿入します。
insertPage(int index, float width, float height)インデックス 位置 に指定された width と height の空ページをドキュメントに挿入し、挿入されたページをアクティブに選択します。
insertPage(int index, float width, float height, boolean activate)インデックス 位置 に指定された width と height の空ページをドキュメントに挿入します。
insertPath(int index, XpsPathGeometry data)インデックス 位置 にアクティブページへ新しいパスを挿入します。
isLicensed()Aspose.Page for Java 製品ライセンスがアクセスされ、有効かどうかを示します。
merge(String[] filesForMerge, OutputStream outStream)複数の XPS ファイルを 1 つの XPS ドキュメントに結合します。
merge(String[] filesForMerge, String outXpsFilePath)複数の XPS ファイルを 1 つの XPS ドキュメントに結合します。
mergeToPdf(String outPdfFilePath, String[] filesForMerge, PdfSaveOptions options)Device インスタンスを使用して XPS ドキュメントを PDF に結合します。
mergeToPdf(String[] filesForMerge, OutputStream pdfStream, PdfSaveOptions options)Device インスタンスを使用して XPS ドキュメントを PDF に結合します。
notify()
notifyAll()
removeAt(int index)インデックス 位置 からアクティブページの要素を削除します。
removeDocumentAt(int index)インデックス 位置 のドキュメントを削除します。
removePage(XpsPage page)ドキュメントからページを削除します。
removePageAt(int index)インデックス 位置 のドキュメントからページを削除します。
save(Device device, SaveOptions options)Device インスタンスを使用してドキュメントを保存します。
save(OutputStream stream)XPS ドキュメントをストリームに保存します。
save(String path)path にある XPS ファイルに XPS ドキュメントを保存します。
saveAsImage(ImageSaveOptions options)ドキュメントを画像ファイルに保存します。出力ディレクトリとファイル名は、入力 XPS ファイルと同じになります。
saveAsImage(ImageSaveOptions options, String outDir, String fileNameTemplate)指定されたディレクトリと指定されたファイル名でドキュメントを画像ファイルに保存します。
saveAsImageBytes(ImageSaveOptions options)ドキュメントをビットマップ画像形式でバイト配列として保存します。
saveAsPdf(OutputStream stream, PdfSaveOptions options)ドキュメントを PDF 形式で保存します。
saveAsPdf(String outPdfFilePath, PdfSaveOptions options)ドキュメントを PDF 形式で保存します。
saveAsPs(OutputStream stream, PsSaveOptions options)ドキュメントを PS 形式で保存します。
saveAsPs(String outPsFilePath, PsSaveOptions options)ドキュメントを PostSscript 形式で保存します。
selectActiveDocument(int documentNumber)編集用にアクティブなドキュメントを選択します。
selectActivePage(int pageNumber)編集用にアクティブなドキュメントページを選択します。
setDocumentPrintTicket(int documentIndex, DocumentPrintTicket printTicket)printTicket を documentIndex でインデックス付けされたドキュメントにリンクします。
setJobPrintTicket(JobPrintTicket value)ドキュメントのジョブ印刷チケットを設定します。
setPagePrintTicket(int documentIndex, int pageIndex, PagePrintTicket printTicket)printTicket を documentIndex でインデックス付けされたドキュメント内の pageIndex でインデックス付けされたページにリンクします。
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

XpsDocument()

public XpsDocument()

デフォルトのページサイズで空の XPS ドキュメントを作成します。

XpsDocument(String path)

public XpsDocument(String path)

指定されたパスにある既存の XPS ドキュメントを開きます。

Parameters:

パラメータ説明
pathjava.lang.Stringドキュメントの場所。

XpsDocument(InputStream stream, LoadOptions options)

public XpsDocument(InputStream stream, LoadOptions options)

ストリームに格納された既存のドキュメントを XPS ドキュメントとしてロードします。

Parameters:

パラメータ説明
ストリームjava.io.InputStreamドキュメントストリーム。
optionsLoadOptionsドキュメントの読み込みオプション。

add(T element)

public T <T>add(T element)

コンテンツ要素(Canvas、Path、または Glyphs)を追加します

Parameters:

パラメータ説明
要素T追加する要素です。

Returns: T - 追加された要素。

insert(int index, T element)

public T <T>insert(int index, T element)

アクティブページのインデックス位置に要素(Canvas、Path、または Glyphs)を挿入します。

Parameters:

パラメータ説明
インデックスint要素を挿入すべき位置。
要素T挿入する要素。

Returns: T - 挿入された要素。

remove(T element)

public T <T>remove(T element)

アクティブページから要素を削除します。

Parameters:

パラメータ説明
要素T削除する要素。

Returns: T - 削除された要素。

addCanvas()

public XpsCanvas addCanvas()

アクティブページに新しいキャンバスを追加します。

Returns: XpsCanvas - Added canvas.

addDocument()

public void addDocument()

デフォルトのページサイズで空のドキュメントを追加し、追加されたドキュメントをアクティブとして選択します。

addDocument(boolean activate)

public void addDocument(boolean activate)

デフォルトのページサイズで空のドキュメントを追加します。

Parameters:

パラメータ説明
アクティブ化boolean追加されたドキュメントをアクティブとして選択するかどうかを示すフラグ。

addDocument(float width, float height)

public void addDocument(float width, float height)

最初のページの width と height の寸法で空のドキュメントを追加し、追加されたドキュメントをアクティブとして選択します。

Parameters:

パラメータ説明
widthfloat最初のページの幅。
heightfloat最初のページの高さ。

addDocument(float width, float height, boolean activate)

public void addDocument(float width, float height, boolean activate)

最初のページの width と height を持つ空のドキュメントを追加します。

Parameters:

パラメータ説明
widthfloat最初のページの幅。
heightfloat最初のページの高さ。
アクティブ化boolean追加されたドキュメントをアクティブとして選択するかどうかを示すフラグ。

addGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)

public XpsGlyphs addGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)

アクティブなページに新しいグリフを追加します。

Parameters:

パラメータ説明
fontXpsFontフォントリソース。
fontRenderingEmSizefloatフォントサイズ。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - Added glyphs.

addGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

public XpsGlyphs addGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

アクティブなページに新しいグリフを追加します。

Parameters:

パラメータ説明
fontFamilyjava.lang.Stringフォントファミリー。
fontRenderingEmSizefloatフォントサイズ。
fontStyleXpsFontStyleフォントスタイル。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - Added glyphs.

addOutlineEntry(String description, int outlineLevel, XpsHyperlinkTarget target)

public void addOutlineEntry(String description, int outlineLevel, XpsHyperlinkTarget target)

ドキュメントにアウトラインエントリを追加します。

Parameters:

パラメータ説明
説明java.lang.Stringエントリの説明。
outlineLevelintアウトラインレベル。
targetXpsHyperlinkTargetエントリターゲット。

addPage()

public XpsPage addPage()

デフォルトのページサイズで空のページをドキュメントに追加します。

Returns: XpsPage - Added page.

addPage(boolean activate)

public XpsPage addPage(boolean activate)

デフォルトのページサイズで空のページをドキュメントに追加します。

Parameters:

パラメータ説明
アクティブ化boolean追加されたページをアクティブとして選択するかどうかを示すフラグ。

Returns: XpsPage - Added page.

addPage(XpsPage page)

public XpsPage addPage(XpsPage page)

ページをドキュメントに追加し、追加されたページをアクティブに選択します。

Parameters:

パラメータ説明
pageXpsPage追加されるページ。

Returns: XpsPage - Added page.

addPage(XpsPage page, boolean activate)

public XpsPage addPage(XpsPage page, boolean activate)

ページをドキュメントに追加します。

Parameters:

パラメータ説明
pageXpsPage追加されるページ。
アクティブ化boolean追加されたページをアクティブとして選択するかどうかを示すフラグ。

Returns: XpsPage - Added page.

addPage(float width, float height)

public XpsPage addPage(float width, float height)

指定された width と height を持つ空のページをドキュメントに追加します。

Parameters:

パラメータ説明
widthfloat新しいページの幅。
heightfloat新しいページの高さ。

Returns: XpsPage - Added page.

addPage(float width, float height, boolean activate)

public XpsPage addPage(float width, float height, boolean activate)

指定された width と height を持つ空のページをドキュメントに追加します。

Parameters:

パラメータ説明
widthfloat新しいページの幅。
heightfloat新しいページの高さ。
アクティブ化boolean追加されたページをアクティブとして選択するかどうかを示すフラグ。

Returns: XpsPage - Added page.

addPath(XpsPathGeometry data)

public XpsPath addPath(XpsPathGeometry data)

アクティブなページに新しいパスを追加します。

Parameters:

パラメータ説明
dataXpsPathGeometryパスのジオメトリ。

Returns: XpsPath - Added path.

close()

public void close()

インスタンスを破棄します。

createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection)

public XpsArcSegment createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection)

新しいストロークされた楕円弧セグメントを作成します。

Parameters:

パラメータ説明
ポイントjava.awt.geom.Point2D楕円弧の終点。
sizejava.awt.geom.Dimension2D楕円弧の x と y の半径(x,y のペア)。
rotationAnglefloat楕円が現在の座標系に対してどのように回転しているかを示します。
isLargeArcboolean弧が 180 度以上のスイープで描画されるかどうかを決定します。
sweepDirectionXpsSweepDirection弧が描画される方向。

Returns: XpsArcSegment - New elliptical arc segment.

createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection, boolean isStroked)

public XpsArcSegment createArcSegment(Point2D point, Dimension2D size, float rotationAngle, boolean isLargeArc, XpsSweepDirection sweepDirection, boolean isStroked)

新しい楕円弧セグメントを作成します。

Parameters:

パラメータ説明
ポイントjava.awt.geom.Point2D楕円弧の終点。
sizejava.awt.geom.Dimension2D楕円弧の x と y の半径(x,y のペア)。
rotationAnglefloat楕円が現在の座標系に対してどのように回転しているかを示します。
isLargeArcboolean弧が 180 度以上のスイープで描画されるかどうかを決定します。
sweepDirectionXpsSweepDirection弧が描画される方向。
isStrokedbooleanパスのこのセグメントのストロークが描画されるかどうかを指定します。

Returns: XpsArcSegment - New elliptical arc segment.

createCanvas()

public XpsCanvas createCanvas()

新しいキャンバスを作成します。

Returns: XpsCanvas - New canvas.

createColor(XpsIccProfile iccProfile, float[] components)

public XpsColor createColor(XpsIccProfile iccProfile, float[] components)

ICCベースのカラースペースで新しい色を作成します。

Parameters:

パラメータ説明
iccProfileXpsIccProfileICC プロファイルリソース。
componentsfloat[]色コンポーネント。

Returns: XpsColor - New color.

createColor(float r, float g, float b)

public XpsColor createColor(float r, float g, float b)

scRGB カラースペースで新しい色を作成します。

Parameters:

パラメータ説明
rfloat赤色コンポーネント。
gfloat緑色コンポーネント。
bfloat青色コンポーネント。

Returns: XpsColor - New color.

createColor(float a, float r, float g, float b)

public XpsColor createColor(float a, float r, float g, float b)

scRGB カラースペースで新しい色を作成します。

Parameters:

パラメータ説明
afloatアルファ色コンポーネント。
rfloat赤色コンポーネント。
gfloat緑色コンポーネント。
bfloat青色コンポーネント。

Returns: XpsColor - New color.

createColor(int r, int g, int b)

public XpsColor createColor(int r, int g, int b)

sRGB カラースペースで新しい色を作成します。

Parameters:

パラメータ説明
rint赤色コンポーネント。
gint緑色コンポーネント。
bint青色コンポーネント。

Returns: XpsColor - New color.

createColor(int a, int r, int g, int b)

public XpsColor createColor(int a, int r, int g, int b)

sRGB カラースペースで新しい色を作成します。

Parameters:

パラメータ説明
aintアルファ色コンポーネント。
rint赤色コンポーネント。
gint緑色コンポーネント。
bint青色コンポーネント。

Returns: XpsColor - New color.

createColor(Color color)

public XpsColor createColor(Color color)

新しい色を作成します。

Parameters:

パラメータ説明
colorjava.awt.ColorRGB カラー用のネイティブカラーインスタンスです。

Returns: XpsColor - New color.

createColor(String path, float[] components)

public XpsColor createColor(String path, float[] components)

ICCベースのカラースペースで新しい色を作成します。

Parameters:

パラメータ説明
pathjava.lang.StringICC プロファイルへのパスです。
componentsfloat[]色コンポーネント。

Returns: XpsColor - New color.

createFont(InputStream stream)

public XpsFont createFont(InputStream stream)

stream から新しい TrueType フォントリソースを作成します。

Parameters:

パラメータ説明
ストリームjava.io.InputStreamリソースとして使用する ICC プロファイルを含むストリーム。

Returns: XpsFont - New TrueType font resource.

createFont(String fontFamily, XpsFontStyle fontStyle)

public XpsFont createFont(String fontFamily, XpsFontStyle fontStyle)

新しい TrueType フォントリソースを作成します。

Parameters:

パラメータ説明
fontFamilyjava.lang.Stringフォントファミリー。
fontStyleXpsFontStyleフォントスタイル。組み合わせ可能な値については、 XpsFont クラス定数(ビットフラグ)を参照してください。

Returns: XpsFont - New TrueType font resource.

createGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)

public XpsGlyphs createGlyphs(XpsFont font, float fontRenderingEmSize, float originX, float originY, String unicodeString)

新しいグリフを作成します。

Parameters:

パラメータ説明
fontXpsFontフォントリソース。
fontRenderingEmSizefloatフォントサイズ。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - New glyphs.

createGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

public XpsGlyphs createGlyphs(String fontFamily, float fontRenderingEmSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

新しいグリフを作成します。

Parameters:

パラメータ説明
fontFamilyjava.lang.Stringフォントファミリー。
fontRenderingEmSizefloatフォントサイズ。
fontStyleXpsFontStyleフォントスタイル。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - New glyphs.

createGradientStop(XpsColor color, float offset)

public XpsGradientStop createGradientStop(XpsColor color, float offset)

新しいグラデーションストップを作成します。

Parameters:

パラメータ説明
colorXpsColorグラデーションストップカラーです。
オフセットfloatグラデーションのオフセットです。

Returns: XpsGradientStop - New gradient stop.

createGradientStop(Color color, float offset)

public XpsGradientStop createGradientStop(Color color, float offset)

新しいグラデーションストップを作成します。

Parameters:

パラメータ説明
colorjava.awt.Colorグラデーションストップカラーです。
オフセットfloatグラデーションのオフセットです。

Returns: XpsGradientStop - New gradient stop.

createIccProfile(InputStream stream)

public XpsIccProfile createIccProfile(InputStream stream)

stream から新しい ICC プロファイルリソースを作成します。

Parameters:

パラメータ説明
ストリームjava.io.InputStreamリソースとして使用する ICC プロファイルを含むストリーム。

Returns: XpsIccProfile - New ICC profile resource.

createIccProfile(String iccProfilePath)

public XpsIccProfile createIccProfile(String iccProfilePath)

iccProfilePath にある ICC プロファイルファイルから新しい ICC プロファイルリソースを作成します。

Parameters:

パラメータ説明
iccProfilePathjava.lang.Stringリソースとして使用する ICC プロファイルへのパス。

Returns: XpsIccProfile - New ICC profile resource.

createImage(InputStream stream)

public XpsImage createImage(InputStream stream)

stream から新しい画像リソースを作成します。

Parameters:

パラメータ説明
ストリームjava.io.InputStreamリソースとして使用する画像を含むストリーム。

Returns: XpsImage - New image resource.

createImage(String imagePath)

public XpsImage createImage(String imagePath)

imagePath にある画像ファイルから新しい画像リソースを作成します。

Parameters:

パラメータ説明
イメージパスjava.lang.Stringリソースとして使用する画像へのパス。

Returns: XpsImage - New image resource.

createImageBrush(XpsImage image, Rectangle2D viewbox, Rectangle2D viewport)

public XpsImageBrush createImageBrush(XpsImage image, Rectangle2D viewbox, Rectangle2D viewport)

新しいイメージブラシを作成します。

Parameters:

パラメータ説明
imageXpsImage画像リソースです。
ビュー ボックスjava.awt.geom.Rectangle2Dブラシのソースコンテンツの位置とサイズです。
ビューポートjava.awt.geom.Rectangle2Dプライムブラシタイルが含まれる座標空間内の領域で、(必要に応じて繰り返し)ブラシが適用される領域を埋めるために適用される領域です。

Returns: XpsImageBrush - New image brush.

createImageBrush(String imagePath, Rectangle2D viewbox, Rectangle2D viewport)

public XpsImageBrush createImageBrush(String imagePath, Rectangle2D viewbox, Rectangle2D viewport)

新しいイメージブラシを作成します。

Parameters:

パラメータ説明
イメージパスjava.lang.Stringブラシタイルとして使用する画像へのパスです。
ビュー ボックスjava.awt.geom.Rectangle2Dブラシのソースコンテンツの位置とサイズです。
ビューポートjava.awt.geom.Rectangle2Dプライムブラシタイルが含まれる座標空間内の領域で、(必要に応じて繰り返し)ブラシが適用される領域を埋めるために適用される領域です。

Returns: XpsImageBrush - New image brush.

createLinearGradientBrush(Point2D startPoint, Point2D endPoint)

public XpsLinearGradientBrush createLinearGradientBrush(Point2D startPoint, Point2D endPoint)

新しい線形グラデーションブラシを作成します。

Parameters:

パラメータ説明
開始点java.awt.geom.Point2D線形グラデーションの開始点です。
終了点java.awt.geom.Point2D線形グラデーションの終了点です。

Returns: XpsLinearGradientBrush - New linear gradient brush.

createLinearGradientBrush(List gradientStops, Point2D startPoint, Point2D endPoint)

public XpsLinearGradientBrush createLinearGradientBrush(List<XpsGradientStop> gradientStops, Point2D startPoint, Point2D endPoint)

新しい線形グラデーションブラシを作成します。

Parameters:

パラメータ説明
グラデーションストップjava.util.List<com.aspose.xps.XpsGradientStop>グラデーションストップのリストです。
開始点java.awt.geom.Point2D線形グラデーションの開始点です。
終了点java.awt.geom.Point2D線形グラデーションの終了点です。

Returns: XpsLinearGradientBrush - New linear gradient brush.

createMatrix(float m11, float m12, float m21, float m22, float m31, float m32)

public XpsMatrix createMatrix(float m11, float m12, float m21, float m22, float m31, float m32)

新しいアフィン変換行列を作成します。

Parameters:

パラメータ説明
m11float要素 11です。
m12float要素 12です。
m21float要素 21です。
m22float要素 22です。
m31float要素 31。
m32float要素 32。

Returns: XpsMatrix - New affine transformation matrix.

createPath(XpsPathGeometry data)

public XpsPath createPath(XpsPathGeometry data)

新しいパスを作成します。

Parameters:

パラメータ説明
dataXpsPathGeometryパスのジオメトリ。

Returns: XpsPath - New path.

createPathFigure(Point2D startPoint)

public XpsPathFigure createPathFigure(Point2D startPoint)

新しいオープンパス図形を作成します。

Parameters:

パラメータ説明
開始点java.awt.geom.Point2Dパス図形の最初のセグメントの開始点。

Returns: XpsPathFigure - New path figure.

createPathFigure(Point2D startPoint, boolean isClosed)

public XpsPathFigure createPathFigure(Point2D startPoint, boolean isClosed)

新しいパス図形を作成します。

Parameters:

パラメータ説明
開始点java.awt.geom.Point2Dパス図形の最初のセグメントの開始点。
isClosedbooleanパスが閉じているかどうかを指定します。true に設定すると、ストロークは “closed” と描画され、つまりパス図形の最後のセグメントの最後の点が StartPoint 属性で指定された点と接続されます。false の場合、ストロークは “open” と描画され、最後の点は開始点と接続されません。これは、ストロークを指定する Path 要素でパス図形が使用されている場合にのみ適用されます。

Returns: XpsPathFigure - New path figure.

createPathFigure(Point2D startPoint, List segments)

public XpsPathFigure createPathFigure(Point2D startPoint, List<XpsPathSegment> segments)

新しいオープンパス図形を作成します。

Parameters:

パラメータ説明
開始点java.awt.geom.Point2Dパス図形の最初のセグメントの開始点。
segmentsjava.util.List<com.aspose.xps.XpsPathSegment>パスセグメントのリスト。

Returns: XpsPathFigure - New path figure.

createPathFigure(Point2D startPoint, List segments, boolean isClosed)

public XpsPathFigure createPathFigure(Point2D startPoint, List<XpsPathSegment> segments, boolean isClosed)

新しいパス図形を作成します。

Parameters:

パラメータ説明
開始点java.awt.geom.Point2Dパス図形の最初のセグメントの開始点。
segmentsjava.util.List<com.aspose.xps.XpsPathSegment>パスセグメントのリスト。
isClosedbooleanパスが閉じているかどうかを指定します。true に設定すると、ストロークは “closed” と描画され、つまりパス図形の最後のセグメントの最後の点が StartPoint 属性で指定された点と接続されます。false の場合、ストロークは “open” と描画され、最後の点は開始点と接続されません。これは、ストロークを指定する Path 要素でパス図形が使用されている場合にのみ適用されます。

Returns: XpsPathFigure - New path figure.

createPathGeometry()

public XpsPathGeometry createPathGeometry()

新しいパスジオメトリを作成します。

Returns: XpsPathGeometry - New path geometry.

createPathGeometry(String abbreviatedGeometry)

public XpsPathGeometry createPathGeometry(String abbreviatedGeometry)

省略形で指定された新しいパスジオメトリを作成します。

Parameters:

パラメータ説明
abbreviatedGeometryjava.lang.Stringパスジオメトリの省略形。

Returns: XpsPathGeometry - New path geometry.

createPathGeometry(List pathFigures)

public XpsPathGeometry createPathGeometry(List<XpsPathFigure> pathFigures)

指定されたパス図形のリストで新しいパスジオメトリを作成します。

Parameters:

パラメータ説明
pathFiguresjava.util.List<com.aspose.xps.XpsPathFigure>パス図形のリスト。

Returns: XpsPathGeometry - New path geometry.

createPolyBezierSegment(Point2D[] points)

public XpsPolyBezierSegment createPolyBezierSegment(Point2D[] points)

ストロークされた立方ベジエ曲線の新しいセットを作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]複数のベジエセグメントの制御点。

Returns: XpsPolyBezierSegment - New cubic B?zier curves segment.

createPolyBezierSegment(Point2D[] points, boolean isStroked)

public XpsPolyBezierSegment createPolyBezierSegment(Point2D[] points, boolean isStroked)

立方ベジエ曲線の新しいセットを作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]複数のベジエセグメントの制御点。
isStrokedbooleanパスのこのセグメントのストロークが描画されるかどうかを指定します。

Returns: XpsPolyBezierSegment - New cubic B?zier curves segment.

createPolyLineSegment(Point2D[] points)

public XpsPolyLineSegment createPolyLineSegment(Point2D[] points)

任意の数の個々の頂点を含む新しいストロークされた多角形描画を作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]ポリラインセグメントを定義する複数のセグメントの座標セット。

Returns: XpsPolyLineSegment - New polygonal drawing segment.

createPolyLineSegment(Point2D[] points, boolean isStroked)

public XpsPolyLineSegment createPolyLineSegment(Point2D[] points, boolean isStroked)

任意の数の個々の頂点を含む新しい多角形描画を作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]ポリラインセグメントを定義する複数のセグメントの座標セット。
isStrokedbooleanパスのこのセグメントのストロークが描画されるかどうかを指定します。

Returns: XpsPolyLineSegment - New polygonal drawing segment.

createPolyQuadraticBezierSegment(Point2D[] points)

public XpsPolyQuadraticBezierSegment createPolyQuadraticBezierSegment(Point2D[] points)

パス図形の前の点から指定された制御点を使用して頂点のセットを通過する、ストロークされた二次ベジエ曲線の新しいセットを作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]複数の二次ベジエセグメントの制御点。

Returns: XpsPolyQuadraticBezierSegment - New quadratic B?zier curves segment.

createPolyQuadraticBezierSegment(Point2D[] points, boolean isStroked)

public XpsPolyQuadraticBezierSegment createPolyQuadraticBezierSegment(Point2D[] points, boolean isStroked)

パス図形の前の点から指定された制御点を使用して頂点のセットを通過する、二次ベジエ曲線の新しいセットを作成します。

Parameters:

パラメータ説明
pointsjava.awt.geom.Point2D[]複数の二次ベジエセグメントの制御点。
isStrokedbooleanパスのこのセグメントのストロークが描画されるかどうかを指定します。

Returns: XpsPolyQuadraticBezierSegment - New quadratic B?zier curves segment.

createRadialGradientBrush(Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)

public XpsRadialGradientBrush createRadialGradientBrush(Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)

新しい放射状グラデーションブラシを作成します。

Parameters:

パラメータ説明
centerjava.awt.geom.Point2D放射状グラデーションの中心点(すなわち楕円の中心)。
gradientOriginjava.awt.geom.Point2D放射状グラデーションの起点。
radiusXfloat放射状グラデーションを定義する楕円の x 軸方向の半径です。
radiusYfloat放射状グラデーションを定義する楕円の y 軸方向の半径です。

Returns: XpsRadialGradientBrush - New radial gradient brush.

createRadialGradientBrush(List gradientStops, Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)

public XpsRadialGradientBrush createRadialGradientBrush(List<XpsGradientStop> gradientStops, Point2D center, Point2D gradientOrigin, float radiusX, float radiusY)

新しい放射状グラデーションブラシを作成します。

Parameters:

パラメータ説明
グラデーションストップjava.util.List<com.aspose.xps.XpsGradientStop>グラデーションストップのリストです。
centerjava.awt.geom.Point2D放射状グラデーションの中心点(すなわち楕円の中心)。
gradientOriginjava.awt.geom.Point2D放射状グラデーションの起点。
radiusXfloat放射状グラデーションを定義する楕円の x 軸方向の半径です。
radiusYfloat放射状グラデーションを定義する楕円の y 軸方向の半径です。

Returns: XpsRadialGradientBrush - New radial gradient brush.

createSolidColorBrush(XpsColor color)

public XpsSolidColorBrush createSolidColorBrush(XpsColor color)

新しい単色ブラシを作成します。

Parameters:

パラメータ説明
colorXpsColor塗りつぶし要素の色です。

Returns: XpsSolidColorBrush - New solid color brush.

createSolidColorBrush(Color color)

public XpsSolidColorBrush createSolidColorBrush(Color color)

新しい単色ブラシを作成します。

Parameters:

パラメータ説明
colorjava.awt.Color塗りつぶし要素の色です。

Returns: XpsSolidColorBrush - New solid color brush.

createVisualBrush(XpsContentElement element, Rectangle2D viewbox, Rectangle2D viewport)

public XpsVisualBrush createVisualBrush(XpsContentElement element, Rectangle2D viewbox, Rectangle2D viewport)

新しいビジュアルブラシを作成します。

Parameters:

パラメータ説明
elementXpsContentElementVisual プロパティ(ビジュアルブラシ)のための XPS 要素(Canvas、Path、または Glyphs)。
ビュー ボックスjava.awt.geom.Rectangle2Dブラシのソースコンテンツの位置とサイズです。
ビューポートjava.awt.geom.Rectangle2Dプライムブラシタイルが含まれる座標空間内の領域で、(必要に応じて繰り返し)ブラシが適用される領域を埋めるために適用される領域です。

Returns: XpsVisualBrush - New visual brush.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

パラメータ説明
arg0java.lang.Object

Returns: boolean

getActiveDocument()

public int getActiveDocument()

アクティブなドキュメント番号を返します。

Returns: int - 整数値。

getActivePage()

public int getActivePage()

アクティブなドキュメント内のアクティブなページ番号を返します。

Returns: int - 整数値。

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDocumentCount()

public int getDocumentCount()

XPS パッケージ内のドキュメント数を返します。

Returns: int - XPS パッケージ内のドキュメント数。

getDocumentPrintTicket(int documentIndex)

public DocumentPrintTicket getDocumentPrintTicket(int documentIndex)

documentIndex でインデックスされたドキュメントの印刷チケットを取得します。

Parameters:

パラメータ説明
documentIndexint返却する印刷チケットを持つドキュメントのインデックス。

Returns: DocumentPrintTicket - Document’s print ticket.

getJobPrintTicket()

public JobPrintTicket getJobPrintTicket()

ドキュメントのジョブ印刷チケットを返します。

Returns: JobPrintTicket - The document’s job print ticket.

getPage()

public XpsPage getPage()

アクティブなページの XpsPage インスタンスを返します。

Returns: XpsPage - The XpsPage instance for active page.

getPageCount()

public int getPageCount()

アクティブなドキュメントのページ数を返します。

Returns: int - アクティブなドキュメントのページ数です。

getPagePrintTicket(int documentIndex, int pageIndex)

public PagePrintTicket getPagePrintTicket(int documentIndex, int pageIndex)

documentIndex でインデックスされたドキュメント内の pageIndex でインデックスされたページの印刷チケットを取得します。

Parameters:

パラメータ説明
documentIndexintドキュメントのインデックス。
pageIndexint返却する印刷チケットを持つページのインデックス。

Returns: PagePrintTicket - Page’s print ticket.

getTotalPageCount()

public int getTotalPageCount()

XPS ドキュメント内のすべてのドキュメントの総ページ数を返します。

Returns: int - XPS ドキュメント内のすべてのドキュメントの総ページ数です。

getUtils()

public DocumentUtils getUtils()

正式な XPS 操作 API を超えるユーティリティを提供するオブジェクトを取得します。

Returns: DocumentUtils - The utilities object.

hashCode()

public native int hashCode()

Returns: int

insertCanvas(int index)

public XpsCanvas insertCanvas(int index)

index の位置にアクティブなページへ新しいキャンバスを挿入します。

Parameters:

パラメータ説明
インデックスint新しい Canvas を挿入すべき位置です。

Returns: XpsCanvas - Inserted canvas.

insertDocument(int index)

public void insertDocument(int index)

index の位置にデフォルトのページサイズの空のドキュメントを挿入し、挿入されたドキュメントをアクティブに選択します。

Parameters:

パラメータ説明
インデックスintドキュメントを挿入すべき位置。

insertDocument(int index, boolean activate)

public void insertDocument(int index, boolean activate)

index の位置にデフォルトのページサイズの空のドキュメントを挿入します。

Parameters:

パラメータ説明
インデックスintドキュメントを挿入すべき位置。
アクティブ化boolean挿入されたドキュメントをアクティブとして選択するかどうかを示すフラグ。

insertDocument(int index, float width, float height)

public void insertDocument(int index, float width, float height)

index の位置に最初のページの width と height を持つ空のドキュメントを挿入し、挿入されたドキュメントをアクティブに選択します。

Parameters:

パラメータ説明
インデックスintドキュメントを挿入すべき位置。
widthfloat最初のページの幅。
heightfloat最初のページの高さ。

insertDocument(int index, float width, float height, boolean activate)

public void insertDocument(int index, float width, float height, boolean activate)

インデックス 位置 に、width と height の最初のページ寸法を持つ空のドキュメントを挿入します。

Parameters:

パラメータ説明
インデックスintドキュメントを挿入すべき位置。
widthfloat最初のページの幅。
heightfloat最初のページの高さ。
アクティブ化boolean挿入されたドキュメントをアクティブとして選択するかどうかを示すフラグ。

insertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, String unicodeString)

public XpsGlyphs insertGlyphs(int index, XpsFont font, float fontSize, float originX, float originY, String unicodeString)

インデックス 位置 にアクティブページへ新しいグリフを挿入します。

Parameters:

パラメータ説明
インデックスint新しい Glyphs を挿入すべき位置です。
fontXpsFontフォントリソース。
fontSizefloatフォントサイズ。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - Inserted glyphs.

insertGlyphs(int index, String fontFamily, float fontSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

public XpsGlyphs insertGlyphs(int index, String fontFamily, float fontSize, XpsFontStyle fontStyle, float originX, float originY, String unicodeString)

インデックス 位置 にアクティブページへ新しいグリフを挿入します。

Parameters:

パラメータ説明
インデックスint新しい Glyphs を挿入すべき位置です。
fontFamilyjava.lang.Stringフォントファミリー。
fontSizefloatフォントサイズ。
fontStyleXpsFontStyleフォントスタイル。
originXfloatグリフの原点 X 座標。
originYfloatグリフの原点 Y 座標。
unicodeStringjava.lang.String印刷される文字列。

Returns: XpsGlyphs - Inserted glyphs.

insertPage(int index)

public XpsPage insertPage(int index)

インデックス 位置 にデフォルトページサイズの空ページをドキュメントに挿入し、挿入されたページをアクティブに選択します。

Parameters:

パラメータ説明
インデックスintページを挿入すべき位置。

Returns: XpsPage - Inserted page.

insertPage(int index, boolean activate)

public XpsPage insertPage(int index, boolean activate)

インデックス 位置 にデフォルトページサイズの空ページをドキュメントに挿入します。

Parameters:

パラメータ説明
インデックスintページを挿入すべき位置。
アクティブ化boolean挿入されたページをアクティブとして選択するかどうかを示すフラグ。

Returns: XpsPage - Inserted page.

insertPage(int index, XpsPage page)

public XpsPage insertPage(int index, XpsPage page)

インデックス 位置 にページをドキュメントに挿入し、挿入されたページをアクティブに選択します。

Parameters:

パラメータ説明
インデックスintページを追加すべき位置。
pageXpsPage挿入するページ。

Returns: XpsPage - Inserted page.

insertPage(int index, XpsPage page, boolean activate)

public XpsPage insertPage(int index, XpsPage page, boolean activate)

インデックス 位置 にページをドキュメントに挿入します。

Parameters:

パラメータ説明
インデックスintページを追加すべき位置。
pageXpsPage挿入するページ。
アクティブ化boolean挿入されたページをアクティブとして選択するかどうかを示すフラグ。

Returns: XpsPage - Inserted page.

insertPage(int index, float width, float height)

public XpsPage insertPage(int index, float width, float height)

インデックス 位置 に指定された width と height の空ページをドキュメントに挿入し、挿入されたページをアクティブに選択します。

Parameters:

パラメータ説明
インデックスintページを挿入すべき位置。
widthfloat新しいページの幅。
heightfloat新しいページの高さ。

Returns: XpsPage - Inserted page.

insertPage(int index, float width, float height, boolean activate)

public XpsPage insertPage(int index, float width, float height, boolean activate)

インデックス 位置 に指定された width と height の空ページをドキュメントに挿入します。

Parameters:

パラメータ説明
インデックスintページを挿入すべき位置。
widthfloat新しいページの幅。
heightfloat新しいページの高さ。
アクティブ化boolean挿入されたページをアクティブとして選択するかどうかを示すフラグ。

Returns: XpsPage - Inserted page.

insertPath(int index, XpsPathGeometry data)

public XpsPath insertPath(int index, XpsPathGeometry data)

インデックス 位置 にアクティブページへ新しいパスを挿入します。

Parameters:

パラメータ説明
インデックスint新しい Path を挿入すべき位置です。
dataXpsPathGeometryパスのジオメトリ。

Returns: XpsPath - Inserted path.

isLicensed()

public boolean isLicensed()

Aspose.Page for Java 製品ライセンスがアクセスされ、有効かどうかを示します。

Returns: boolean - 真偽値

merge(String[] filesForMerge, OutputStream outStream)

public void merge(String[] filesForMerge, OutputStream outStream)

複数の XPS ファイルを 1 つの XPS ドキュメントに結合します。

Parameters:

パラメータ説明
filesForMergejava.lang.String[]このドキュメントとマージする XPS ファイル。
outStreamjava.io.OutputStreamマージされた XPS ドキュメントを保存する出力ストリーム。

merge(String[] filesForMerge, String outXpsFilePath)

public void merge(String[] filesForMerge, String outXpsFilePath)

複数の XPS ファイルを 1 つの XPS ドキュメントに結合します。

Parameters:

パラメータ説明
filesForMergejava.lang.String[]このドキュメントとマージする XPS ファイル。
outXpsFilePathjava.lang.String出力 XPS ファイルのパス。

mergeToPdf(String outPdfFilePath, String[] filesForMerge, PdfSaveOptions options)

public void mergeToPdf(String outPdfFilePath, String[] filesForMerge, PdfSaveOptions options)

Device インスタンスを使用して XPS ドキュメントを PDF に結合します。

Parameters:

パラメータ説明
outPdfFilePathjava.lang.String出力 PDF ファイルのパス。
filesForMergejava.lang.String[]このドキュメントを出力デバイスにマージするための XPS ファイル。
optionsPdfSaveOptionsドキュメント保存オプション。

mergeToPdf(String[] filesForMerge, OutputStream pdfStream, PdfSaveOptions options)

public void mergeToPdf(String[] filesForMerge, OutputStream pdfStream, PdfSaveOptions options)

Device インスタンスを使用して XPS ドキュメントを PDF に結合します。

Parameters:

パラメータ説明
filesForMergejava.lang.String[]このドキュメントを出力デバイスにマージするための XPS ファイル。
pdfStreamjava.io.OutputStream結果の PDF を書き込む出力ストリーム。
optionsPdfSaveOptionsドキュメント保存オプション。

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

removeAt(int index)

public XpsContentElement removeAt(int index)

インデックス 位置 からアクティブページの要素を削除します。

Parameters:

パラメータ説明
インデックスint要素を削除すべき位置です。

Returns: XpsContentElement - Removed element.

removeDocumentAt(int index)

public void removeDocumentAt(int index)

インデックス 位置 のドキュメントを削除します。

Parameters:

パラメータ説明
インデックスintドキュメントを削除すべき位置。

removePage(XpsPage page)

public XpsPage removePage(XpsPage page)

ドキュメントからページを削除します。

Parameters:

パラメータ説明
pageXpsPage削除するページ。

Returns: XpsPage - Removed page.

removePageAt(int index)

public XpsPage removePageAt(int index)

インデックス 位置 のドキュメントからページを削除します。

Parameters:

パラメータ説明
インデックスintページを削除すべき位置。

Returns: XpsPage - Removed page.

save(Device device, SaveOptions options)

public void save(Device device, SaveOptions options)

Device インスタンスを使用してドキュメントを保存します。

Parameters:

パラメータ説明
deviceDeviceDevice のインスタンス。
optionsSaveOptionsドキュメント保存オプション。

save(OutputStream stream)

public void save(OutputStream stream)

XPS ドキュメントをストリームに保存します。

Parameters:

パラメータ説明
ストリームjava.io.OutputStream保存先となる XPS ドキュメントのストリーム。

save(String path)

public void save(String path)

path にある XPS ファイルに XPS ドキュメントを保存します。

Parameters:

パラメータ説明
pathjava.lang.Stringドキュメントの場所。

saveAsImage(ImageSaveOptions options)

public void saveAsImage(ImageSaveOptions options)

ドキュメントを画像ファイルに保存します。出力ディレクトリとファイル名は入力 XPS ファイルと同じになります。ファイル拡張子は “options” パラメーターの画像形式に対応します。ドキュメントが FileInputStream 以外のストリームで初期化されている場合、画像ファイルはデフォルトのファイル名テンプレートで現在のフォルダーに保存されます。

Parameters:

パラメータ説明
optionsImageSaveOptionsビットマップ画像形式でドキュメントを保存するためのオプション。

saveAsImage(ImageSaveOptions options, String outDir, String fileNameTemplate)

public void saveAsImage(ImageSaveOptions options, String outDir, String fileNameTemplate)

指定されたディレクトリとファイル名でドキュメントを画像ファイルに保存します。ファイル拡張子は “options” パラメーターの画像形式に対応します。

Parameters:

パラメータ説明
optionsImageSaveOptionsビットマップ画像形式でドキュメントを保存するためのオプション。
outDirjava.lang.String画像ファイルが保存される出力ディレクトリ。
fileNameTemplatejava.lang.String画像のファイル名テンプレート(拡張子なし)。入力 XPS ファイルが 1 ページの場合は正確にそのファイル名になります。それ以外の場合は “_[n]” となり、“n” は 1 から始まるページ番号です。この後にサフィックスが付加されます。ファイル拡張子は “option” パラメーターの画像形式に対応します。

saveAsImageBytes(ImageSaveOptions options)

public byte[][][] saveAsImageBytes(ImageSaveOptions options)

ドキュメントをビットマップ画像形式でバイト配列として保存します。

Parameters:

パラメータ説明
optionsImageSaveOptionsビットマップ画像形式でドキュメントを保存するためのオプション。

Returns: byte[][][] - 結果として得られる画像のバイト配列。第1次元は内部ドキュメント用、第2次元は内部ドキュメント内のページ用です。

saveAsPdf(OutputStream stream, PdfSaveOptions options)

public void saveAsPdf(OutputStream stream, PdfSaveOptions options)

ドキュメントを PDF 形式で保存します。

Parameters:

パラメータ説明
ストリームjava.io.OutputStream出力 PDF ファイルを書き込むストリーム。
optionsPdfSaveOptionsPDF 形式でドキュメントを保存するためのオプション。

saveAsPdf(String outPdfFilePath, PdfSaveOptions options)

public void saveAsPdf(String outPdfFilePath, PdfSaveOptions options)

ドキュメントを PDF 形式で保存します。

Parameters:

パラメータ説明
outPdfFilePathjava.lang.String出力 PDF ファイルのパス。
optionsPdfSaveOptionsPDF 形式でドキュメントを保存するためのオプション。

saveAsPs(OutputStream stream, PsSaveOptions options)

public void saveAsPs(OutputStream stream, PsSaveOptions options)

ドキュメントを PS 形式で保存します。

Parameters:

パラメータ説明
ストリームjava.io.OutputStream出力 PS ファイルを書き込むストリーム。
optionsPsSaveOptionsPS 形式でドキュメントを保存するためのオプション。

saveAsPs(String outPsFilePath, PsSaveOptions options)

public void saveAsPs(String outPsFilePath, PsSaveOptions options)

ドキュメントを PostSscript 形式で保存します。

Parameters:

パラメータ説明
outPsFilePathjava.lang.String出力 PostScript ファイルのパス。
optionsPsSaveOptionsPDF 形式でドキュメントを保存するためのオプション。

selectActiveDocument(int documentNumber)

public void selectActiveDocument(int documentNumber)

編集用にアクティブなドキュメントを選択します。

Parameters:

パラメータ説明
documentNumberintドキュメント番号。

selectActivePage(int pageNumber)

public XpsPage selectActivePage(int pageNumber)

編集用にアクティブなドキュメントページを選択します。

Parameters:

パラメータ説明
pageNumberintページ番号。

Returns: XpsPage - XpsPage instance for active page.

setDocumentPrintTicket(int documentIndex, DocumentPrintTicket printTicket)

public void setDocumentPrintTicket(int documentIndex, DocumentPrintTicket printTicket)

printTicket を documentIndex でインデックス付けされたドキュメントにリンクします。

Parameters:

パラメータ説明
documentIndexint印刷チケットをリンクするドキュメントのインデックス。
printTicketDocumentPrintTicketリンクする印刷チケット。

setJobPrintTicket(JobPrintTicket value)

public void setJobPrintTicket(JobPrintTicket value)

ドキュメントのジョブ印刷チケットを設定します。

Parameters:

パラメータ説明
valueJobPrintTicketドキュメントのジョブ印刷チケット。

setPagePrintTicket(int documentIndex, int pageIndex, PagePrintTicket printTicket)

public void setPagePrintTicket(int documentIndex, int pageIndex, PagePrintTicket printTicket)

printTicket を documentIndex でインデックス付けされたドキュメント内の pageIndex でインデックス付けされたページにリンクします。

Parameters:

パラメータ説明
documentIndexintドキュメントのインデックス。
pageIndexint印刷チケットをリンクするページのインデックス。
printTicketPagePrintTicketリンクする印刷チケット。

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

パラメータ説明
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

パラメータ説明
arg0long
arg1int