Is there a way to invoke a command line program that requires a file argument to use stdin?

I am trying to get the pdftotext command to process data from stdin instead of caching intermediate data in a temporary file. Note that the pdftotext command is executed from a Java program.

pdftotext expects a file argument and, if not specified, prints usage information. As far as I can tell, stdin is ignored.

I have an intolerable solution (linux uses the pseudo-file / dev / stdin). The ideal solution would work on linux and windows, assuming pdftotext is present.

+3
source share
1 answer

pdftotext, -, - "stdin". , pdftotext - mypdf.txt pdf- stdin mypdf.txt. - , pdf stdout .

+3

All Articles