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.
Unfortunately, activation email could not send to your email. Please try again.

Vertical Scrollbar Always Showing for PdfMetafile

Thread ID:

Created:

Updated:

Platform:

Replies:

117451 Oct 22,2014 11:31 AM Oct 10,2017 01:46 AM Windows Forms 8
loading
Tags: PDF
Matt Leal
Asked On October 22, 2014 11:31 AM

I'm converting an HTML decoded string to a PdfMetafile, and after I draw the metafile there is always a vertical scrollbar on the right hand side of the pdf. Is there any way to hide this?
I'm using a mime object in a pop email inbox. As a test you can send any email with text in the body to the pop inbox. I just use a blank email w/ my signature.
 
Here is my code:
 
public void convertHTML2PDF(Mime m, int part)
{
try
{
//Create new PDF document
PdfDocument doc = new PdfDocument();
PdfPage page = doc.Pages.Add();
SizeF pageSize = page.GetClientSize();
PdfUnitConvertor convertor = new PdfUnitConvertor();
//get width of PDF image
float width = convertor.ConvertToPixels(pageSize.Width, PdfGraphicsUnit.Point);
AspectRatio dimension = AspectRatio.KeepWidth;
using (HtmlConverter c = new HtmlConverter())
{
//Set mime variables
string html = m.Parts[part].DecodedString;
//convert html to pdf metafile
PdfMetafile mf = new PdfMetafile(c.FromString(html, ImageType.Metafile, (int)width, -1, dimension) as Metafile);
mf.Quality = 100;
PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat();
format.Break = PdfLayoutBreakType.FitPage;
format.Layout = PdfLayoutType.Paginate;
//draw the image
mf.Draw(page, new PointF(0,0), format);
}
}
catch (Exception ex)
{
nLog.Error("Error converting the mime part to a PDF", ex);
}
}
 
Thanks!

Matt Leal
Replied On October 22, 2014 11:47 AM

Here is an attachment that shows the scroll bar.

Attachment: VerticalScroll_15b0a0c9.zip

KarthikeyanC [Syncfusion]
Replied On October 23, 2014 07:57 AM

Hi Matt,

Thank you for your interest in Syncfusion.

 

We have created a Direct-Trac incident to follow up in this issue, please follow the incident 131147 for further details.

 

Thanks,

Karthikeyan.C

 


Rey, Myriam
Replied On May 18, 2015 11:33 AM

Hello,
I have a similar bug : a vertical scrollbar on the headers, footers of my pdf.
Is this case resolved ? I donc find other informations as the informations here?

Thanks in advance

Myriam Rey


KarthikeyanC [Syncfusion]
Replied On May 19, 2015 07:24 AM

Hi Myriam,

Thank you for your interest in Syncfusion.

We have created a Direct-Trac incident to follow up in this issue, please follow the incident 139269 for further details.

Thanks,

Karthikeyan.C


Mandy
Replied On June 4, 2015 05:51 PM

I'm having the same issue with the vertical scroll bar displaying when converting an HTML string to a PdfMetafile.  

KarthikeyanC [Syncfusion]
Replied On June 5, 2015 08:03 AM

Hi Mandy,

We have already fixed this issue in our current base, it will be available from next release. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

Please let me know if you have any questions.


Note: If any customers faces this same issue please log a support incident to get the fix.
Best,
Karthikeyan.C


cristian carvajal
Replied On October 9, 2017 04:33 PM

Hi Myriam,

Thank you for your interest in Syncfusion.

We have created a Direct-Trac incident to follow up in this issue, please follow the incident 139269 for further details.

Thanks,

Karthikeyan.C


Hi!

¿Where can I see the solution to this problem?

Prakash Viswanathan [Syncfusion]
Replied On October 10, 2017 01:46 AM

Hi Cristian, 

Thank you for your interest in Syncfusion products. 

We have already fixed the issue and included in our volume 4 2014 release (12.4.0.24). If the issue occurs from any other later versions, please provide us the product version, code snippet and environment details such as OS, IE version, bit version etc., So, that it will helpful for us to proceed further. 

Regards,
Prakash V 


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.

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.

;