Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi,

I have a requirement to convert EMF file to PCL. I have read all the record types from EMF file. How can I transform the EMF records to corresponding PCL format (I have some idea about the PCL commands, but don't know much about the relation between values in EMF and PCL?

For example, consider the EMF record type "EMR_EXTTEXTOUTW", I know the X & Y coordinates, font used, character spacing etc. How can I convert these XY coordinate to corresponding position in PCL? What are the factors(destination resolution, pagesize etc) should I consider for converting these parameters. If possible, please give a code snippet.

Thanks in advance.
Posted
Comments
Sergey Alexandrovich Kryukov 30-May-13 10:48am    
Do you mean this:
http://en.wikipedia.org/wiki/Printer_Command_Language?

I wonder why? to make it bound to HP printers forever?

—SA

1 solution

Although I can not figure out the purpose of this, I suggest you a pretty much simpler approach: install a PCL printer and set it up to file, than use regular printing to print the emf graphics to that printer. And you get the pcl output from emf. Or you could use a tool like this: http://www.leadtools.com/sdk/formats/image-formats.htm[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900