Please enable JavaScript to view this site.

Version:

Navigation: Activities > Activity Reference

Add Text To PDF Activity

Prev Top Next More

Description

Adds text to a PDF document.

Usage

Given a PDF document, a workflow can add some text to the PDF at the specified location in the document. The activity produces a new PDF document. The Write File Bytes activity could write the new PDF to disk, or the Create Download activity could generate a URL to the new PDF so that an end user could download it.

Inputs

Source

Required

Type: String | Number[]

The source PDF document to modify. Either a file path or byte content are accepted.

Bytes are the raw binary values that represent content. A byte array is represented by a list of numbers between 0 and 255. Invalid byte content will cause an error.

One way byte content can be retrieved is by using the Read File Bytes activity.

Text

Required

Type: String

The text to add.

X

Required

Type: Number

The X coordinate (in points) at which to add the text. The coordinate [0, 0] represents the bottom left corner of the page.

Y

Required

Type: Number

The Y coordinate (in points) at which to add the text. The coordinate [0, 0] represents the bottom left corner of the page.

Font Name

Optional

Type: String

The name of font of the text. The default is Helvetica.

Font Size

Optional

Type: Number

The font size (in points) of the text. The default is 12.

Color

Optional

Type: String

The RGBA hex color of the text. The default is 000000FF (black). The alpha value is optional.

Page Index

Optional

Type: Number

The zero-based index of the page to add the image to. The default is 0.

Outputs

result

Type: Number[]

The modified PDF document.

Properties

For information about the ID, Display Name, and Description properties, see Properties Common to all Activities.

Connectivity Requirements

This activity does not work when the device has intermittent connectivity to the network.

© 2024 VertiGIS North America Ltd. All Rights Reserved. | Privacy Center | Imprint
Documentation Version 5.42 (220a4365)