Requirement I got say 100 jpg files with different dimensions one is 700*900 while another image is 1400*1800. I need to merge all this jpg files into a single pdf and they must be resized to the same dimensions. I have tried different things programs and code but couldnt find something that resizes the image.
Asked
Active
Viewed 543 times
0
-
What "different things programs and code" did you try? – GordonAitchJay Mar 13 '20 at 12:22
-
Well I tried using Foxit Reader, Foxit Phantom Converter. Some codes here [link](https://stackoverflow.com/questions/27327513/create-pdf-from-a-list-of-images) – lambda Mar 13 '20 at 12:56
1 Answers
1
This might be already answered here: Create PDF from a list of images

Shourov
- 44
- 10
-
-
1You should flag this question as a duplicate if you think it is already answered in an SO post. – dspencer Mar 13 '20 at 12:34
-
Thanks for the response but those I have tried and couldnt meet my requirements. I have images of different file sizes. – lambda Mar 13 '20 at 12:58
-
Try this then: https://www.roytuts.com/convert-image-to-pdf-using-python/ – Shourov Mar 13 '20 at 13:06
-
Thanks @Shourov I manually did a image resizing using PIL library and fed the output to fpdf – lambda Mar 13 '20 at 14:19