Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A script solution requested: conversion from text-only pdf to pagewise image files
#5
Thank you, Mr. rich2005 for replying to my email. You remain my emancipator.
(07-01-2023, 08:25 AM)rich2005 Wrote:
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. ...
Yes, my bad. I lost my rational senses. True. How can a raster system create a .svg file format? So how could I post that request. I apologise.


(07-01-2023, 08:25 AM)rich2005 Wrote: ... 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. ...
As usual you whetted my appetite. You made me find that imagemagick or popplar-utils could be used to join those 50 downgraded images into a pdf file, each image occupying one page.
Either,
Code:
convert image*.jpg output.pdf
Or
Code:
img2pdf *.jpg -o output.pdf
Reply


Messages In This Thread
RE: A script solution requested: conversion from text-only pdf to pagewise image files - by bkpsusmitaa - 07-01-2023, 12:30 PM

Forum Jump: