Welcome Guest Search | Active Topics | Sign In | Register

Image problem in PDF Options
Brian
Posted: Wednesday, February 26, 2014 7:28:08 PM
Rank: Newbie
Groups: Member

Joined: 2/26/2014
Posts: 4
Support~

I'm having trouble getting an image to render properly using HtmlToPdf in EO.PDF. It's weird as when I run the HTML thru EO.PDF when it's being used on a website the PDF comes out fine. If I try to process the html via EO.PDF on a console application it doesn't work.

If I use your demo page: http://www.essentialobjects.com/Products/EOPdf/HtmlToPdf.aspx
and put in this HTML:
Code: HTML/ASPX
<html><head></head><body>
<br /> <div style="text-align: center;"> <img alt="" width="221" height="163" src="https://referralmaker.blob.core.windows.net/uploadedletterimages/3a5b179144207ea51820237cc47ccefa.jpg" /><br /> </div></body>
</html>


The image renders correctly in the PDF.

If I use this code in a vb.net application:
Code: Visual Basic.NET
EO.Pdf.HtmlToPdf.ConvertHtml("<html><head></head><body><br /> <div style=""text-align: center;""> <img alt="""" width=""221"" height=""163"" src=""https://referralmaker.blob.core.windows.net/uploadedletterimages/3a5b179144207ea51820237cc47ccefa.jpg"" /><br /> </div></body></html>", "c:\result2.pdf")


The image does not come out correctly.

Any thoughts? According to the file details we're on version 4.0.41.2.

Thanks!

~Brian
eo_support
Posted: Thursday, February 27, 2014 12:18:15 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

I believe this is because your image file uses a color model that is not supported by your version. The demo runs the current version which does support all color models. You can modify your image file to use RGB color model, or we can upgrade your license to the current version if you are interested. The cost of the upgrade is 30% of the full price (which will give you a final price of $179.7 at the current price). In addition to many small improvements such as the image color model issue, you can find the major changes in the current version here:

http://www.essentialobjects.com/doc/4/whatsnew.aspx

You will need a discount code in order to place an upgrade order. So please let us know if you would like to upgrade so that we can create the code for you.

Thanks!
Brian
Posted: Thursday, February 27, 2014 1:50:42 AM
Rank: Newbie
Groups: Member

Joined: 2/26/2014
Posts: 4
What's odd is that it works perfectly up on our website, which is what our clients use to preview their PDFs before going to press. Unfortunately I need to generate the PDFs in bulk from the client inputted html, so I was hoping running the DLL in a winforms app would work the same as it does out on our production website.

What's even more weird is that I created a local IIS site with the DLL and it doesn't work either, not sure how we got so lucky that it works in the one place that's client facing.

The problem I have with upgrading right now is how many rendering issues am I going to run into because of the changes in this new version? So far this image is the only issue, but how likely am I going to end up with a bunch of PDF issues due to the upgraded PDF engine?

Is there an incremental fix that specifically takes care of this problem in version 4 without forcing me to go all the way up to 5?

Thanks.
eo_support
Posted: Thursday, February 27, 2014 8:26:11 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

Version 5 is backwards compatible with version 4 and is much more robust because we have been receiving many test files from our users over the years. So I do not expect it to give you a bunch of rendering issues. In any cases, you can download it from our download page and try it before you deciding whether to upgrade or not. We do not have incremental fix for previous versions. Sorry about it!

Thanks!
Brian
Posted: Thursday, February 27, 2014 11:35:18 AM
Rank: Newbie
Groups: Member

Joined: 2/26/2014
Posts: 4
ok, might as well get the newest object then, can you create that discount code so I can place an upgrade order? Is it possible to turn this around today?

Thanks.
eo_support
Posted: Thursday, February 27, 2014 11:38:24 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

We have sent the code to you through private message. You can click "inbox" at the top of the forum to view the message.

Thanks!
Brian
Posted: Thursday, February 27, 2014 11:40:08 AM
Rank: Newbie
Groups: Member

Joined: 2/26/2014
Posts: 4
thank you!


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.