Hi,
I’m trying to get the size of the page in a DWF file.
I have used the example from this website, here is the code I’m using
using (DwfImage image = (DwfImage)Aspose.CAD.Image.Load("{path}"))
{
int i = 1;
foreach (var page in image.Pages)
{
CadRasterizationOptions options = new CadRasterizationOptions();
double sizeExtX = page.MaxPoint.X - page.MinPoint.X;
double sizeExtY = page.MaxPoint.Y - page.MinPoint.Y;
options.PageHeight = (float)sizeExtY;
options.PageWidth = (float)sizeExtX;
}
}
What i get for page number 1 for example is: 2175X909
when we load the file to a plotter printer it shows as 2200X900
if i debug the code I can see these dimensions like in the plotter in some of the properties but can’t seem to get to them
what can be done to retrieve the page size and not the elements total width/height on the page
thanks