acrobat to emf  Home  PDF2Image  ScreenShots  Articles  Products  Downloads
acrobat to emf Acrobat to EMF Converter
Acrobat to EMF - Convert Acrobat files to EMF files (acrobat2emf,acrobattoemf)

Windows Enhanced Metafile (EMF)

A type of spool file used by print spoolers on NT-based operating systems. An EMF reduces the time it takes for control to be returned to an application that makes a print request. The GDI function calls that produce the application's graphics object are stored directly in the EMF. The time-consuming execution of these stored GDI functions is carried out later, in the background, when the spool file is played back. Using EMF spool files also promotes printer device independence. For example, a picture that measures 2 inches by 4 inches on a VGA display and that is stored in an EMF maintains these original dimensions, regardless of the printer's resolution.

You can read ENHMETAHEADER structure from your code to retrieve information from an EMF file.

ENHMETAHEADER

The ENHMETAHEADER structure contains enhanced-metafile data such as the dimensions of the picture stored in the enhanced metafile, the count of records in the enhanced metafile, the resolution of the device on which the picture was created, and so on.

This structure is always the first record in an enhanced metafile.

typedef struct tagENHMETAHEADER {
    DWORD iType;
    DWORD nSize;
    RECTL rclBounds;
    RECTL rclFrame;
    DWORD dSignature;
    DWORD nVersion;
    DWORD nBytes;
    DWORD nRecords;
    WORD nHandles;
    WORD sReserved;
    DWORD nDescription;
    DWORD offDescription;
    DWORD nPalEntries;
    SIZEL szlDevice;
    SIZEL szlMillimeters;
#if (WINVER >= 0x0400)
    DWORD cbPixelFormat;
    DWORD offPixelFormat;
    DWORD bOpenGL;
#endif /* WINVER >= 0x0400 */
#if (WINVER >= 0x0500)
    SIZEL szlMicrometers;
#endif /* WINVER >= 0x0500 */
} ENHMETAHEADER, *PENHMETAHEADER;

Members

iType
Specifies the record type. This member must specify the value assigned to the EMR_HEADER constant.

nSize
Specifies the structure size, in bytes.

rclBounds
Specifies the dimensions, in device units, of the smallest rectangle that can be drawn around the picture stored in the metafile. This rectangle is supplied by graphics device interface (GDI). Its dimensions include the right and bottom edges.

rclFrame
Specifies the dimensions, in .01 millimeter units, of a rectangle that surrounds the picture stored in the metafile. This rectangle must be supplied by the application that creates the metafile. Its dimensions include the right and bottom edges.

dSignature
Specifies a double word signature. This member must specify the value assigned to the ENHMETA_SIGNATURE constant.

nVersion
Specifies the metafile version. The current version value is 0x10000.

nBytes
Specifies the size of the enhanced metafile, in bytes.

nRecords
Specifies the number of records in the enhanced metafile.

nHandles
Specifies the number of handles in the enhanced-metafile handle table. (Index zero in this table is reserved.)

sReserved
Reserved; must be zero.

nDescription
Specifies the number of characters in the array that contains the description of the enhanced metafile's contents. This member should be set to zero if the enhanced metafile does not contain a description string.

offDescription
Specifies the offset from the beginning of the ENHMETAHEADER structure to the array that contains the description of the enhanced metafile's contents. This member should be set to zero if the enhanced metafile does not contain a description string.

nPalEntries
Specifies the number of entries in the enhanced metafile's palette.

szlDevice
Specifies the resolution of the reference device, in pixels.

szlMillimeters
Specifies the resolution of the reference device, in millimeters.

cbPixelFormat
Windows 95/98/Me, Windows NT 4.0 and later: Specifies the size of the last recorded pixel format in a metafile. If a pixel format is set in a reference DC at the start of recording, cbPixelFormat is set to the size of the PIXELFORMATDESCRIPTOR. When no pixel format is set when a metafile is recorded, this member is set to zero. If more than a single pixel format is set, the header points to the last pixel format.
 
offPixelFormat
Windows 95/98/Me, Windows NT 4.0 and later: Specifies the offset of pixel format used when recording a metafile. If a pixel format is set in a reference DC at the start of recording or during recording, offPixelFormat is set to the offset of the PIXELFORMATDESCRIPTOR in the metafile. If no pixel format is set when a metafile is recorded, this member is set to zero. If more than a single pixel format is set, the header points to the last pixel format.

bOpenGL
Windows 95/98/Me, Windows NT 4.0 and later:: Specifies whether any OpenGL records are present in a metafile. bOpenGL is a simple Boolean flag that you can use to determine whether an enhanced metafile requires OpenGL handling. When a metafile contains OpenGL records, bOpenGL is TRUE; otherwise it is FALSE.

szlMicrometers
Windows 98/Me, Windows 2000/XP: Size of the reference device in micrometers.

Acrobat to EMF Converter is able to convert Acrobat PDF files to Windows EMF files, it will keep vector and text information in output EMF file, you can set "File Type" to EMF in following screenshot, then you can convert your PDF file to EMF format easily.

MS Office (Word, Excel, PowerPoint, etc.) and some drawing applications are all support EMF format, after you convert your PDF file to EMF format, you can import or insert EMF file into these applications for reuse purpose.

Click here to learn more...


Home | Products | Downloads | Support | Links | Contact

Copyright © 2000- VeryPDF.com, Inc. All rights reserved.
Send comments about this site to the webmaster.