Link Search Menu Expand Document

How to avoid text overflow

To prevent text overflow, you’ll need to use 5 parameters. The x and y coordinates, the textbox width and height, and the text alignment. To help you get the coordinates, you can use our Simplified PDF Viewer here.

POST /v1/pdf/edit/add HTTP/1.1
Content-Type: application/json
x-api-key: Your_API_Key
Content-Length: 815

    "url": "",
    "annotations": [
            "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
            "x": "10",
            "y": "10",
            "width": "500",
            "height": "200",
            "size": "7",
            "pages": "0",
            "alignment": "left"


The Text Objects field allows you to adjust the height, width, and text alignment of the text object to prevent any text from being cut off.

For instance:

  • Width: 133
  • Height: 100
  • Text alignment: Left

You can input the above values in the Text Objects field using the following format:

459;12;0;your text here;12;Arial;;;;133;100;left 


To add a Text Annotation, proceed to the Text Annotations section and select “Add Item”. Afterward, specify the Width and Height of the Text Box, and then choose the appropriate Text Alignment.