Search Results for

    Show / Hide Table of Contents

    Method InsertValuesIntoDocument

    InsertValuesIntoDocument(String, Byte[], String, List<ListItemContract>)

    Insert values into a file (PDF, DOCX, PPTX, XLSX)

    Declaration
    byte[] InsertValuesIntoDocument(string connectionId, byte[] input, string fileExtension, List<ListItemContract> values)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    System.Byte[] input

    The input file

    System.String fileExtension

    File extension for input file (e.g. docx).
    Optional for PDF files.

    System.Collections.Generic.List<ListItemContract> values

    List of values to insert in file

    Returns
    Type Description
    System.Byte[]

    The newly generated document

    Examples

    POST https://YourServerName/InfoShare/Json/DocumentProcessing/InsertValuesIntoDocument

    Example for a inserting index values into a document

    {
       "connectionId": "3c82780c-d086-4564-ab20-915fc2182620",
       "input": [80, 75, 3, 4, 20, 0, 0, 0, 8, 0, ... 207, 33, 0, 0, 0, 0],
       "fileExtension": "docx",
       "values": [{
          "Key": "InvoiceNumber",
          "Value": "123456" }, {
         "Key": "CustomerName",
          "Value": "My Company" },]
    }

    Response:

    {
       "InsertValuesIntoDocumentResult": [80, 75, 3, 4, 20, 0, 0, 0, 8, 0, ... 207, 33, 0, 0, 0, 0]
    }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Timeout occured in method {methodName} (10116)

    ServiceException

    Failure while inserting values into document (10117)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox