From: Austin Ziegler Date: 2007-12-19T22:10:53+09:00 Subject: Re: PDF::Writer, embedding non-PNGs On 12/19/07, Bertram Scharpf wrote: > One further way failed as well: I found a Code39 barcode font on the web > as a TrueType font. Trying to embed it as described in the manual yields > the fatal message: > > /usr/lib/ruby/gems/1.8/gems/pdf-writer-1.1.3/lib/pdf/writer.rb:878:in `load_font': undefined local variable or method `fbfile' for # (NameError) PDF::Writer 1.1.3 is not the most recent version. I believe that Greg and Michael fixed some font bugs. Your expectation (of being able to embed EPS or another PDF) is unrealistic given the reality of the internal implementation of PDF. If you can grab the drawing instructions from an EPS (not hard, and can be programmed), you can insert them directly into an object stream on a PDF. (I've actually done this, manually.) -austin