We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Crop PdfImage or page.Graphics.DrawImage prevent keep ratio

Thread ID:

Created:

Updated:

Platform:

Replies:

109152 May 31,2013 09:36 AM UTC Jun 4,2013 04:34 AM UTC ASP.NET Web Forms (Classic) 1
loading
Tags: PDF
Evgeny
Asked On May 31, 2013 09:36 AM UTC

I wasn't able to crop or draw image without keeping aspect ratio.
using (var html = new HtmlConverter())
                        {
                            PdfImage image = PdfImage.FromImage(html.FromString(htmlText, ImageType.Bitmap, (int)textFieldbounds.Width, (int)textFieldbounds.Height));
                            page.Graphics.DrawImage(image, textFieldPosition.X, textFieldPosition.Y, textFieldbounds.Width, textFieldbounds.Height);
                        }
but for large html markup it's looks very ugly. Something should be defenetely readable (like order number, but description can be cut).

Praveenkumar H [Syncfusion]
Replied On June 4, 2013 04:34 AM UTC

Hi Evgeny,

Thank you for using Syncfusion products,

Please create the direct trac incident with sample project which reproduces the issue.

It will help us investigate further in this issue.

Please let us know if you have any concern,

With Regards,
Praveen

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;