hi everyone,
i'm quite new about syncfusion pdf, but i manage to do almost the thinks i needed..
i need to get a pdf from url.
the page i have to render is a page with a table with attribute 100% width (to avoid scrollbars)
the problem i found is to resize the pdf to fit the page to the pdf page.
i saw that part of code :
#############################################################
SizeF pageSize = page.GetClientSize();
PdfUnitConvertor convertor = new PdfUnitConvertor();
float width = -1;
float height = -1;
// Calculates the height and width of the pdf image
if (dimension == AspectRatio.KeepHeight)
{
height = convertor.ConvertToPixels(pageSize.Height, PdfGraphicsUnit.Point);
}
else if (dimension == AspectRatio.KeepWidth)
{
width = convertor.ConvertToPixels(pageSize.Width, PdfGraphicsUnit.Point);
}
...
HtmlToPdfResult result = html.Convert(url, ImageType.Metafile, (int)width, (int)height, dimension);
#############################################################
if i use fit dimension = AspectRatio.FitPageSize;
the page seems to "shrink" only the right part of the table (like you can see in the attachemenet)
any idea to solve that behaviour ?
thanks :)
AspectRatio.KeepWidth.pdf_bd8c76b3.zip