I'm trying to use the convert command for a .tif to .pdf conversion from the command line - e.g.:
“/Applications/GraphicConverter 12/Contents/MacOS/GraphicConverter 12” -convert “/MyImage.tif” — format PDF -to “/MyImage.pdf”
Unfortunately the pdf files being generated are always corrupt. Is there a way of doing it?
Also, is it possible to convert a multipage pdf to multiple JPGs files from the command line?
Much appreciated,
Laurent
[Solved] Terminal -convert command to .pdf format
- forum_adm
- Site Admin
- Posts: 1819
- Joined: Fri Dec 23, 2016 9:41 am
- Location: Germany
- Country: Germany
- Contact:
Re: Terminal -convert command to .pdf format
The convert command supports only JPG, PNG and TIFF as written as error message in the console:
unsupported file format (JPG,PNG,TIF): PDF
Just create a batch within the browser that has a set format batch action.
You can call that conversion from the command line.
Usage of batch actions support splitting of PDF into separate JPGs.
unsupported file format (JPG,PNG,TIF): PDF
Just create a batch within the browser that has a set format batch action.
You can call that conversion from the command line.
Usage of batch actions support splitting of PDF into separate JPGs.
- forum_adm
- Site Admin
- Posts: 1819
- Joined: Fri Dec 23, 2016 9:41 am
- Location: Germany
- Country: Germany
- Contact:
Re: Terminal -convert command to .pdf format
I added now the additional supported formats: PDF, HEIC and AVIF to build 6420:
http://www.lemkesoft.org/beta.html
http://www.lemkesoft.org/beta.html
- forum_adm
- Site Admin
- Posts: 1819
- Joined: Fri Dec 23, 2016 9:41 am
- Location: Germany
- Country: Germany
- Contact:
Re: [Solved] Terminal -convert command to .pdf format
Use the following batch for your second request:
- forum_adm
- Site Admin
- Posts: 1819
- Joined: Fri Dec 23, 2016 9:41 am
- Location: Germany
- Country: Germany
- Contact:
Re: [Solved] Terminal -convert command to .pdf format
and execute in the command line:
/path/gc12_build6420/GraphicConverter\ 12.app/Contents/MacOS/GraphicConverter\ 12 -batchconvert /path/sourcefolder -using /path/SaveAsJPG.gcaction -to /path/destfolder
/path/gc12_build6420/GraphicConverter\ 12.app/Contents/MacOS/GraphicConverter\ 12 -batchconvert /path/sourcefolder -using /path/SaveAsJPG.gcaction -to /path/destfolder