By default, enscript only makes postscipt file (ps).
Your command line is missing two flags: small -p and capital -P. The command line must be like this:
enscript -B -P <PDF_PRINTER_NAME> code/bloom.c -p myfile.ps
According to enscript manpage
-P name, --printer=name
Spool the output to the printer name.
-p file, --output=file
Leave the output to file file. If the file is `-', enscript sends the output to the standard output stdout.
If a pdf printer in not available in the system, then ghostscript can convert the ps file to pdf file as follows:
sudo apt install ghostscript
ps2pdf myfile.ps myfile.pdf
or
enscript file -o - | ps2pdf - output.pdf
When pdf printer is default in the system, then something like this command, will output pdf files instead of the ps files:
enscript -2 -r -j --font=Times-Roman11 --word-wrap --mark-wrapped=arrow '%f' && sleep 2 && evince ~/PDF/_stdin_.pdf
- The `%f` designates the filename parameter.
- The `&& sleep 2 && evince ~/PDF/_stdin_.pdf` commands will wait two seconds for the print job to finish, then run the Evince PDF viewer to display the file _stdin_.pdf you just generated in the user’s PDF subdirectory.