-1

I am converting EMF to PDF, but I went into a problematic field. I have some EMF spool files, which contain some undocumented EMR structures such as EMR_FORCEUFIMAPPING and EMR_GDICOMMENT.

The MSDN is not so descriptive about these records, so searching these keywords didn't help me to find my answers. As i know these records can help me to embed fonts into my generated PDFs. Does anyone have experience in this field? Can you recommend me some books or tutorials or source code repositories or some examples,

How to process these records?

Thank you.

Robert
  • 53
  • 1
  • 6

1 Answers1

2

They are not undocumented. See here and here. I don't know how you could translate the EMR_FORCEUIFMAPPING into anything meaningful in PDF, so you should probably just discard it. The EMR_GDICOMMENT may contain any of several important records that Microsoft bizarrely chose to embed in comment records instead of making them separate record types. Those are (vaguely) documented here.

Ed Bayiates
  • 11,060
  • 4
  • 43
  • 62
Carey Gregory
  • 6,836
  • 2
  • 26
  • 47