07-01-2023, 08:25 AM
(This post was last modified: 07-01-2023, 11:21 AM by rich2005.
Edit Reason: typo
)
Quote:Moreover, advice is also requested on
(1) Whether such files could be saved with .svg extension?
Remember Gimp is a bitmap (raster) editor. You cannot export an image in vector (SVG) format.
When Gimp opens a PDF, any vector 'objects' including text are rasterised. The image is now composed of pixels.
Quote:I need to generate images of 50 dpi for each page of the pdf document. That only GIMP can do, manually, page-wise. I can do it. But highly monotonous. Import, set the dpi then convert each page and save them with a specific page number individually.
For a faster method use ImageMagick (IM). Same as Gimp the images are rasterised. You are using linux so IM might already be installed.
For a single pdf say, imagename.pdf
Code:
convert -density 50 imagename.pdf imagename.jpg
produces a set of files imagename-0.jpg imagename-1.jpg ....imagename-n.jpg
All at 50 ppi with correspondingly smaller pixel size. A4 size becomes 413x585 pix You can of course render other than jpeg, change the extension in the command line.
EDIT: If the PDF is as subject line, text only. Get a smaller file size using grayscale rendering. Just a slight addition to the IM command.
Code:
convert -density 50 imagename.pdf -colorspace Gray imagename-gray.jpg
No difference with what you see when the jpeg is opened in an image viewer. These are low quality images (50 ppi), do not expect anything wonderful but depending on the original text size, should be legible.