Embedding OpenType fonts

The Amyuni PDF Converter is our Printer Driver that enables you to convert any documents to PDF format. If you have any questions about installing and using the Amyuni PDF Converter please post them here.
Post Reply
wageoghe
Posts: 5
Joined: Mon Feb 27 2006

Embedding OpenType fonts

Post by wageoghe »

We are using the developer version of the Amyuni driver (2.10e).

We are having a problem embeddeding OpenType fonts. If we draw text using an OpenType font, the font is not embedded in the output PDF file.

Using the FileNameOptionsEx property, we are specifying the following hex values (added together):
PDF.FileNameOptionsEx = &H1+&H2+&H10+&H80+&H200+&H200000+&H1000000

1 - No Prompt
2 - Use Filename
10 - Embed Fonts
80 - Multilingual Support
200 - Full Embed
200000 - Embed Standard Fonts
1000000 - Embed Simulated Fonts

If we view the output PDF file on a computer that does not have the particular OpenType font installed, the text displays, but does not use the correct font.

If we view the output PDF file on a computer that does have the particular OpenType font installed, the text displays using the correct font.

TrueType fonts embed without any problems.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Please try version 2.50 to embed Open Type Fonts. Also please remove the call to Embed Simulated Fonts, this is not needed.

Hope this helps.
wageoghe
Posts: 5
Joined: Mon Feb 27 2006

Post by wageoghe »

I have more information on the actual symptoms.

The real problem might actually not be related to font embedding. We do use font embedding in our application, but I have done some more investigation and this is what I know:

When an OpenType font (at least the OpenType fonts that our customer is using) is used, the text as written to the PDF file using that font, does not display in the output PDF file. I have tried both embedding and not embedding.

With embedding turned on, the File > Document Properties dialog shows the OpenType font(s) as being embedded. However, any text that was drawn using those fonts is not visible.

I have written a test program in VB to test this using the 2.5 demo version of the Amyuni PDF Creator. I am using the demo version because we are on 2.1 right now and did not want to upgrade right away unless we were sure that we could guarantee that these fonts would work in 2.5.

Here are the lines that we use to configure PDF Creator before generating the PDF file:


Private Const PDFPRINTER As String = "Amyuni 250"
Private Const PDFLICENSE As String = "07......539D8EC6E6E6"
Private Const PDFLICENSEE As String = "Evaluation Version Developer"

Private Const EMBED_FONTS As Long = &H10
Private Const FULL_EMBED As Long = &H200
Private Const EMBED_STANDARD As Long = &H200000
Private Const EMBED_LICENSED As Long = &H400000

Set oPDF = CreateObject("CDIntfEx.CDIntfEx")
oPDF.DriverInit PDFPRINTER
oPDF.EnablePrinter PDFLICENSEE, PDFLICENSE
oPDF.SetDefaultPrinter
oPDF.DefaultFilename = "c:\Test.pdf"
oPDF.FilenameOptionsex = 1 + 2 + EMBED_FONTS + FULL_EMBED + EMBED_STANDARD + EMBED_LICENSED


I can send you the font file if you are interested.
wageoghe
Posts: 5
Joined: Mon Feb 27 2006

Post by wageoghe »

One more update.

There has been some confusion here as to exactly what font was causing the problem. The customer sent several fonts, but, so far, I have found that only two have the problem that I described. Both of these fonts are actually TrueType fonts (according to the information displayed when I double click on the font files).

Both fonts contain symbols, sort of like Wingdings or Webdings.

I have also tried typing text into Word using the fonts and printing to the Amyuni PDF Creator printer driver (as opposed to using the Developer interface) and I see the same problem. The output PDF file does not show any text when the text was drawn using the two fonts in question.

I can still send the fonts that cause the problem.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Try to convert the same file using Multilanguage support, will you get better output.

If the characters are unicode, multilanguage support is needed.

Hope this helps.
wageoghe
Posts: 5
Joined: Mon Feb 27 2006

Post by wageoghe »

When I add Multilingual Support (80 hex) to the SetFilenameOptionsEx line ( + &H80), I still do not get the correct output.

Prior to adding multilingual support, NOTHING was displayed in the PDF file for text that used the two fonts in question.

After adding multilingual support, a rectangle is displayed for each character in text that uses the two fonts.

Would you like for me to send you the fonts?
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Yes, please send us the fonts to support@amyuni.com with some explanation on what is happening and our Technical Support Engineers will get back to you.
galattila
Posts: 3
Joined: Thu Aug 10 2006

Post by galattila »

Hello,

We have same problem. Use 2.09 PDF Converter, and we would like to create a PDF documentum with TimesNewRoman CE (Central Europe ) and TimesNewRoman CYR (Cyrillic) TrueType fonts, in same page unmethodically. The firs half page is good, then some characters not displayed. There is a rectangle - in CE and CYR text. It seems out of characters.
Is there any solution?
Attila
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

PDF Converter 2.09 is a little bit old. Our latest version is 2.51-b and i believe this issue is resolved in the latest version.

Please download and try the latest version from our website www.amyuni.com

Hope this helps.
galattila
Posts: 3
Joined: Thu Aug 10 2006

Post by galattila »

Hello,

2.51 version is free, or we need to pay for upgrade?


Thanks
Attila
rec
Posts: 19
Joined: Tue Feb 21 2006

Post by rec »

I am having a similar problem with a specific font that is used by our customers (an old version of Letter Gothic).

If I embed fonts in the PDF file, using DM_EMBED_FONTS and DM_EMBED_STANDARD_FONTS and also include the DM_MULTILINGUAL_SUPPORT option (to ensure Uncicode text displayed correctly), then the font ends up displayed as squares in the PDF. If I remove the DM_MULTILINGUAL_SUPPORT option, then the fonts work, but any Unicode text doesn't display.

I am using v2.50g. I am happy to send copies of the fonts if required. Now, currently, I always like to have DM_MULTILINGUAL_SUPPORT enabled, but I could change my code to only enable this if there actually is any Unicode text.
galattila
Posts: 3
Joined: Thu Aug 10 2006

Post by galattila »

Hello,

If I use PDF Converter 2.08, it seems OK. We will downgrade, it is free.

Thanks,
Attila
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Rec, are you viewind the file in the PDF Creator or in Acrobat Reader? I suggest that you try version 2.51-b (this is the latest release on our site), if you are still having problems with this you can send us the file to check it to support@amyuni.com

Gallatila, if you have a current maintenance plan that entitles you free access to upgrades, the upgrade will be free of charge, if not you will have to pay for it.
Post Reply