I'm trying to convert multiple tiff images to one PDF file using the following code but it's not working.
os.system('convert "G:\xyz\abc\TitleDocumentsDownload\Output\abc\2009033100558001\1.tiff" "G:\xyz\abc\TitleDocumentsDownload\Output\abc\2009033100558001\2.tiff" "G:\xyz\abc\TitleDocumentsDownload\Output\abc\2009033100558001\3.tiff" "G:\xyz\abc\TitleDocumentsDownload\Output\abc\PDFs\2009033100558001.pdf"')
But I'm getting the following error message from the os.system
call:
Invalid Parameter - "G:\Reonomy\ACRIS\TitleDocumentsDownload\Output\QN_15_65\2009033100558001\2.tiff"
And when I run the exactly same command on command-line in windows, PDF file is successfully created with the following warning message:
convert.exe: Unknown field with tag 33000 (0x80e8) encountered. `TIFFReadDirecto
ry' @ warning/tiff.c/TIFFWarnings/824.
I don't know why this is happening in Python. Any quick solution would be appreciated.