What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Can I restrict a photo height on customizing PDF?Asked by cherylchooo 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?
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.
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?
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.