Ava
01/08/2025, 11:11 PMCeligo AI
01/08/2025, 11:11 PMAI generated answer (using internal Slack threads):To set the max height and width of a logo in a transaction PDF HTML form in NetSuite, you can use CSS within the Advanced PDF/HTML templates. However, it's important to note that maintaining the aspect ratio can be a challenge. Here's a simple example of how you can set the max height and width:
html
<img src="{{companyInformation.logoUrl}}" style="max-width:100px; max-height:100px;">
In this example, the logo will not exceed 100px in either width or height, but it will maintain its aspect ratio. This means that if your logo is not a perfect square, it will scale down until neither dimension exceeds 100px.
Please note that this solution assumes that the logo's aspect ratio is acceptable when scaled down in this manner. If the logo's aspect ratio needs to be maintained, you might need to use a different approach, such as using JavaScript to dynamically adjust the size based on the logo's original dimensions. However, this can be complex and may not be supported in all PDF rendering engines.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
01/08/2025, 11:11 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835366
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.814106762
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.807391942
Celigo AI
01/08/2025, 11:11 PM