Sets the measurement resolutions.




SetMeasureResolution DpiX [, DpiY]



Name Type Description
DpiX Double The new horizontal measurement resolution in DPI. It is also the new vertical measurement resolution if DpiY is missing.
DpiY Double The new vertical measurement resolution in DPI (optional).




Sets the measurement resolutions, which affects the measurements for certain output formats that does not support physical sizes. For example, SWF measurements are pixel-based while PDF measurements are in points (1/72 of an inch). This specifies how many pixels in SWF an inch in PDF represents.

The values do not affect the pixel sizes of raster-image contents. If DpiY is omitted, DpiX will set both horizontal and vertical measurement resolutions. If one of the values (DpiX or DpiY) is invalid, the other value may be used for both values.

For SWF, these values are used only if XSaveOptions.Template is an empty string.




Here, we use 72 DPI so that 1 inch in the PDF becomes 72 pixels in the SWF.

Set theDoc = Server.CreateObject("ABCpdf13.Doc")
theDoc.Read "c:\mypics\sample.pdf"
Set theDoc.SaveOptions.TemplateData = Server.CreateObject("ABCpdf13.XSaveTemplateData")
theDoc.SaveOptions.TemplateData.SetMeasureResolution 72
theDoc.Save "c:\mypdfs\swfsave.swf"