TIFF to PDF

revuesbio revuesbio at gmail.com
Mon May 21 07:52:07 EDT 2007


On 21 mai, 13:01, "Gabriel Genellina" <gagsl-... at yahoo.com.ar> wrote:
> En Mon, 21 May 2007 07:42:21 -0300, revuesbio <revues... at gmail.com>
> escribió:
>
> > os.system('"C:\Program Files\GnuWin32\bin\tiff2pdf.exe" -o C:\test.pdf
> > C:\test.TIF')
>
> \ is used as a escape character in strings.
> Use either \\ or a raw string, that is:
>
> os.system('"C:\\Program Files\\GnuWin32\\bin\\tiff2pdf.exe" -o
> C:\\test.pdf C:\\test.TIF')
> os.system(r'"C:\Program Files\GnuWin32\bin\tiff2pdf.exe" -o C:\test.pdf
> C:\test.TIF')
>
> (This should be added to the Python FAQ - the most related entry is about
> raw strings ending in \)
>
> --
> Gabriel Genellina

Thank you very much,
all is ok!




More information about the Python-list mailing list