|
Imports an XPS or OXPS Document. By default, the entire XPS
document is imported.
An exception will be thrown if the operation is not possible.
This may happen if the XPS document is corrupt.
You may notice that colors in the PDF files are slightly
different. PDF handles alpha blending differently from other file
formats. Refer to SwfImportOperation.Import
for notes about alpha blending.
- This method generates events as
follows:
- After the StartPart FixedDocumentSequence is opened, a ProcessingObject
event of ProcessingSourceType.Document is generated.
| Name
|
Description
|
| ProcessingObjectEventArgs.Cancel |
See ProcessingObjectEventArgs.Info.DocNumber below. |
| ProcessingObjectEventArgs.Info.Handled
|
Ignored. |
| ProcessingObjectEventArgs.Info.SourceType
|
ProcessingSourceType.Document |
| ProcessingObjectEventArgs.Info.DocCount
|
The number of FixedDocument's in the
FixedDocumentSequence. |
| ProcessingObjectEventArgs.Info.DocNumber
|
The one-based document number of the FixedDocument to be
processed. The value of this property for the first of such events
for each FixedDocumentSequence is one unless DocCount is
zero. Subsequent value is the value returned by the event handler
for the previous such event plus one if the new value is between 1
and DocCount
inclusively. Otherwise, it is null. The event handler may change
this value between 1 and DocCount
inclusively. Set it to null to end the processing of all
FixedDocument's in the FixedDocumentSequence. If it is null, the
corresponding ProcessedObject
event is not generated. Otherwise, if
ProcessingObjectEventArgs.Cancel is set to true, the corresponding
ProcessedObject
event is not generated, and the same event is immediately generated
again with this value incremented subject to mentioned bounds. |
- After a previous ProcessingObject
event of ProcessingSourceType.Document returns a proper DocNumber
and the FixedDocument is opened, a ProcessingObject
event of ProcessingSourceType.Page is generated.
- After a previous ProcessingObject
event of ProcessingSourceType.Page returns a proper PageNumber
and the FixedPage is opened, a ProcessingObject
event of ProcessingSourceType.PageContent is generated.
- While processing page content, a ProcessingObject
event of ProcessingSourceType.Image is generated when an image is
imported.
Unless stated otherwise, a ProcessedObject
event corresponding to each ProcessingObject
event is generated with an object as follows:
Imported images are not compressed. You may wish to analyse and
compress these PixMap objects
by pre and post processing them during the ProcessingObject
and ProcessedObject
events.
|
|
|