Ubuntu – PDFs generated by LyX not searchable in 12.10 or 13.04

latexlyxpdf

I recently updated one of my computers to 12.10 and did a clean install of 13.04 on another, but neither allow me to search a PDF that I exported using LyX (LaTeX editor). I have no problem searching PDF's exported using TeXmaker on both computers, and I had no problems searching any PDF before I did the upgrade.

UPDATE: I've tried using other PDF readers (in 13.04) with mixed results. Document Viewer (once called Evince I believe) and Okular have the same issue. I CAN search them, but only for words/letters that show up in a math environment. I still cannot search for words found in standard text environments.

However, I was able to install linux versions of Adobe Reader and Foxit Reader and while their interfaces are not the best on Ubuntu, I am able to search anywhere in the PDF using either application. Thoughts?

Best Answer

This doesn't sound related to ubuntu. It's much more likely that you're generating pdf files that aren't lining up with your expectations.

Since you're doing pdf programming, it's worth knowing there are two main render libs for linux: poppler and mupdf. Gnome's default pdf viewer (and Unity's) is evince; it uses poppler. I usually test mupdf by building the latest version of llpp. But don't forget that Chrome ships with a pdf viewer plugin that I think is based on or made by Adobe. And Firefox now comes with pdf.js. Pdf.js is under heavy development. It's likely you'll hit some bad render bugs in firefox right now, but it's rapidly getting better (and all the bugs I've found were already fixed upstream..).

My most recent is experience is with itext, but I also like using tex/xelatex. I don't have problems making pdfs with searchable text. Since you're using tex stuff, you'll likely get better answers over at http://tex.stackexchange.com

my tests

I encountered zero problems with search / select / copy / paste behaviour. Admittedly, I didn't create the pdf's on ubuntu.

files made with:

  • itext (images interspersed with text)
  • xelatex (hello world text)
  • lyx -> pdflatex (hello world text)

OS:

  • ubuntu 12.04 livecd
  • ubuntu 13.10 livecd

programs:

  • firefox / pdfjs
  • evince / poppler