The following APIs are ones that deal with the conversion of meta images (ie WMF or EMF images).
If possible try converting a meta image to native PDF commands (using I2PDF_MetaToNativePDF and associated commands).
This gives much better quality and a smaller PDF size too. However, it is not possible to convert all possible meta image commands into native PDF
equivalent commands so the conversion may not be 100% accurate.
If you do not convert to native PDF then a meta image is rendered into an image bitmap using Windows to perform the rendering.
This results in a non-scalable and larger sized PDF but should be a pretty accurate conversion.
|
I2PDF_MetaStampImageMaxMP_Int |
Parameters: |
max megapixel size - specifies the meta image (EMF or WMF) maximum rendering size for an image stamp and must be a value between 1 and 200 inclusive (this is divided by 10 internally to give a value between 0.1 and 20.0). |
Return Value: |
0 - success
1 - invalid max megapixel size parameter |
Notes: |
Meta image files can often be authored at very high resolutions (sometimes in excess of 10,000 units for both the width and height)
and this would lead to very large converted image sizes. To combat this it is possible to set the maximum total area of the rendered image
as a value in megapixels (similar to the way that digital cameras have their resolutions quoted). If a meta image file's
width x height is greater than the specified number of mega pixels then it is re-sized to be within this value. It is
important to note that this "re-size" is actually a meta image file rendering transformation and not a "re-size" in the
strictest sense (see the I2PDF_MetaStampImageScale_Int API below for this option).
Here is a list of common mega pixel sizes and an example of an image size that just fits within this limit:
13 | = 1300 x 1000 |
22 | = 1800 x 1200 |
31 | = 2000 x 1600 |
43 | = 2400 x 1800 |
53 | = 2700 x 2000 |
61 | = 2900 x 2200 |
82 | = 3400 x 2500 |
100 | = 3700 x 2800 |
The default setting is 10
|