Welcome Guest Search | Active Topics | Sign In | Register

Rendering PDF with mono Options
glinkot
Posted: Thursday, November 1, 2012 1:05:52 AM
Rank: Member
Groups: Member

Joined: 1/11/2012
Posts: 27
Hi,

I find myself using Mono on os x and need to render some HTML. Having added the reference to EO.Pdf.dll, I've used the following:

HtmlToPdf.ConvertHtml(@"This is test", outputFileName);

Which results in the following error:

Error CS0584: Internal compiler error: Method not found: 'EO.Pdf.PdfPage.a'. (CS0584) (EOPdfTest).

This works in Monodevelop under windows. I know it's a bit of an unusual one but I'll be lost if I can't use my favourite PDF tool for my project! What can I do to work through this issue? Many thanks!
eo_support
Posted: Thursday, November 1, 2012 8:44:17 AM
Rank: Administration
Groups: Administration

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

You can't use our product with Mono on OSX. Our product is strictly for Windows. It replies on a lot of Windows API to function.

Thanks!
glinkot
Posted: Thursday, November 1, 2012 4:22:55 PM
Rank: Member
Groups: Member

Joined: 1/11/2012
Posts: 27
Aha! That's a shame! Thanks anyway. Still the best PDF tool in the business! :)

Mark
eo_support
Posted: Thursday, November 1, 2012 4:30:22 PM
Rank: Administration
Groups: Administration

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

As a workaround, you might want to host a web service on a Windows system, then call into that web service from your OSX machine. That can be done with Mono easily and since the actual conversion is done on Windows machine, you won't have any problem either.

Thanks!
glinkot
Posted: Thursday, November 1, 2012 4:33:30 PM
Rank: Member
Groups: Member

Joined: 1/11/2012
Posts: 27
Good idea. I'm actually developing in MonoTouch (IOS) and a 16MB dll probably wouldn't have been ideal to deploy to mobile devices. I think it's possible to render PDF's directly within IOS but it's much more painful than just rendering nice HTML and generating a PDF from it. The offline generation is something I'll definitely consider :)

Cheers
eo_support
Posted: Thursday, November 1, 2012 4:36:20 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Yes. HTML to PDF is definitely much easier. :)


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.