Home > Software design >  Extract pdf pages which contains an image
Extract pdf pages which contains an image

Time:12-13

I have a number of pdf files in which some pages contain images and others not. Is there a way to extract only those pages of the pdf which contains an image? Unfortunately, its not sufficient to simply extract the images. I need to make sure that the whole page that contains the image is extracted.

CodePudding user response:

cpdf -image-resolution 10000 in.pdf will list all images in the file. You can then extract the page numbers from the appropriate column of the output. You then do, for example cpdf in.pdf 63 -o p63.pdf for example to extract the given page.

  • Related