|
Rank: Advanced Member Groups: Member
Joined: 8/31/2011 Posts: 34
|
Hello,
I'm trying to use a high definition image in a PDF file and I was going throught your demo, but VS 2010 can't find the source for the LoadImage method. On the intellisense for AcmImage() it is said that it gets a System.Drawing.Image object, but this class is a abstract class.
This method is located on another assembly ? (currently referencing EO.Pdf.dll and EO.Pdf.Html.dll)
Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
LoadImage is a method defined on the Demo class inside Demo.cs.
If you are looking for implementing high resolution images, you may want to download the latest build from our download page. The current build is 2011.2.74. That build will do high resolution images for you by default. So you do not need any additional code at all.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 8/31/2011 Posts: 34
|
Oh, that's great to know !
Thank you for the Support !
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
You are very welcome. Feel free to let us know if you have any more questions.
|
|
Rank: Advanced Member Groups: Member
Joined: 8/31/2011 Posts: 34
|
Hummm.
Had 2 little problems with the update. My page lost the outputArea configuration. I was using the following configuration based on the this site A4 sizes (http://www.papersizes.org/a-paper-sizes.htm) :
HtmlToPdf.Options.OutputArea = new RectangleF(0.1f, 0.3f, 8.1f, 10.9f); HtmlToPdf.Options.PageSize = new SizeF(PdfPageSizes.A4.Width, PdfPageSizes.A4.Height);
But I ajusted to the following:
HtmlToPdf.Options.OutputArea = new RectangleF(0.1f, 0.8f, 8.1f, 10.4f); HtmlToPdf.Options.PageSize = new SizeF(PdfPageSizes.A4.Width, PdfPageSizes.A4.Height);
And my header is not showing anymore:
HtmlToPdf.Options.HeaderHtmlFormat = "<div style=\"text-align:left;float:left;font-family:Arial;font-size:12px;\">Book" + book + ": Performance Report | " + date.ToString("dd-MMM-yy") + "</div><div style=\"text-align:right;float:right;font-family:Arial;font-size:12px;\"><img height=\"9\" width=\"25\" src=\"http://xxxxxxxx/Logo_PNG.png\" /></div><br /><hr />";
Could you help me with the second problem, plz ?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Sorry about the problem. This is a bug. We have posted a new build that should resolve both problems for you. Please download it again from our download page.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 8/31/2011 Posts: 34
|
Just downloaded. The instaler is for version 3.0.75 while i have 3.00.084 installed.
Is this correct ?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The .84 build is the bad build, you need to uninstall that one. It should have been .74. .75 is the right build.
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 8/31/2011 Posts: 34
|
Just making sure.
Everything seems to working now. Thank you very much for the prompt support !
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Great. Thanks for confirming that it works!
|
|