This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Home
Welcome to the grails-pdfplugin wiki!
I could not add an issue, so I am posting it here.
Embedding font support
Is it possible to add embedding font support to grails-pdfplugin? When creating pdfs in langages with diactric marks, letters with diactric marks are not shown since there is no embedded font to display them. To change it I have made following:
Added new configuration variable in Config.groovy:
pdfplugin.addFonts=["/media/disk/Windows/Fonts/arial.ttf"]
Modified PdfService.groovy
(added imports)
import com.lowagie.text.pdf.BaseFont
import org.codehaus.groovy.grails.commons.ConfigurationHolder
(after creating renderer add fonts)
ITextRenderer renderer = new ITextRenderer();
def fonts = ConfigurationHolder.config.pdfplugin.addFonts
fonts.each {
renderer.getFontResolver().addFont (it,
BaseFont.IDENTITY_H,
BaseFont.NOT_EMBEDDED);
}
Best,
Marcin







