Perry Auld
02/20/2026, 6:21 PMCeligo AI
02/20/2026, 6:21 PMAI generated answer (using internal Slack threads):In an Advanced PDF, you can constrain the size of an image while maintaining the aspect ratio by using the
auto value for either the height or width attribute of the image. This is supported in BFO, which is the library used by NetSuite for Advanced PDFs.
Here is an example of how you can do this:
xml
<img src="${companyInformation.logoUrl}" style="width:100px;height:auto;"/>
In this example, the width of the image is set to 100px and the height is set to auto. This means that the image will scale its height automatically to maintain the aspect ratio.
Please note that this solution assumes that the images have a consistent pixel density. If the images have different pixel densities, you might need to use a different approach, such as using an if statement to set the size based on the specific image.
******
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
02/20/2026, 6:22 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.807006836
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.802429199
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799377441
Celigo AI
02/20/2026, 6:22 PMAaron McCausland
02/20/2026, 8:10 PM