| | |
Unknown EMF record types when converting to PDF
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: May 2006
Posts: 1
Reputation:
Solved Threads: 0
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
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
- pdf and vb6...frustrating!! (Visual Basic 4 / 5 / 6)
- how to take screenshot (OS X)
- Trying to create a login system (PHP)
- DNS record types (PHP)
- DNS: RouteThrough , " RT" in java networking programming (Java)
- Math problem in C (C)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: C and VB
- Next Thread: So many errors!
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window





