public class LayoutService extends Object
| Constructor and Description |
|---|
LayoutService(RestClient restClient,
String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyLayout(PackageId packageId,
String documentId,
String layoutId)
Apply a document layout to a document in a DocumentPackage.
|
void |
applyLayoutByName(PackageId packageId,
String documentId,
String layoutName)
Apply a document layout to a document in a DocumentPackage.
|
DocumentPackage |
createAndGetLayout(DocumentPackage layout)
Create and get a layout from an already created DocumentPackage.
|
String |
createLayout(DocumentPackage layout)
Create a document layout from an already created DocumentPackage.
|
List<DocumentPackage> |
getLayouts(Direction direction,
PageRequest request)
Get a list of layouts (DocumentPackages).
|
public LayoutService(RestClient restClient, String baseUrl)
public String createLayout(DocumentPackage layout)
layout - the DocumentPackage with one document from which to create layout.public DocumentPackage createAndGetLayout(DocumentPackage layout)
layout - the DocumentPackage with one document from which to create layout.public List<DocumentPackage> getLayouts(Direction direction, PageRequest request)
direction - of retrieved list to be sorted in ascending or descending order by name.request - Identifying which page of results to return.public void applyLayout(PackageId packageId, String documentId, String layoutId)
packageId - The package id of the DocumentPackage to apply layout.documentId - The document id of the document to apply layout.layoutId - The layout id of the layout to apply.public void applyLayoutByName(PackageId packageId, String documentId, String layoutName)
packageId - The package id of the DocumentPackage to apply layout.documentId - The document id of the document to apply layout.layoutName - The layout name of the layout to apply.Copyright 2022 OneSpan All rights reserved.