Can I restrict a photo height on customizing PDF?

  • Profile Image
    Asked on October 04, 2016 at 03:00 PM

    I have no issues in customizing the PDF output with photo width, works every time.  But can I restrict it by height somehow?  I ask because if I have a form that submits a vertical picture, that picture shows up WAY bigger in the PDF than a horizontal picture constrianed at the same width.  What would be ideal is if I could just restrict the photo to a square cell, and it resize the picture within that square so it is never wider or taller than the cell.  Is that possible?

  • Profile Image
    Answered on October 04, 2016 at 05:29 PM

    I did some testing on my end and I was able to successfully constrain both the height and width of image upload fields in the PDF output:

    Dragging the image to be taller/shorter constrained the image output the same as it did with the width.

  • Profile Image
    Answered on October 04, 2016 at 05:51 PM

    Ok, yes, you can edit that for each submission I suppose, but you are stuck with the picture being resized to the width you last set unless you change it each time. So I would have to edit the pdf every time a vertical picture was submitted to make it not significantly larger than a horizontal picture submitted on the same form.  So is it possible to set a container and have the photo not go any taller than the container you set, because right now it resizes to the width only.  I understand in doing that, it would not match the max width set.  I'm okay with that.  I need a means to be able to use both vertical and horizontal pictures without one being way bigger than the other, and not have to edit the PDF each time.  Does that make sense?

  • Profile Image
    Answered on October 04, 2016 at 10:16 PM

    Unfortunately, it is not possible to set a container for the images in the PDF. As suggested by my colleague, you can only resize the images so that they will have the same height and width that you previously set. Your requirement is currently not possible to achieve in the PDF Customization feature.

    The only workaround I can suggest would be to have separate upload fields for horizontal and vertical images. That way, you can resize the height and width of the images specifically for each of them, without having to worry about the horizontal image being bigger than the vertical image or vice versa.

    Please let us know if you need further assistance.