linux - Ghostscript: Convert PDFs to other filetypes without using the filesystem -
I want to use C APIs on ghostscript on Linux to convert PDFs to other things: fewer pages and two PDF examples with images.
My understanding was supplying the callback function with GPS, I could read and read data from them. Although by my experiment and reading, it does not seem like this
My motivation to do this is that I would like to have PDF processing on scale, and do not want my throughput to be held back a spinning disk.
Am I missing something?
The SDDI API allows you to provide your replacement for stdin, stdout and stderr, this No activity is influenced by an interpreter who does not use them.
The pdfwrite tool makes extensive use of the file system to write temporary files, grab the various intermediate parts of the PDF file, as it has been explained, it later rejoined the new PDF file. Are there. Temporary files are not written in stdout or stderr.
There is no way to avoid this behavior.
Using the file system again, unless you specify stdout the destination of bitmap where you can use stdio API calls to redirect stdout elsewhere if the image is high enough resolution If the song is sung, GS will use a display list and then the display list will be stored in a temporary file which will be unaffected by stdio redirection.
Comments
Post a Comment