Line Break Not Working in Custom Stamp Subtitle (Need Multi-Line Text Support)

WebViewer Version: 11.10

Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? Yes
Are you using the WebViewer server? Yes
Does the issue only happen on certain browsers?No
Is your issue related to a front-end framework?No
Is your issue related to annotations?No

Please give a brief summary of your issue:
Line Break Not Working in Custom Stamp Subtitle (Need Multi-Line Text Support)

Please describe your issue and provide steps to reproduce it:
We are currently using the setCustomStamps method to create custom stamps in Apryse WebViewer.

At the moment, Apryse only provides two text fields for custom stamps:

  • title

  • subtitle

We are trying to display multiple lines of dynamic content inside the subtitle field using \n (newline character), like this:

var subTitleText = s.isCaseNumberChecked
? `${caseNumber}\n[${s?.userName || ‘’} ${s?.formattedDateTime || ‘’}]`
: `[${s?.userName || ‘’} ${s?.formattedDateTime || ‘’}]`;

However, the line break (\n) is not being rendered correctly in the stamp. The text appears in a single line instead of multiple lines.

Current Limitation:

  • Only two fields are available: title and subtitle

  • subtitle does not properly support multi-line rendering

  • There is no option to add additional text fields

  • Formatting control (line spacing, wrapping, multiple blocks of text) is limited

Enhancement Request:

We would like Apryse to enhance the Custom Stamp functionality by:

  1. Supporting proper multi-line rendering (\n) in subtitle

  2. Allowing more than two text fields (e.g., title, subtitle, footer, metadata)

  3. Providing better text formatting control (multi-line layout, alignment, spacing)

This enhancement would help in displaying structured stamp content such as:

  • Case Number

  • User Name

  • Date & Time

  • Additional metadata

Currently, due to only two text fields being available, it is difficult to display structured information cleanly.

Please provide a link to a minimal sample where the issue is reproducible:

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


It seems you’re trying to create a custom stamp with Apryse WebViewer that requires multi-line text support in the subtitle field. Unfortunately, the current implementation of custom stamps in WebViewer does not support multi-line text in the subtitle field directly.

Some things you can try:

  • Consider using JavaScript to manually create an annotation with multiple text elements, simulating a stamp with multiple lines and fields.

  • Use custom annotations to design your stamp, giving you more control over the layout and text formatting.

  • Submit a feature request to Apryse for more advanced text formatting options in custom stamps.




Here are some resources that might help you:



Hopefully, this helps you solve your problem while you wait for a human to get back to you.

Hello Rishu,

Thank you for contacting Apryse Forums.

It looks like you’ve already created an internal support ticket for this issue. I’ve gone ahead and linked this forum post to the internal ticket so everything stays organized in one place.

Best regards,

Darian