Generating a PDF file with a barcode

Citeck allows automatically generating a PDF document with an embedded barcode — this simplifies the identification and tracking of documents within business processes. The functionality is implemented using the ecos-transformations microservice and the PDFStamp tool.

Citeck generates a PDF file with a barcode:

  1. Conversion to PDF occurs from doc and docx files in the card’s content.

  2. Content is filled either by the user attaching a document or is generated from a template (FreeMarkerTemplate) stored in the system.

  3. After generation, the PDF file is attached to the card’s documents widget or to the content of a child entity.

  4. The barcode is placed at the bottom of the document:

../../_images/barcode_11.png

Action configuration:

---
# This is temporary action to test transformations
# If you want to use it, then rename extension from yml-sample to yml
id: download-transformation-test
type: transform
name:
ru: Тестовое скачивание
config:

#### прочитать содержимое из шаблона и заполнить его данными из текущего документа ####
#  input:
#    type: 'template'
#    config:
#      entityRef: '${?id}'
#      templateRef: 'transformations/template@test-docx-template'

transformations:
    - { type: 'convert', config: { toMimeType: 'application/pdf' } }
    - { type: 'barcode' }

#### сохранить результат в документы ####
#  output:
#    type: "mutate"
#    config:
#      entityRef: 'emodel/document@'
#      additionalAttributes:
#        "_parent": '${?id}'
#        "_parentAtt": "docs:documents"
#        "_type": 'emodel/type@document'

To download a document with a placed barcode, use the Download PDF (with barcode) action in the document card: