Hi Everybody, 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? Any help is much appreciated! Thanks! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Tue, Feb 8, 2011 at 3:17 AM, Mart L. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi Everybody, > > 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> > > Any help is much appreciated! > > Thanks! > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
David Kahn wrote in post #980319:> On Tue, Feb 8, 2011 at 3:17 AM, Mart L. <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > >> > 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. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi, Did you find the solution to "*I''d like to use standard Type 1 fonts instead of Type 2 CID fonts*"? I''ve the same problem. Thanks, Isart. El martes, 8 de febrero de 2011 16:14:55 UTC+1, Ruby-Forum.com User escribió:> > David Kahn wrote in post #980319: > > On Tue, Feb 8, 2011 at 3:17 AM, Mart L. <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org<javascript:>> > wrote: > > > >> > > 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. > > -- > Posted via http://www.ruby-forum.com/. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6bd84fa5-6762-4260-94dd-842f2c25615d%40googlegroups.com?hl=en-US. For more options, visit https://groups.google.com/groups/opt_out.