使用Rest API使用Kofax检索文件-获取文件路径,下载文件并

时间:2019-12-13 14:47:41

标签: rest kofax

我尝试使用Kofax TotalAgility检索已扫描并转换为PDF的文件。我的目标是在文档上签名并更新以前的文件。
不幸的是,在KTA中找到有关Rest API的可靠文档非常奇怪。

我尝试使用“ GetDocument”方法:

http://localhost/TotalAgility/Services/SDK/CaptureDocumentService.svc/json/GetDocument

它工作得很好,但是我无法获取文件路径或对其进行检索。我获得此json作为return:

{
    "d": {
        "__type": "Document:http://www.kofax.com/agility/services/sdk",
        "ErrorDescription": "",
        "Id": "c12ebf8e-b756-4c55-a0e6-ab2200f16990",
        "Name": "PDF",
        "ParentId": "a8fab12a-c5bd-498d-a457-ab2200f15d94",
        "ReviewForceValid": false,
        "ReviewValid": true,
        "TypeXml": null,
        "Valid": true,
        "Verified": true,
        "Fields": [
            {
                "__type": "RuntimeFieldData:http://www.kofax.com/agility/services/sdk",
                "Id": "170071B90DBA4FDC9A4A788A3492138F",
                ...
            }
            ...
         ],
        "NumKeyStrokes": 0,
        "OnlineLearningComments": null,
        "OnlineLearningOptions": 0,
        "Pages": [
            {
                "__type": "Page:http://www.kofax.com/agility/services/sdk",
                "Id": "35bf321e-20f0-46df-be3e-ab2200f269d1",
                "Annotations": null,
                "Barcodes": null,
                "FileName": null,
                "Front": true,
                "HorizontalResolution": 300,
                "ImageId": "1d326054-9c89-41b9-987d-ab2200f269a2",
                "ImprintedText": null,
                "MimeType": "image/tiff",
                "Rejected": false,
                "RejectionNote": null,
                "RotationType": -1,
                "SheetId": null,
                "Size": {
                    "__type": "Size:#System.Drawing",
                    "height": 3504,
                    "width": 2479
                },
                "VerticalResolution": 300,
                "VirtualReScanProcessed": true,
                "Words": [
                    {
                        "__type": "Word:http://www.kofax.com/agility/services/sdk",
                        "LineIndex": 0,
                        "RightToLeft": false,
                        "Text": "Merci",
                        "Height": 24,
                        "Left": 1691,
                        "Top": 124,
                        "Width": 95,
                        "IndexInTextLine": 0,
                        "PageIndex": 0,
                        "Confidence": 0
                    }
                    ...
                ]
            }
        ],
        "ReadOnly": false,
        "Rejected": false,
        "RejectionReason": null,
        "TotalTime": 0,
        "DocumentType": {
            "__type": "DocumentTypeSummary:http://www.kofax.com/agility/services/sdk",
            "Identity": {
                "__type": "DocumentTypeIdentity:http://www.kofax.com/agility/services/sdk",
                "Id": "0D2EDF9CABB044D2BE23474EA226E24E",
                "Version": 5,
                "Name": "PDF"
            },
            "ClassificationGroup": null
        },
        "MimeType": "application/pdf",
        "FileName": "FA150105647.pdf",
        "VariantIdentity": null,
        "NumberOfPages": 1,
        "CreatedAt": "/Date(1576244337000+0100)/"
    }
}

我也尝试了GetDocumentFieldsProperties,但是结果不是我期望的。

0 个答案:

没有答案