Problem embedding Type 1 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
n.godet
Posts: 9
Joined: Tue Nov 08 2005
Location: Paris (France)

Problem embedding Type 1 Fonts

Post by n.godet » Wed Nov 09 2005

I try to embed Type 1 (Postscript) fonts but it fails.
I have no problems with TrueType fonts.
pdf := PDFDriverInit(PrinterName);
EnablePrinter(pdf, LicensedTo, ActivationCode);
SetDefaultPrinter(pdf);

SetResolution(pdf, 1200);
SetFontEmbedding(pdf, 1);
SetDefaultConfig(pdf);

SetDefaultFileName(pdf, 'C:\Binder1.pdf');
SetFileNameOptions(pdf, NoPrompt + UseFileName + Concatenate + FullEmbed);
EnablePrinter(pdf, LicensedTo, ActivationCode);
BatchConvertEx(pdf, PChar('C:\*.doc'));

RestoreDefaultPrinter(pdf);
DriverEnd(pdf);
Any ideas?

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

Post by Joan » Thu Nov 10 2005

Hello,

Are the Type 1 fonts you are using Licensed Fonts? If so you need to add 'EmbedLicensedFonts' option to your call of SetFileNameOptions()

EmbedLicensedFonts = 400000 Hex = 4194304 Decimal

Please note that FullEmbed will embed all the font in the PDF file which will make the resulting file very large if the fonts files are large.

Hope this helps.

n.godet
Posts: 9
Joined: Tue Nov 08 2005
Location: Paris (France)

Post by n.godet » Thu Nov 10 2005

i've already test these options:
EmbedFonts = 16;
FullEmbed = 512;
EmbedStandardFonts = 2097152;
EmbedLicensedFonts = 4194304;
EmbedSimulatedFonts = 16777216;

Should i combine them?

The curious thing, is that it impacts only the Postscript fonts...?

n.godet
Posts: 9
Joined: Tue Nov 08 2005
Location: Paris (France)

Post by n.godet » Thu Nov 10 2005

for much more precision, i've got the problem with fonts which encoding is ANSI.

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

Post by Joan » Fri Nov 11 2005

Please try:

EmbedFonts + EmbedLicensedFonts

If this didn't help please try

EmbedFonts+EmbedStandardFonts+EmbeLicensedFonts.

n.godet
Posts: 9
Joined: Tue Nov 08 2005
Location: Paris (France)

Post by n.godet » Tue Nov 15 2005

I tried to combine different paramaters, it doesn't work...
I can't embed Type 1 (Postscript) fonts.
What shall i do???

n.godet
Posts: 9
Joined: Tue Nov 08 2005
Location: Paris (France)

Post by n.godet » Wed Nov 16 2005

I'm still looking for an answer.

I thought my fonts where very special, then that the amyuni printer wasn't able to embed Postscript fonts.
I made a test with the Amyuni PDF Converter End-User version, it embed all my fonts (checking the right boxes in the printer options).
Back to the developper version, it doesn't work.
Are these different values correct?
NoPrompt = 1; // 1 Hex
UseFileName = 2; // 2 Hex
Concatenate = 4; // 4 Hex
EmbedFonts = 16; // 10 Hex
BroadcastMessages = 32; // 20 Hex
EncryptDocument = 256; // 100 Hex
FullEmbed = 512; // 200 Hex
LinearizeForWeb = 32768; // 8000 Hex
EmbedStandardFonts = 2097152; // 200000 Hex
EmbedLicensedFonts = 4194304; // 400000 Hex
EmbedSimulatedFonts = 16777216; // 1000000 Hex
they come from the doc, but is there an error?
I really need some help on this problem...

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

Post by Joan » Mon Nov 21 2005

Hello,

The values are right, at least the hexadecimal one are right. You need to call the following:

FileNameOptions = NoPrompt + UseFileName + EmbedFonts(=16) + EmbedLicensedFonts(= 4194304) + EmbedStandardFonts(=2097152)

The above will partially embed your fonts, if you want to fully embed them you need to add FullEmbed to the list.

Hope this helps.

Post Reply