activities
latest
false
- Overview
- Document Processing Contracts
- Release notes
- About the Document Processing Contracts
- Box Class
- IPersistedActivity interface
- PrettyBoxConverter Class
- IClassifierActivity Interface
- IClassifierCapabilitiesProvider Interface
- ClassifierDocumentType Class
- ClassifierResult Class
- ClassifierCodeActivity Class
- ClassifierNativeActivity Class
- ClassifierAsyncCodeActivity Class
- ClassifierDocumentTypeCapability Class
- ExtractorAsyncCodeActivity Class
- ExtractorCodeActivity Class
- ExtractorDocumentType Class
- ExtractorDocumentTypeCapabilities Class
- ExtractorFieldCapability Class
- ExtractorNativeActivity Class
- ExtractorResult Class
- ICapabilitiesProvider Interface
- IExtractorActivity Interface
- ExtractorPayload Class
- DocumentActionPriority Enum
- DocumentActionData Class
- DocumentActionStatus Enum
- DocumentActionType Enum
- DocumentClassificationActionData Class
- DocumentValidationActionData Class
- UserData Class
- Document Class
- DocumentSplittingResult Class
- DomExtensions Class
- Page Class
- PageSection Class
- Polygon Class
- PolygonConverter Class
- Metadata Class
- WordGroup Class
- Word Class
- ProcessingSource Enum
- ResultsTableCell Class
- ResultsTableValue Class
- ResultsTableColumnInfo Class
- ResultsTable Class
- Rotation Enum
- SectionType Enum
- WordGroupType Enum
- IDocumentTextProjection Interface
- ClassificationResult Class
- ExtractionResult Class
- ResultsDocument Class
- ResultsDocumentBounds Class
- ResultsDataPoint Class
- ResultsValue Class
- ResultsContentReference Class
- ResultsValueTokens Class
- ResultsDerivedField Class
- ResultsDataSource Enum
- ResultConstants Class
- SimpleFieldValue Class
- TableFieldValue Class
- DocumentGroup Class
- DocumentTaxonomy Class
- DocumentType Class
- Field Class
- FieldType Enum
- LanguageInfo Class
- MetadataEntry Class
- TextType Enum
- TypeField Class
- ITrackingActivity Interface
- ITrainableActivity Interface
- ITrainableClassifierActivity Interface
- ITrainableExtractorActivity Interface
- TrainableClassifierAsyncCodeActivity Class
- TrainableClassifierCodeActivity Class
- TrainableClassifierNativeActivity Class
- TrainableExtractorAsyncCodeActivity Class
- TrainableExtractorCodeActivity Class
- TrainableExtractorNativeActivity Class
- Document Understanding Digitizer
- Document Understanding ML
- Document Understanding OCR Local Server
- Document Understanding
- Release notes
- About the Document Understanding activity package
- Project compatibility
- Set PDF Password
- Merge PDFs
- Get PDF Page Count
- Extract PDF Text
- Extract PDF Images
- Extract PDF Page Range
- Extract Document Data
- Create Validation Task and Wait
- Wait for Validation Task and Resume
- Create Validation Task
- Classify Document
- Create Classification Validation Task
- Create Classification Validation Task and Wait
- Wait for Classification Validation Task and Resume
- Intelligent OCR
- Release notes
- About the IntelligentOCR activity package
- Project compatibility
- Configuring Authentication
- Load Taxonomy
- Digitize Document
- Classify Document Scope
- Keyword Based Classifier
- Document Understanding Project Classifier
- Intelligent Keyword Classifier
- Create Document Classification Action
- Wait For Document Classification Action And Resume
- Train Classifiers Scope
- Keyword Based Classifier Trainer
- Intelligent Keyword Classifier Trainer
- Data Extraction Scope
- Document Understanding Project Extractor
- RegEx Based Extractor
- Form Extractor
- Intelligent Form Extractor
- Present Validation Station
- Create Document Validation Action
- Wait For Document Validation Action And Resume
- Train Extractors Scope
- Export Extraction Results
- ML Services
- OCR
- OCR Contracts
- Release notes
- About the OCR Contracts
- Project compatibility
- IOCRActivity Interface
- OCRAsyncCodeActivity Class
- OCRCodeActivity Class
- OCRNativeActivity Class
- Character Class
- OCRResult Class
- Word Class
- FontStyles Enum
- OCRRotation Enum
- OCRCapabilities Class
- OCRScrapeBase Class
- OCRScrapeFactory Class
- ScrapeControlBase Class
- ScrapeEngineUsages Enum
- ScrapeEngineBase
- ScrapeEngineFactory Class
- ScrapeEngineProvider Class
- OmniPage
- PDF
- [Unlisted] Abbyy
- [Unlisted] Abbyy Embedded
Read XPS files
Document Understanding Activities
Last updated Nov 21, 2024
Read XPS files
The example after explains how to read an
.xps
file, extract the data, and
provide the output in two message boxes by using Read XPS Text or Read XPS With OCR activities. You can find
these activities in the UiPath.PDF.Activities package.
Steps
- Open Studio and create a new Process.
- Drag a Sequence container in the
Workflow Designer.
- Create the variables from the following table:
Table 1. Variables to be created Variable Type
Default Value
ExactString
String
N/A ExtractWithOCRString
String
N/A Note: Add your.xps
files to the project directory in order to be able to run the entire process from the same place.
- Create the variables from the following table:
- Drag a Read XPS Text activity inside the
Sequence container.
- In the Properties panel, add the
expression
"XPSTextDemo.xps"
in the FileName field. - Add the value
"All"
in the Range field. - Add the variable
ExactString
in the Text field.
- In the Properties panel, add the
expression
- Place a Message Box activity after the
Read XPS Text activity.
- In the Properties panel, select the Ok option from the Buttons dropdown list.
- Add the variable
ExactString
in the Text field. - Select the check box for the TopMost option for always having the message box displayed to the foreground.
- Drag a Read XPS with OCR activity after
the Message Box activity.
- In the Properties panel, add the
expression
"XPSOCRDemo.xps"
in the FileName field. - Add the value
1
in the DegreeOfParallelism field. - Add the value
"1"
in the Range field. - Add the variable
ExtractWithOCRString
in the Text field.
- In the Properties panel, add the
expression
- Place a Microsoft OCR engine inside the Read XPS with OCR activity.
- Drag a Message Box activity after the
Read XPS with OCR activity.
- Add the expression
ExtractWithOCRString
in the Text field. - In the Properties panel, select the Ok option from the Buttons drop-down list.
- Select the check box for the TopMost option for always having the message box displayed to the foreground.
- Add the expression
- Run the process. The robot extracts the data using the specified process and provides the output in two message boxes.
Visit the following link to download the example in a
ZIP
format: Example.