Vertical Scrollbar Always Showing for PdfMetafile
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!
SIGN IN To post a reply.
8 Replies
ML
Matt Leal
October 22, 2014 03:47 PM UTC
KC
Karthikeyan Chandrasekar
Syncfusion Team
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
RM
Rey, Myriam
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
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
KC
Karthikeyan Chandrasekar
Syncfusion Team
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
MA
Mandy
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.
KC
Karthikeyan Chandrasekar
Syncfusion Team
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
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
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?
PV
Prakash Viswanathan
Syncfusion Team
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
Prakash V
SIGN IN To post a reply.
- 8 Replies
- 6 Participants
-
ML Matt Leal
- Oct 22, 2014 03:31 PM UTC
- Oct 10, 2017 05:46 AM UTC