0

How to convert multiple pages of single pdf into one pdf

import os 
os.system('convert 1902CAN00048.pdf outpit1.tiff -alpha Off shell=True')

error 255

AKX
  • 123,782
  • 12
  • 99
  • 138
Sachins
  • 21
  • 5

1 Answers1

0

That shell=True seems out of place. It's a parameter you'd use with subprocess.Popen, not os.system.

Have you tried

import os
os.system('convert 1902CAN00048.pdf outpit1.tiff -alpha off')

?

Does convert 1902CAN00048.pdf outpit1.tiff -alpha off work on the command line as you expect?

AKX
  • 123,782
  • 12
  • 99
  • 138