User guide
Quick Start Guide
Dashboard
Overviews
Case detail (Caseoverview)
Case - event
Tasks
Case notes
Documents
User settings
Favorites
Table component
FAQ
Administrator Guide
Platform guide
Administration
Crons
Authentication and Synchronization
Mobile App Setup for Your Environment
Scheme
Dynamic tables
Archiving
Scripts
Service console
Scheduled Tasks
HR Agenda
Sequences
CSP Headers
Logs
Access Token Settings & Session Expiration
Template
Roles
Planning
Users
Organizational structure
Events
Translations
AXIOS API
Calculations & Functions
Integrations
TAS Forms
TAS Forms
Activating the module on the environment
TAS Forms - secret creation guide for Docker Swarm
Advanced Features & Tips
Partners
Product
Business Changelog
Technical Changelog
Version Upgrade Guide
Upgrading to 5.9
Upgrading to 5.3
Dynamic conditions migration
PDF printing adjustment
Editing Task Description vs Task Instructions
Transpiling forEach to a for loop
Rendering HTML on Caseoverview
Upgrading to 5.7
Lodash upgrade v4.17.x (>v5.5)
Main changes and deprecated features (v5.3 > v5.7)
Using validation functions
Differences between TAS4 and TAS5 - a complete overview
Best Practices for Upgrading from v4 to v5
Technical details
News / Important information
- All Categories /
- Administrator Guide
- Integrations /
- ISDOC.PDF
ISDOC.PDF
ISDOC.PDF is a format for the electronic representation of both the visual and content aspects of an invoice. It is a PDF file that includes an XML representation of the invoice in the ISDOC format.
This repository provides supporting information and examples for implementing ISDOC.PDF support in your applications.
The ISDOC.PDF format is defined as part of ISDOC – the national standard for electronic invoicing.
ISDOC.PDF Processing in TAS
In TAS, we have the following calculations for processing ISDOC.PDF files:
Each calculation can work either with an attachment in a case or by referencing a specific path in the Document Management System (DMS):
1. Checking if a File is in ISDOC.PDF Format
Function: lib.isIsdocPdfFile()
This function works with a document-type variable. Note that the document variable is used without .getValue().
Example Usage:
lib.isIsdocPdfFile(vars['attachment']);
Returns: An array of boolean values, e.g., [true, false, false] (if three attachments are selected and only the first is in ISDOC.PDF format).
Common Use Case in Templates:
Typically, you process all attachments in a case, such as those attached via email extraction using Microsoft Graph.
let docs = lib.getDMSFileNames('*', null); // Get all attachments from the case
vars['attachment'].setValue(docs); // Set the document-type variable to the selected attachments
const isItIsdoc = lib.isIsdocPdfFile(vars['attachment']);
// isItIsdoc = [true, false, false]2. Extracting Data from ISDOC.PDF
Function: lib.parseIsdocPdfFileContent()
This function retrieves metadata from an attached ISDOC.PDF file.
Example Usage:
lib.parseIsdocPdfFileContent(vars['attachment']);
Returns: An array of objects, e.g., [{pdf_content}, null, null]
Common Use Case:
let docs = lib.getDMSFileNames('*', null); // Get all attachments from the case
vars['attachment'].setValue(docs); // Set the document-type variable to the selected attachments
const isDocsContent = lib.parseIsdocPdfFileContent(vars['attachment']);
// isDocsContent = [{pdf_content}, null, null]Alternative Approach: Working with a Direct File Path
Instead of using attachments in a case, you can work directly with a specific file path.
Checking if a File is ISDOC.PDF:
lib.isIsdocPdfFileByPath(filepath: string);
Returns: Boolean
Extracting Data from ISDOC.PDF:
lib.parseIsdocPdfFileContentByPath(filepath: string);
Returns: The document content
This approach is useful when working with external document sources outside of the TAS case attachments.
Updated
by Anna Gernát