Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF LoadImage method Options
Ibiuna
Posted: Friday, September 30, 2011 4:13:32 PM
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
eo_support
Posted: Friday, September 30, 2011 4:41:10 PM
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!
Ibiuna
Posted: Friday, September 30, 2011 4:45:04 PM
Rank: Advanced Member
Groups: Member

Joined: 8/31/2011
Posts: 34
Oh, that's great to know !

Thank you for the Support !
eo_support
Posted: Friday, September 30, 2011 4:52:12 PM
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.
Ibiuna
Posted: Friday, September 30, 2011 5:50:57 PM
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 ?
eo_support
Posted: Friday, September 30, 2011 8:12:43 PM
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!
Ibiuna
Posted: Friday, September 30, 2011 8:38:32 PM
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 ?
eo_support
Posted: Friday, September 30, 2011 8:46:19 PM
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
Ibiuna
Posted: Friday, September 30, 2011 9:07:33 PM
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 !
eo_support
Posted: Saturday, October 1, 2011 7:51:59 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Great. Thanks for confirming that it works!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.