944,093 Members | Top Members by Rank

Ad:
Nov 20th, 2006
0

Unknown EMF record types when converting to PDF

Expand Post »
Hi,

I've written an Image to PDF DLL that converts EMF files into PDF by using Windows to enum the records and then I convert these into native PDF commands rather than rendering into a bitmap - in general this is working well but there is an odd problem with text - which only (so far) 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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
UtilityWarrior is offline Offline
1 posts
since May 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: C and VB
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: So many errors!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC