How can slanting/diagonal text be created in XDP form using AEM Designer 6.5? | Community
Skip to main content
Level 5
February 5, 2024
Solved

How can slanting/diagonal text be created in XDP form using AEM Designer 6.5?

  • February 5, 2024
  • 2 replies
  • 1451 views

Hi Support/Dev Engineers,

How can a text (e.g 'Office Use Only') be placed in diagonal position in a XDP template/form?  

In AEM Designer it allows the text rotation to be only 90, 180 and 270 degrees. I tried altering the text field's rotate attribute to 45 degree in the XML Source tab, and it did not work as expected. 

Is there any script or field property that can be changed or is there any other suggestion on how to fix this?

Thanks,

Leena

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by radzmar

XFA based forms only support rotation in 90° steps. To add a diagonal text you have two options:

1. Create a background image providing the text you want to display. Place that image on the masterpage and control it's presence with a script. You can use 8-Bit PNG files with transparancy or white background.

2. Create a custom font that uses the desired text as a character like a dingbat font does. It hat the benefit, that the text is a vector graphic so it's very tiny and lossless in quality.

2 replies

Adobe Employee
February 5, 2024

Have you looked at watermarking capabilities using assembler services in AEM forms?

Level 5
February 5, 2024

Hi gbedekar,

The AEM Designer 6.5 is used to develop XDP forms to be uploaded in on-premise AEM 6.5 application. This is not related to cloud services. I am not sure if there is an assembler service for it. If yes, then please provide any document resource that I can refer to.

Thanks,

Leena

Adobe Employee
February 5, 2024

If you are using AEM forms6.5, you will have access to assembler service. you will need to be familiar with assembler service and creating DDX documents 

https://helpx.adobe.com/pdf/aem-forms/6-2/ddxRef.pdf

 

radzmar
radzmarAccepted solution
Level 10
February 12, 2024

XFA based forms only support rotation in 90° steps. To add a diagonal text you have two options:

1. Create a background image providing the text you want to display. Place that image on the masterpage and control it's presence with a script. You can use 8-Bit PNG files with transparancy or white background.

2. Create a custom font that uses the desired text as a character like a dingbat font does. It hat the benefit, that the text is a vector graphic so it's very tiny and lossless in quality.

Level 5
February 12, 2024

Thank you radzmar, this solution may work better in this case to make the modification in the form itself instead of making changes to assembler services, since only few forms need the slanting text.

~Leena

Level 5
February 12, 2024

Thank you both gbedekar  and radzmar for the suggestions. Greatly appreciated.