lib/fillable-pdf-th.rb in fillable-pdf-th-1.0.2 vs lib/fillable-pdf-th.rb in fillable-pdf-th-1.0.3
- old
+ new
@@ -11,10 +11,10 @@
PDF_ACRO_FORM = Rjb.import 'com.itextpdf.forms.PdfAcroForm'
PDF_FORM_FIELD = Rjb.import 'com.itextpdf.forms.fields.PdfFormField'
PDF_FONT_ENCODE = Rjb.import 'com.itextpdf.io.font.PdfEncodings'
PDF_FONT = Rjb.import 'com.itextpdf.kernel.font.PdfFont'
PDF_FONT_FACTORY = Rjb.import 'com.itextpdf.kernel.font.PdfFontFactory'
- FONT = 'default-font/angsana_new.ttf'
+ FONT = File.join(File.dirname(__FILE__), "default-font/angsana_new.ttf")
##
# Opens a given fillable-pdf PDF file and prepares it for modification.
#
# @param [String|Symbol] file_path the name of the PDF file or file path
#