is it possible to print some (picture) Central Europe (CP1250) to PDF with PDFjet (open source version)?
There is a PDFjetCodePage constant value available:
And the PDFjetFont Initialize2 and Initialize4 methods accept that constant value:
Initialize2 (PDFjetPDF As PDF, FontName As String, CodePage As Int)
Initialize2 is used to create an Asian Font.
FontName - known working values are: 'AdobeMingStd-Light' - Chinese (Traditional). 'STHeitiSC-Light' - Chinese (Simplified). 'KozMinProVI-Regular' - Japanese. 'AdobeMyungjoStd-Medium' - Korean.
CodePage - 1 of the PDFjetCodePage constants.
Initialize4 (PDFjetPDF As PDF, InputStream1 As InputStream, PDFjetCodePage As Int, Embed As Boolean)
But the Initialize4 method is not available with the Open Source version of PDFjet, so the Initialize2 method seems the only
possible solution.
The documentation is pretty vague - though there is a java example available:
http://pdfjet.com/java/examples/example-04.html
The comments in the Open Source source code state:
FontName - the font name. Please see Example_04.
CodePage - the code page. Must be: CodePage.UNICODE
A Google search found this page:
http://www.webbyexpert.com/pdfjet-encoding-options/.
Where someone is trying to use CP1250 with the Open Source PDFjet but there is no answer, only the question.
Sorry i can't be of more help
.
Martin.