We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Add watermark on header with java

We need to add a watermark on the header of pdf documents but the text is variable and sometimes can exceed the width of the page. Is there a way to evaluate the length of the text in the page and, if its size is bigger than page width, split it into multiple lines?

Thanks a lot


Thanks for contacting support.

There is no such method to calculate height and width of the content at the time of PDF generation. However, we will surley investigate the feasibility of your requirement if you can please share some sample files along with content which needs to be added in the header. We will log an investigation ticket in our issue tracking system and share the ID with you.