Custom fonts are not coming in generated PDF with pega provided procedure
I've imported custom font for my application and applied it in skin rule. For section and HTML rule it's working fine. But when I am generating PDF using this font, it's not coming in generated PDF. I've used procedure mentioned in the below post to fix the problem
in my HTML Rule, when I am giving Font source URL as "webwb/<Fontname.extension>" within style tag and going to preview it's giving me perfect result without this issue. Now I'm giving it as url('C:\\PRPCPersonalEdition\jre1.8.0_121\Fonts\<fontname.extension>') and going to preview it's again throwing the issue. (Note: I've put all the files this directory also). So I guess the issue is with Directory.
So if there is any possibility to pass "webwb" directory value as a parameter in HTMLtoPDF activity this issue will be fixed.
Couple of things, previously I've used font-family in HTML tag to embed my font. Pega uses pd4ml library for pdf generation purpose where we need to pass font face in HTML tag based on my ttf file rather than using font-family. Source : http://pd4ml.com/cookbook/pd4ml_pdf_true_type_fonts.htm
So now somehow this issue got 90% resolved. But getting new issue.
Now current issue :
For Debuging purpose I have passed Param.pyPDFPropsDirectory value where properties file is getting generated. In my properties file I am getting font.dir.location=C\:\\\\PRPCPersonalEdition\\\\jre1.8.0_121\\\\lib\\\\fonts, But I've set this value this value as C:\\PRPCPersonalEdition\\jre1.8.0_121\\lib\\fonts (pyPDFFontsDirectory parameter value). For this my correct font is not getting picked up.
Any body has any idea why this value is coming like this?
Also I've tried giving this value like C:\PRPCPersonalEdition\jre1.8.0_121\lib\fonts and C:/PRPCPersonalEdition/jre1.8.0_121/lib/fonts