ghostscript - How to convert PDF to Image without generating a file -
based on code how-to-convert-pdf-to-image-using-ghostscript-api
i trying figure out how image foreach page without creating files
to image foreach page setted outputtomultiplefile = true
.
then went step step through code wasn't able find part files created.
want know need change in code?
or else helps achieve this
edit
here current parameters:
args[0] = args[1] =-dnopause args[2] =-dbatch args[3] =-dsafer args[4] =-sdevice=pnggray args[5] =-r130 args[6] =-soutputfile="c:\scannen1.pdf%d.png" args[7] ="c:\scannen1.pdf"
you need use device doesn't write file, all image format devices write output file. use display device return bitmap in memory template , write own device, or can modify 1 of existing devices.
modifying existing device task developer , while not excessively difficult not trivial either.
in event, aren't going want fiddling command line switches. sinatr i'm puzzled can usefully ghostscript doesn't involve writing file.
oh, 1 other possibility load nulldevice, done in postscript , bit bucket.
Comments
Post a Comment