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

Vertical Scrollbar Always Showing for PdfMetafile

Thread ID:

Created:

Updated:

Platform:

Replies:

117451 Oct 22,2014 03:31 PM UTC Oct 10,2017 05:46 AM UTC WinForms 8
loading
Tags: PDF
Matt Leal
Asked On October 22, 2014 03:31 PM UTC

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 03:47 PM UTC

Here is an attachment that shows the scroll bar.

Attachment: VerticalScroll_15b0a0c9.zip

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

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 03:33 PM UTC

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 11:24 AM UTC

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 09:51 PM UTC

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 12:03 PM UTC

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 08:33 PM UTC

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 05:46 AM UTC

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.

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

;