pruiz / WkHtmlToXSharp

C# wrapper wrapper (using P/Invoke) for the excelent Html to PDF conversion library wkhtmltopdf library.
239 stars 84 forks source link

x64 Support #12

Closed samkelleher closed 8 years ago

samkelleher commented 12 years ago

In the readme, you wrote that an x64 compile of WkHtmlToPdf 'worked pretty flawlessly'; was there anything broken/preventative from using this in a x64 environment if it worked?

Or was it just convenience, i.e., to be able to just drop in the WkHtmlToPdf lib as built rather than go off and recompile in x64.

pruiz commented 12 years ago

The underliying component used (libwkhtmltdf) simply does not work fine when build for 64 bits.

Sent from my iPad

On 13/09/2012, at 04:13, Sam Kelleher notifications@github.com wrote:

In the readme, you wrote that an x64 compile of WkHtmlToPdf 'worked pretty flawlessly'; was there anything broken/preventative from using this in a x64 environment if it worked?

Or was it just convenience, i.e., to be able to just drop in the WkHtmlToPdf lib as built rather than go off and recompile in x64.

— Reply to this email directly or view it on GitHubhttps://github.com/pruiz/WkHtmlToXSharp/issues/12.

alexminza commented 11 years ago

Hi everyone! Has anything changed since the last time you tried? Are we able to build a 64 bit Windows version of the WkHtmlToPdf library?

dambrisco commented 11 years ago

Unfortunately, libwkhtmltox doesn't have a readily available x64 version out. If you'd like to dig into the matter further, you should check out https://groups.google.com/forum/#!forum/wkhtmltopdf-dev or https://groups.google.com/forum/#!forum/wkhtmltopdf-general.

j2jensen commented 10 years ago

It looks like there's a 64-bit windows download available on http://wkhtmltopdf.org/ now. Does that impact the status of this issue?

pruiz commented 10 years ago

Yeah ;)

I'm just a bit out-of-time now, but incorporating x64 it's on my todo along with a minor refactor of how each binary dependency get's referenced/loaded by wkhtmltoxsharp.

So I hope to be able to provide something anytime soon.

Regards Pablo

On Tue, Feb 18, 2014 at 7:46 PM, j2jensen notifications@github.com wrote:

It looks like there's a 64-bit windows download available on http://wkhtmltopdf.org/ now. Does that impact the status of this issue?

Reply to this email directly or view it on GitHubhttps://github.com/pruiz/WkHtmlToXSharp/issues/12#issuecomment-35418421 .

alexminza commented 10 years ago

Pablo pruiz, waiting for the Win64 NuGet bundle! Thank you and keep up the great work!

eugentorica commented 10 years ago

I added wrapper for x64. It is working for me for more than 2 weeks. I haven't noticed any new problems or exceptions during this period. Sadly old periodic exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.AccessViolationException: Attempted to read or write protected memory

which occured on x32 version occurs at the same rate.

Current configuration: Host: Windows Service with Quartz.Net scheduler OS: Windows Server 2008 R2 Pdf Generator: MultiplexingHtmlToPdfConverter

pruiz commented 10 years ago

Hi Eugeniu,

The only issue I see with your pull-req is that is is using a different version of wkhtmltox.dll than the one used by other native bundles.. And I would like to keep all them in sync as to avoid different behaviours on each arch.

On Thu, Apr 3, 2014 at 10:07 AM, Eugeniu Torica notifications@github.comwrote:

I added wrapper for x64. It is working for me for more than 2 weeks. I haven't noticed any new problems or exceptions during this period, sadly old periodic exception which occured on x32 version occurs too.

Reply to this email directly or view it on GitHubhttps://github.com/pruiz/WkHtmlToXSharp/issues/12#issuecomment-39423157 .

eugentorica commented 10 years ago

Provided bundle has on problem which I've noticed. Image tags are not rendered in resulting pdf. In the nugget package for x64 this problem occur too. Do you have any idea what might be the cause for this? Maybe some missing dlls that should be embedded along with wkhtml library?

alexminza commented 10 years ago

Hi @pruiz - do you have ideas on the issue of missing images in x64? Thanks!

pruiz commented 8 years ago

I am closing this issue, as x64 support has been available for a while now.