SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2014-06-07 16:21:04

kosmos890
#! Member
Registered: 2012-05-01
Posts: 76

Evince doesn't display monospace fonts with some pdf files

I have installed ttf-mscorefonts and I expect Courier monospace fonts or another monospace
fonts family like Liberation, DejaVu, Bitstream.

I try also xpdf, epdfview, zathura and apvlv but the problem remains.

Offline

Help fund CrunchBang, donate to the project!

#2 2014-06-07 17:04:53

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Evince doesn't display monospace fonts with some pdf files

Hm, probably the fonts are not embedded into the PDF file and libpoppler doesn't handle that properly. You can try embedding ALL fonts into the PDF file and see if that did the job. Make sure ghostscript is installed (sudo apt-get install ghostscript), and then do

 gs -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -DCompressFonts=true -DSubsetFonts=true -DNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$OUTFILE -c '.setpdfwrite <</NeverEmbed [ ]>> setdistillerparams' -f "$INFILE"

where $INFILE is the pdf document you want to fix and $OUTFILE is the file the copy with the embedded fonts will be written to. I have this problem too with pdf readers that are based on libpoppler (okular, evince,...) but have never seen it with mupdf.

Offline

#3 2014-06-07 17:51:19

kosmos890
#! Member
Registered: 2012-05-01
Posts: 76

Re: Evince doesn't display monospace fonts with some pdf files

 
gs -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -DCompressFonts=true -DSubsetFonts=true -DNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$OUTFILE -c '.setpdfwrite <</NeverEmbed [ ]>> setdistillerparams' -f "$INFILE"

Offline

#4 2014-06-07 18:15:06

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Evince doesn't display monospace fonts with some pdf files

 
gs -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -DCompressFonts=true -DSubsetFonts=true -DNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=$OUTFILE -c '.setpdfwrite <</NeverEmbed [ ]>> setdistillerparams' -f "$INFILE"

Offline

#5 2014-06-08 07:57:25

kosmos890
#! Member
Registered: 2012-05-01
Posts: 76

Re: Evince doesn't display monospace fonts with some pdf files

km@km:~/tmp$ pdfclean input.pdf output.pdf
+ pdf/pdf_xref.c:502: pdf_load_xref(): object offset out of range: 0 (7 0 R)
\ pdf/pdf_xref.c:537: pdf_open_xref_with_stream(): trying to repair

Offline

#6 2014-06-08 08:07:50

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Evince doesn't display monospace fonts with some pdf files

Well, this seems to be some bug in libpoppler then.

A method that might help to circumvent the problem: convert the PDF to PS: pdf2ps $input.pdf $output.ps , convert to PDF again ps2pdf $output.ps $output.pdf and eventually try all the other methods again if this didn't fix it?

I'm running out of ideas that don't involve abusing pdfTeX.

Offline

#7 2014-06-08 12:57:23

kosmos890
#! Member
Registered: 2012-05-01
Posts: 76

Re: Evince doesn't display monospace fonts with some pdf files

@twoion

pdf2ps displays similar messages.

km@km:~/tmp/pdfs$ pdf2ps input.pdf output.ps
**** Warning: considering '0000000000 XXXXX n' as a free entry.
**** Warning: File has insufficient data for an image.
error: cannot decode code stream
unable to decode JPX image data.

Thank you for all your assistance!

Offline

#8 2014-06-08 14:10:05

twoion
Emerald Caffeine
From: 星界
Registered: 2012-05-11
Posts: 1,648

Re: Evince doesn't display monospace fonts with some pdf files

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: bleh

Debian Logo