Unknown EMF record types when converting to PDF

Hi,

I'm converting EMF files into PDF by using Windows to enum the records - in general this is working well but there is an odd problem with text - which only appears for a Brazilian (Portuguese) user.

Basically the text is stored using unicode which in ASCII is "VLOYLD" but this should be "silvia". Word imports the EMF and displays the text as "silvia" until you try and edit the EMF when it immediately turns into "VLOYLD".

Interestingly Internet Explorer displays the EMF correctly as well - I have hex-dumped the EMF file and the text is definitely stored as "VLOTLD" so somehow there is some sort of character translation going on.

The only EMF records that I do not understand are EMR_SETLINKEDUFIS and EMR_FORCEUFIMAPPING - but nowhere is there any definition about what these data structures contain and ho wto use them.

I am guessing that these EMF records are to do with Unicode character mapping.

Has anyone any ideas?

Best regards,
Adrian Nelson
www.UtilityWarrior.com
[1059 byte] By [UtilityWarrior] at [2007-11-20 3:08:52]
# 1 Re: Unknown EMF record types when converting to PDF
If you notice, the change is just case shift and 3 characters shift. Can you use this and do the conversion yourself when the Portuguese is in affect?

silvia => VLOYLD

s + 3 characters = v + caps = V
i + 3 characters = l + caps = L
l + 3 characters = o + caps = O
v + 3 characters = y + caps = Y
i + 3 characters = l + caps = L
a + 3 characters = d + caps = D
PeejAvery at 2007-11-10 3:39:32 >
# 2 Re: Unknown EMF record types when converting to PDF
Hi,

Thanks for the suggestion - I had noticed this - but the problem is that I do not know from the contents of the EMF that this should be applied - and for other language versions of Windows (if this is the reason) it might be different again.

The strange thing is that if I import the EMF into Word 2003 it initially appears correct but if you then edit the EMF inside of Word as soon as you try and edit it the text changes from silvia to VLOYLD.

The only EMF records that I canot decode are EMR_SETLINKEDUFIS and EMR_FORCEUFIMAPPING and so I am presuming that it must be these that are causing the characters to be displayed differently.

Thanks for taking the time to answer my query. Does anyone know what a UFI is?

Best regards,
Adrian Nelson
www.UtilityWarrior.com
UtilityWarrior at 2007-11-10 3:40:31 >