unfortunately we tried a ton of different methods for this and we couldn't figure it out. ended up just adding some custom fields of percentages where the advanced PDF pulls the value from that field to set height and width = X% of original. the default value is a value that works for most images and then the user has to manually edit that field to a new percentage value if they need it bigger/smaller.