I am trying to create PDF in the Rails application using PDFKit and
wkhtmltopdf (and Debian). Everything works fine, except generated PDF
file contains so called CID fonts. To check PDF fonts I used Foxit
Reader or Acrobat Reader.
However I have to send generated PDF to legacy system that doesn’t
support such fonts…
I haven’t found a way to force wkhtmltopdf to output PDF with non-CID
fonts. Does anyone know if it is possible at all?
I am not sure, but having wrestled with wkhtmltopdf on other issues, one
question is which version of wkhtmltopdf do you have installed? There is
a
version(last time I checked) which is a static binary with a patched QT.
For
me I had to install this to get certain rendering to work, and also for
it
to work on Ubuntu Server. I am wondering if possibly this might help,
although is more like a shot in the dark. I wrote a post on this which
may
help if you do want to install the static binary, as for me it was not
completely straight-forward: http://blog.structuralartistry.com/post/2327213260/installing-wkhtmltopdf-on-ubuntu-server
I am not sure, but having wrestled with wkhtmltopdf on other issues, one
question is which version of wkhtmltopdf do you have installed? There is
a
version(last time I checked) which is a static binary with a patched QT.
I cannot check right now, but I guess I have a static 0.10.0 rc1
installed.
Actually installation wasn’t that hard for me and PDF generation works
quite well. The only problem is with fonts wkhtmltopdf (or WebKit?)
uses.
I’d like to use standard Type 1 fonts instead of Type 2 CID fonts.