Only this pageAll pages
Powered by GitBook
1 of 22

Files & Documents

JSON

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Documents

PDFs

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Loading...

Templates

Loading...

Loading...

Get a Text as a JSON

Converts a string to a JSON object.

Overview

This procedure converts a string to a JSON object by parsing the string content. The string should contain valid JSON syntax. The procedure automatically handles strings that may have extra text before or after the JSON content by identifying and extracting the JSON portion (looking for opening { or [ and corresponding closing } or ]).

Input Concepts

Concept
Type
Description
Required
Default

Output Concepts

Concept
Description

Examples

1. Converting a simple JSON string

This example converts a string containing JSON to a JSON object.

2. Converting a string with JSON object

This example converts a string representation of a JSON object to an actual JSON object.

3. Converting and accessing JSON fields

This example shows converting a JSON string and then accessing its fields. The result would be "0.5% 10 NET 45" for Description and "38" for TermsCode.

4. Converting a JSON array string

This example demonstrates converting a string containing a JSON array to an actual JSON array with multiple product objects.

5. Converting complex nested JSON

This example shows converting a complex nested JSON structure from a string and then accessing a field. For a JSON with nested objects like {"u_project_name": {"link": "...", "value": "..."}, "state": "4"}, this would return "4".

Convert to PDF

Automation procedures for converting files to PDF.

Convert from Word Document to PDF

To convert from Word (.doc or .docx) to portable document format (.pdf):

the file is the document
read the file as a pdf

Convert Picture to PDF

To convert a picture (.jpg / .png) to portable document format (.pdf):

Working with .tif and .tiff Files

To work with .tif or .tiff files in Kognitos, you can convert them to PDF format and use PDF operations on them. To convert to PDF, use the following syntax:

Removing Duplicates

Automation procedures for removing duplicates from a PDF file.

Removing Duplicates with a Confidence Threshold

To remove duplicates from a PDF with a specified confidence threshold, use the following syntax:

get the pdf
the department's duplicate confidence threshold is 0.95
remove duplicates from the pdf

Removing Duplicates without a Confidence Threshold

To remove duplicates from a PDF without specifying a confidence threshold, use the following syntax:

Save a PDF

Automation procedures for saving a PDF file after making changes.

Saving to a Local Path

To save a PDF to a local path, use the following syntax:

get the pdf
save the pdf to a file with
    the target is "/local/path/to/save/the/pdf"

Saving to an S3 URL

To save a PDF to an S3 URL, use the following syntax:

string

string

The string to be converted into a JSON object

Yes

N/A

json

The JSON object obtained from the string conversion

convert a file to a pdf file with
    the file is the picture
read a file as a pdf
get the pdf
remove duplicates from the pdf
get the pdf
save the pdf to a file with
    the target is "s3://bucket-name/path/to/save/the/pdf"
get the string
get the string as json
the string is '{"name":"John", "age":30, "city":"New York"}'
get the string as json
the term is "{\"TermsCode\": \"38\", \"Description\": \"0.5% 10 NET 45\"}"
get the term as a json
get the json's Description
get the json's TermsCode
the term is "[{\"Product Name\": \"P854282R COMP\", \"Quantity\": \"3\", \"Price\": \"$53.00\", \"Prices\": [\"1\", \"2\"]},{\"Product Name\": \"F854734 COMPR\", \"Quantity\": \"1\", \"Price\": \"$34.95\", \"Prices\": [\"2\", \"3\"]}]"
get the term as a json
get the val as a json
get the json's state

Open a JSON

Opens a JSON file from either an S3 URL or an uploaded file.

Overview

This procedure opens and reads a JSON file from either a specified S3 URL or uploaded directly to Kognitos. It retrieves the file content, parses it as JSON, and returns the JSON object.

Input

Concept
Type
Description
Required
Default

Output

Concept
Description

Examples

1. Opening a JSON file from S3

This example opens a JSON file stored at the specified S3 URL and returns the parsed JSON object.

2. Opening a JSON file from an uploaded file

This example opens a JSON file that was uploaded by the user to Kognitos.

3. Reading a JSON file from S3

This example reads a JSON file stored at the specified S3 URL and returns the parsed JSON object. This is an alternative syntax to "open a json at a file" and provides the same functionality.

4. Reading a JSON file from an uploaded resource

This example demonstrates reading a JSON file containing student and course information from a test resource. The result would be a JSON object with nested structures for student details and course arrays.

5. Error handling for invalid JSON files

This example shows the error handling when attempting to read an invalid or non-existent JSON file. The system will prompt with "Could not read a json from a file."

Get a JSON as Text

Converts a JSON object to a string representation.

Overview

This procedure converts a JSON object to its text (string) representation. The resulting string is a properly formatted JSON string that can be used for storage, transmission, or display purposes. Non-ASCII characters are preserved in the output (not escaped).

Input

file

string

The S3 URL of the JSON file to be opened

Yes

N/A

json

The JSON object obtained from the file

Merging Documents

This automation procedure combines multiple PDFs into a single PDF file.

get the attachments
get the above as the scanned documents
merge the scanned documents into a single document where
    the document name is "statements.pdf"
Concept
Type
Description
Required
Default

json

json

The JSON object to be converted

Yes

N/A

Output

Concept
Description

string

The string representation of the JSON object

Examples

1. Converting a simple JSON object to string

This example converts a JSON object to its string representation.

2. Converting a JSON with special characters

This example demonstrates converting a JSON object with special characters (quotes and percentages) to a string. The result would be: {"TermsCode": "38", "Description": "0.5% 10 NET 45"}

3. Converting an empty JSON to string

This example shows converting an empty JSON object to its string representation "{}".

4. Converting a complex JSON structure

This example demonstrates working with a nested JSON structure with multiple levels that can be converted to a string.

the file is "s3://my-bucket/data/json.json"
open a json at the string
the file
open the json at the file
the file is "s3://my-bucket/data/json.json"
read the json from the file
the file is "s3://bucket-name/resources/example.json"
read the json from the file
the invalid file is "some-file"
read the json from the invalid file
get the json
get the json as a string
the term is "{\"TermsCode\": \"38\", \"Description\": \"0.5% 10 NET 45\"}"
get the term as a json
get the term as a string
create an empty json
use the above as the best json
the best json
get the best json as a string
the AddressInformation is '{"BillingAddress": {"Name": "Brown Integrated Logistics"}}'
get the AddressInformation as a json

Set or Change a JSON's Value

Sets or changes a specific value within a JSON object to a new value.

Overview

This procedure sets or changes a specific value within a JSON object to a new value. The verbs "set" and "change" are interchangeable. It supports both simple field names and nested paths using dot notation (e.g., settings.notifications.enabled). If the field does not exist, it will be created. The JSON object is modified in place.

Input

Concept
Type
Description
Required
Default

Output

This procedure modifies the JSON in place and does not return a value.

Examples

1. Setting a simple field value

This example sets the "age" field of the JSON object to 23.

2. Setting a field using the set command

This example sets the "name" field of the JSON object to "John Doe".

3. Setting a nested field using dot notation

This example sets a deeply nested field using dot notation.

4. Setting and modifying fields in sequence

This example shows multiple sequential modifications to JSON fields. The TermsCode is changed from "38" to 39.

5. Using set command explicitly

This example uses the explicit "set" command to modify a field.

6. Using change command

This example uses the "change" command, which is equivalent to "set".

7. Adding a new field to a JSON object

This example adds a new field "Label" to an existing JSON object. The result would be: {"TermsCode": 42, "Description": "0.5% 10 NET 45", "Label": "Default"}

8. Setting nested JSON structures

This example demonstrates setting one JSON object as a field within another JSON object.

9. Setting a list as a field value

This example shows setting a list as a field value in a JSON object.

10. Setting array element by ordinal

This example demonstrates setting array elements using ordinals like "first", "second", and "last".

11. Setting nested array fields

This example shows setting fields within objects that are elements of an array.

Compare a JSON with Another JSON

Compares two JSON objects and identifies differences between them.

Overview

This procedure compares two JSON objects and identifies the differences between them. It returns a list of keys where the values differ between the two objects, including keys that exist in one object but not the other. The comparison is performed at the top level of the JSON objects.

Unlock a PDF

Unlocks a password-protected PDF file.

Overview

This procedure unlocks a password-protected PDF file. It requires the original file and the correct password. If the file is not a PDF or the password is incorrect, an error will be raised.

Syntax

Set Information in a PDF

Automation procedures to set or change field values in a PDF file.

Setting a Field to a String

To set a field in a PDF to a string value, use the following syntax:

Changing a Field to a String

Create a JSON

Creates an empty JSON object.

Overview

This procedure creates an empty JSON object (represented as {}). This is useful as a starting point for building up a JSON structure by adding fields one at a time. The empty JSON object can then be assigned to a fact and populated with data.

any

The new value to be set at the specified path within the JSON object

Yes

N/A

json

json

The JSON object to be modified

Yes

N/A

thing

string

The path within the JSON object where the value is to be set or changed (specified as a handle)

Yes

N/A

target

Input
Concept
Type
Description
Required
Default

target

json

The first JSON object to be compared

Yes

N/A

object

json

The second JSON object to be compared

Yes

N/A

Output

Concept
Description

differences

A list of keys where the values differ between the two JSON objects. Each difference is represented as a string indicating the key that differs

Examples

1. Comparing simple JSON objects with one difference

This example compares two JSON objects and identifies that the "age" field differs.

2. Comparing nested JSON objects

This example compares two JSON objects with nested structures. Note that the comparison identifies "specs" as different (since the nested object differs), not the individual nested fields.

3. Complete comparison workflow with result handling

This example demonstrates a complete workflow: loading two JSON objects (where the actual json might be {"name": "john", "age": 28} and expected json is {"name": "john", "age": 29}), comparing them, and storing the list of differences (["age"]) in a fact for later use.

To change a field in a PDF to a string value, use the following syntax:

Setting a Field to a Number

To set a field in a PDF to a numeric value, use the following syntax:

Changing a Field to a Number

To change a field in a PDF to a numeric value, use the following syntax:

get the pdf
the field is "Date"
set the pdf's field to "2023-01-01"
get the pdf
the field is "Name"
change the pdf's field to "John Doe"
Input

This procedure has no input concepts.

Output

Concept
Description

json

An empty JSON object {}

Examples

1. Creating a simple empty JSON

This example creates an empty JSON object {}.

2. Creating and using an empty JSON

This example creates an empty JSON object and assigns it to a fact called "request".

3. Creating and populating a JSON object

This example creates an empty JSON and then populates it with three fields: name, age, and company.

4. Creating multiple JSON objects

This example creates another empty JSON object with a different fact name and populates it with company and address fields.

5. Creating JSON for nested structures

This example creates multiple JSON objects and nests one within another. The result would be: {"data": {"age": "23"}}

6. Creating JSON for use with merge operations

This example creates an empty JSON object that will be used to merge or combine data from other sources.

get the json
the json's age is 23
get the json
set the json's name to "John Doe"
get the json
change the json's "settings.notifications.enabled" to false
the term is "{\"TermsCode\": \"38\", \"Description\": \"0.5% 10 NET 45\"}"
get the term as a json
the term is a json
get the term's TermsCode
get the term's Description
the term's TermsCode is 39
get the term's TermsCode
the term
set the term's TermsCode to 41
get the term's TermsCode
change the term's TermsCode to 42
get the term's TermsCode
the term's Label is "Default"
the term
the internaljson is "{}"
the internaljson is a json
set the internaljson's age to "23"
the finaljson is "{}"
the finaljson is a json
set the finaljson's data to the internaljson
imagine valid items
the number is 1
add the number to the valid items
set the finaljson's name to the items
set the foo's first apple to 10
set the foo's second apple to 20
set the foo's last apple to 40
set the foo's second objects.b to 22
set the foo's last objects.c to 33
set the target to
    {
        "name": "John",
        "age": 30,
        "city": "New York"
    }
set the object to
    {
        "name": "John",
        "age": 31,
        "city": "New York"
    }
compare the target json with the object json
set the target to
    {
        "product": "Laptop",
        "price": 1200,
        "specs": {
            "RAM": "16GB",
            "Storage": "512GB SSD"
        }
    }
set the object to
    {
        "product": "Laptop",
        "price": 1200,
        "specs": {
            "RAM": "8GB",
            "Storage": "256GB SSD"
        }
    }
compare the target json with the object json
get the actual json
get the actual json as a json
the actual json is a json
get the expected json
get the expected json as a json
the expected json is a json
compare the expected json with the actual json
use the above as the keys
the keys
get the pdf
the field name is "Total Amount"
set the pdf's field to 150
get the pdf
the field name is "Page Count"
change the pdf's field to 5
create a json
create a json
use the above as the request
the request
create a empty json
use the above as json1
set the json1's name to "kalpesh"
set the json1's age to 28
set the json1's company to "Kognitos"
create an empty json
use the above as json2
set the json2's company to "XYZ"
set the json2's address to "Bangalore"
the internaljson is "{}"
the internaljson is a json
set the internaljson's age to "23"
the finaljson is "{}"
get the finaljson as a json
the finaljson is a json
set the finaljson's data to the internaljson
create an empty json
use the above as the main json
set the main json's "attachment" to the attachment json
Below is a line-by-line overview of the automation syntax. Expand each line to learn more.
unlock the file

What does it do?

Instructs the system to unlock a password-protected PDF file.

Where does it go?

This phrase should be written on a new line.

Is it required?

✅ Yes — This phrase is required.

Does it require data?

❌ No — This phrase does not require data.

the password is x

What does it do?

Specifies the password for the PDF.

Where does it go?

Indented under unlock the file.

Is it required?

✅ Yes — This phrase is required.

Does it require data?

✅ Yes — Replace x with a text value containing the PDF's password.

Example

the file is the above

What does it do?

References the unlocked PDF file so it can be used for further processing.

Where does it go?

This phrase should be written on a new line.

Is it required?

❌ No — This phrase is optional.

Does it require data?

❌ No — This phrase does not require data.

Examples

1. Example 1

2. Example 2

Create PDFs from a Template

Generates a PDF document for each row in an Excel file by merging data into a .docx template.

Overview

This procedure fills placeholders in a Word document (.docx) template with data from an Excel (.xlsx) file. One output document is generated per row in the spreadsheet. Placeholders in the template are marked by a pair of characters (default is "{}") and must match the column headers in the Excel file.

Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

the template is

What does it do? Specifies the path to the Word document template (.docx).

Where does it go? This phrase should be written on a new line.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ✅ Yes — A Text value should be specified.

Example: the template is "path/to/template.docx"

the data file is

What does it do? Specifies the path to the Excel file containing the data (.xlsx).

Where does it go? This phrase should be written on a new line.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ✅ Yes — A Text value should be specified.

Example: the data file is "path/to/data.xlsx"

the template marker is

What does it do? Defines the two-character marker used to identify placeholders in the template. For example, if the marker is "<>", then a placeholder would look like "". The default is "{}". The marker must be exactly two characters.

Where does it go? This phrase should be written on a new line.

Is it required? 🌟 No — This phrase is optional in the syntax.

Does it require input data? ✅ Yes — A Text value should be specified.

Example: the template marker is "<>"

create pdfs from the template where

What does it do? Starts the PDF generation using the provided template and Excel data.

Where does it go? This phrase should be written on a new line.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ⛔ No — This phrase does not require input data.

the excel is the data file

What does it do? Specifies the Excel file to use for the data source.

Where does it go? This phrase should be indented beneath create pdfs from the template where.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ⛔ No — This phrase does not require input data.

Examples

1. Create a PDF From the Template

unlock the file
    the password is "abcd1234"
the file is the above
unlock the file
    the password is "secret-password"
the file is the above
the password is "abcd1234"
the template is "path/to/template.docx"
the data file is "path/to/data.xlsx"
the template marker is "<>"
create pdfs from the template where
    the excel is the data file

Delete a JSON's Item

Deletes a specified key from a JSON object.

Overview

This procedure deletes a specified key from a JSON object. The field is permanently removed from the JSON structure. If the specified key does not exist in the JSON, the operation completes successfully without error (in the new JSON implementation). The procedure supports both simple field names and nested paths using dot notation.

Input

Concept
Type
Description
Required
Default

Output

Concept
Description

Examples

1. Deleting a simple field

This example deletes the "username" field from the JSON object.

2. Deleting a field and verifying the result

This example deletes the "TermsCode" field and shows the resulting JSON object would be: {"Description": "0.5% 10 NET 45"}

3. Deleting a non-existent field (safe operation)

This example demonstrates that deleting a non-existent field does not cause an error and leaves the JSON unchanged at {"Description": "0.5% 10 NET 45"}.

4. Deleting nested fields using dot notation

This example shows deleting a nested field using dot notation. For a JSON like {"b": {"c": 1, "d": {"e": [1, 2]}}}, this would remove the entire "d" object.

5. Deleting fields from array elements

This example demonstrates deleting fields from specific elements in an array using ordinals. For a JSON with an "objects" array, this removes the "b" field from the second object and the "c" field from the last object.

6. Deleting from nested structures

This example shows deleting fields from nested array structures. The second command demonstrates that deleting a non-existent field ("nowhere") does not cause an error.

json

json

The JSON object from which the key will be deleted

Yes

N/A

thing

string

The key to be deleted from the JSON object

Yes

N/A

json

The updated JSON object after the specified key has been deleted

get the json
delete the json's username
the term is "{\"TermsCode\": \"38\", \"Description\": \"0.5% 10 NET 45\"}"
get the term as a json
the term is a json
delete the term's TermsCode
the term
delete the term's mybadfield
the term
delete the foo's b.d
delete the foo's second objects.b
delete the foo's last objects.c
delete the foo's third val.noteverywhere
delete the foo's first val.nowhere

Fill in a Template File

Fills in a template with provided placeholder values.

Overview

This procedure fills in a template with provided values. Currently, only .txt and .docx file types are supported for use as template files. This procedure is helpful in automation workflows where documents need to be dynamically generated, such as invoices, contracts, letters, certificates, or reports.

Use Cases

Use Case
Description
Placeholder Examples

Input Concepts

Concept
Description
Type
Default
Required

Output Concepts

Concept
Description

Automation Example

Consider the following .txt file, containing placeholders enclosed in < > symbols:

Note: Line 1 will raise a question, prompting you to provide or upload the template file itself.

Purchase Confirmations

Generate confirmation emails or documents for online purchases

{order_id}, {product_name}, {price}

Service Agreements

Populate service agreements with client and project info

{client_name}, {service_description}

The characters used to mark the placeholders in the template. Must be exactly two characters.

Text

"{}"

No

Customer Invoices

Automatically create invoices from billing data

{date}, {customer_name}, {total_amount}

Employment Contracts

Generate contracts for new hires based on HR forms

{employee_name}, {start_date}, {role}

Appointment Reminders

Send personalized reminders to patients or clients

{patient_name}, {appointment_time}

Event Certificates

Create custom certificates for attendees

template

The .txt or .docx file to be filled in.

File

N/A

Yes

placeholder values

The text that will fill in the placeholders in the template. These must be enclosed in quotes. For example: the name is "Jane Doe"

Text / String

N/A

Yes

file

The file with the specified placeholders replaced by the provided values.

{participant_name}, {event_name}

template marker

Invoice

Date: <date>
Customer Name: <customer_name>
Item: <item_description>
Total Amount: <total_amount>

Thank you for your business!
the template
fill in the template
  the template marker is "<>"
  the date is "4/23/2025"
  the customer_name is "Jane Doe"
  the item_description is "Web Design Services"
  the total_amount is "$2000"
Invoice

Date: 4/23/2025
Customer Name: Jane Doe
Item: Web Design Services
Total Amount: $2000

Thank you for your business!

Merge a JSON with a JSON

Merges two JSON objects and returns the merged result.

Overview

This procedure merges two JSON objects into one. The first JSON object (target) is merged with the second JSON object (object), and the result contains all keys from both objects. The original JSON objects remain unchanged; a new merged object is returned.

Input

Concept
Type
Description
Required
Default

target

json

The first JSON object

Yes

N/A

object

json

The second JSON object which will be merged with the first

Yes

N/A

Output

Concept
Description

json

The final merged JSON object

Examples

1. Simple merge with non-overlapping keys

This example merges two JSON objects where some keys overlap. The merged result would be: {"address": "Bangalore", "age": 28, "company": "Kognitos", "name": "john"}. Note that in the basic implementation, the "company" field from json2 would overwrite json1's value.

2. Verifying original objects remain unchanged

This example verifies that the original JSON objects are not modified by the merge operation.

3. Nested JSON Merge

For nested JSON structures like:

  • json1: {"company": "XYZ", "address": {"street": "State", "pets": ["Garfield", "Opus"]}}

  • json2: {"age": 28, "name": "john", "company": "Kognitos", "address": {"number": 123, "street": "Main", "pets": ["Alf"]}}

The new JSON implementation's recursive merge produces: {"age": 28, "name": "john", "company": "XYZ", "address": {"number": 123, "street": "State", "pets": ["Alf", "Garfield", "Opus"]}}

This demonstrates:

  • Nested objects are merged recursively

  • Arrays are concatenated (not replaced)

  • Primitive values from json1 overwrite those in json2

4. Hierarchical JSON example

This example shows a complete workflow of creating two JSON objects and merging them. The final result would be: {"name": "John", "age": 30, "height": 182, "city": "Bangalore"}

5. Merge with duplicate key behavior

In case of duplicate keys, the value from the second JSON (object) overwrites the value from the first JSON (target).

For example:

  • target json: {"name": "John", "age": 30}

  • object json: {"place": "USA", "age": 31}

  • final result: {"name": "John", "place": "USA", "age": 31}

The "age" field is updated to 31 from the object json.

create a empty json
use the above as json1
set the json1's name to "john"
set the json1's age to 28
set the json1's company to "Kognitos"
create an empty json
use the above as json2
set the json2's company to "XYZ"
set the json2's address to "Bangalore"
merge the json1 with the json2
the json1
the json2
merge the json1 with the json2
create an empty json
use the above as the targetjson
set the targetjson's name to "John"
set the targetjson's age to "30"
create an empty json
use the above as the objectjson
set the objectjson's height to 182
set the objectjson's city to "Bangalore"
merge the target json with the object json

Get a JSON's Item

Extracts a specific element or elements from a JSON structure.

Overview

This procedure extracts a specific element or elements from a JSON structure based on the specified "thing" (field name or path). The thing can be specified with additional adjectives to refine the search within the JSON structure. It supports both simple field access and nested path traversal using dot notation (e.g., address.city) or possessive syntax (e.g., address's city). When the JSON is an array, it can extract values from multiple objects.

Input

Concept
Type
Description
Required
Default

Output

Concept
Description

Examples

1. Getting a simple field from a JSON object

This example extracts the "name" field from a JSON object.

2. Getting a field with an adjective

This example extracts the "first name" field from a JSON object. If the JSON is an array, it returns the "name" field from the first element.

3. Getting nested fields using dot notation

This example extracts the "city" field from the nested "address" object using dot notation.

4. Getting nested fields using possessive syntax

This example extracts the "city" field from the nested "address" object using possessive syntax.

5. Getting fields with spaces

This example extracts a field named "address city" (a single key with a space in it).

6. Getting fields from a JSON array

This example shows how to extract fields from an array of JSON objects. When the JSON is an array like [{"Product Name": "P854282R COMP", "Price": "$53.00"}, {"Product Name": "F854734 COMP", "Price": "$34.95"}], you can use ordinals like "first" and "second" to access specific elements.

7. Getting deeply nested fields

This example demonstrates accessing deeply nested fields using multiple possessive syntax. For a JSON structure with customers, orders, and order details, this navigates through multiple levels to extract the id field.

8. Handling fields with camelCase or special naming

This example shows accessing fields with camelCase naming conventions like "threadId", "historyId", and "sizeEstimate".

json

json

The JSON structure from which the thing is to be extracted

Yes

N/A

thing

string

The specific element or elements to extract from the JSON (can include adjectives to refine the search)

Yes

N/A

result

The extracted element or elements from the JSON structure. If multiple elements are extracted, they are returned as a list

get the json
get the json's name
get the json
get the json's first name
get the json
get the json's address.city
get the json
get the json's address's city
get the json
get the json's address city
get the term as a json
get the json's Prices
get the json's first Price
get the json's first Product Name
get the json's second Quantity
get the foo's first order's first detail's id
get the email's threadId
get the email's historyId
get the email's sizeEstimate

Get Information from a PDF

Basic procedures for extracting information from a PDF.

Overview

There are several ways to get or extract data from a PDF in Kognitos. The procedures listed below are the most basic methods. For a more advanced method, refer to the procedure.

Getting a Label

This procedure allows you to retrieve a specific label from a PDF.

Getting a Field

This procedure allows you to retrieve a specific field from a PDF.

get the pdf
get the pdf's label where
    the label is "Invoice Number"
get the pdf
get the pdf's field where
    the field contains "Date"
extract data