Why do I obtain countless 'programming' pages of characters/numbers when printing pdf/png files using lpr? -


i've got silly problem literally driving me mad:

when try print file using lpr file.pdf depending on file obtain 1 of following issues:

  1. the printer not recognise a4 format
  2. the file printed countless number of pages of programming code ( 'real' face of pdf file guess), characters , numbers.

the same happens png files.

i'm using mac os x el capitan , xerox colorqube printer. if open file acrobat or preview , make printing manually have no problem @ all.

i hope can give me clues because couldn't find useful on web.

ps: if use option -l printer prints sheet saying printer not configured print pdf files directly.

lpr sends file directly printer, may not understand pdf as-is, since pdf successor postscript - can contain familiar commands gets printed, rest, embedded preview , on - gets printed raw text

try using ghostscript convert postscript before sending printer:

gs -dsafer -dnopause -sdevice=(your printer name) -soutputfile=\|lpr file.pdf 

Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -