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
  • 152,115
  • 15
  • 115
  • 172
Sachins
  • 31
  • 1
  • 7

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
  • 152,115
  • 15
  • 115
  • 172