XpsConverter

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.page.plugins.IPlugin

public class XpsConverter implements IPlugin

XpsConverter प्लगइन का प्रतिनिधित्व करता है।

यह उदाहरण दिखाता है कि XPS दस्तावेज़ को PDF दस्तावेज़ में कैसे परिवर्तित किया जाए।

// create XpsConverter XpsConverter converter = new XpsConverter(); // create XpsConverterToPdfOptions object to set output data type as file XpsConverterToPdfOptions opt = new XpsConverterToPdfOptions(); // add input file path opt.addDataSource(new FileDataSource(inputPath)); // set output file path opt.addSaveDataSource(new FileDataSource(outputPath)); // launch conversion process ResultContainer results = converter.process(opt);

यह उदाहरण दिखाता है कि XPS दस्तावेज़ को फ़ाइल आउटपुट के साथ छवि में कैसे परिवर्तित किया जाए।

// create XpsConverter XpsConverter converter = new XpsConverter(); // create XpsConverterToImageOptions with JPEG target image format. The default image format for resulting image is PNG. // Also we can set a size of the resulting image, a resolution, a smoothing mode and JPEG quality level for JPEG resulting image format. XpsConverterToImageOptions opt = new XpsConverterToImageOptions(ImageFormat.Jpeg); // add input file path opt.addDataSource(new FileDataSource(inputPath)); // if input XPS file is multipaged the results will be a set of image files with name: ["outputPath" without extension][pageNumber started from 0].[extension from "outputPath"] opt.addSaveDataSource(new FileDataSource(outputPath)); // launch conversion process converter.process(opt);

यह उदाहरण दिखाता है कि XPS दस्तावेज़ को बाइट एरे आउटपुट के साथ छवि में कैसे परिवर्तित किया जाए।

बाइट एरे आउटपुट डेटा स्रोत (byte [][]) में प्रत्येक बाइट एरे एक पृष्ठ की छवि रखता है। इसलिए, एक-पृष्ठीय दस्तावेज़ों के लिए परिणाम में [1][] एरे होगा, जबकि बहु-पृष्ठीय दस्तावेज़ों के लिए परिणाम में [इनपुट XPS दस्तावेज़ में पृष्ठों की संख्या][] एरे होगा। // create XpsConverter XpsConverter converter = new XpsConverter(); // create XpsConverterToImageOptions with JPEG target image format. The default image format for resulting image is PNG. // Also we can set a size of the resulting image, a resolution, a smoothing mode and JPEG quality level for JPEG resulting image format. XpsConverterToImageOptions opt = new XpsConverterToImageOptions(ImageFormat.Jpeg); // add input file path opt.addDataSource(new FileDataSource(inputPath)); // if input XPS file is multipaged the results will be a set of image files with name: ["outputPath" without extension][pageNumber started from 1].[extension from "outputPath"] opt.addSaveDataSource(new ByteArrayDataSource()); // launch conversion process converter.process(opt); // get resulting bytes arrays byte[][] imagesBytes = (byte [][]) ((ByteArrayResult)results.ResultCollection[0]).Data;

कंस्ट्रक्टर्स

कंस्ट्रक्टरविवरण
XpsConverter()

मेथड्स

मेथडविवरण
dispose()IDisposable का कार्यान्वयन।
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
process(IPluginOptions options)निर्दिष्ट पैरामीटरों के साथ XpsConverter प्रोसेसिंग शुरू करता है।
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

XpsConverter()

public XpsConverter()

dispose()

public final void dispose()

IDisposable का कार्यान्वयन।

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

पैरामीटरप्रकारविवरण
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

process(IPluginOptions options)

public final ResultContainer process(IPluginOptions options)

निर्दिष्ट पैरामीटरों के साथ XpsConverter प्रोसेसिंग शुरू करता है।

Parameters:

पैरामीटरप्रकारविवरण
optionsIPluginOptionsXpsConverter के लिए निर्देशों वाला एक विकल्प वस्तु।

Returns: ResultContainer - An ResultContainer object containing the result of the operation.

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