06-07-2021, 12:38 PM
(This post was last modified: 06-07-2021, 01:23 PM by rich2005.
Edit Reason: typo
)
I would not use Gimp for this. There is a package poppler-utils which has several PDF related utilities.
, One is pdfimages to extract images. Man pdfimages for all the options, which of course I shouls have done before posting This bit useful
If both -png and -tiff are specified, CMYK images will be written as TIFF and all other images will be written as PNG.
Edit: A bit more information will help. Are the images in the pdf actually a scan of a whole page, and what is actually required is a method of cropping the image(s) from the page background. There is a Gimp script DivideScannedImages which has a batch function. Can you give details of a single page layout ?
There is also this: Not Gimp, Imagemagick https://stackoverflow.com/questions/4968...background
, One is pdfimages to extract images. Man pdfimages for all the options, which of course I shouls have done before posting This bit useful
If both -png and -tiff are specified, CMYK images will be written as TIFF and all other images will be written as PNG.
Code:
pdfimages -png -tif filename.pdf your-ref
Edit: A bit more information will help. Are the images in the pdf actually a scan of a whole page, and what is actually required is a method of cropping the image(s) from the page background. There is a Gimp script DivideScannedImages which has a batch function. Can you give details of a single page layout ?
There is also this: Not Gimp, Imagemagick https://stackoverflow.com/questions/4968...background