3

I'm looking for a (not necessarily free) .Net library which is:

  • Maintained
  • Reliable
  • Production ready

I can't use a rasterized image format because I don't want to lose the benefit of having a graphic vector on the output media.

I'm currently using Aspose.Pdf's as the general answer to PDF-related questions, and I would like to change because:

  • The API changes without backward compatibility too often.
  • There are way too many bugs that are painful to work around
halfer
  • 19,824
  • 17
  • 99
  • 186
Samuel Rossille
  • 18,940
  • 18
  • 62
  • 90

3 Answers3

1

Have you considered using Inkscape on the command line? It's free, works on all major operating systems, and can be called trivially using library system calls.

See my answer here, but use the --export-pdf option instead of --export-png. I've used it myself on a server application, and it is very good.

Community
  • 1
  • 1
halfer
  • 19,824
  • 17
  • 99
  • 186
  • Thanks for the answer, but I don't feel comfortable with executing external processes involving unmanaged code on the production platform. That would not be accepted by the IT anyways. – Samuel Rossille Nov 07 '12 at 19:34
  • @SamuelRossille: I'm not au fait with the phrase 'unmanaged code' (not a .net person) but think it's got something to do with permissions. If that's the case, consider using a separate VPS with a queue of jobs - which will keep your .net application isolated from any vulns in your converter application. – halfer Nov 10 '12 at 13:23
  • 1
    This is a typical .NET response. Managed code refers to those things that run within the memory space of the .NET managed memory space. When you pinvoke an external command line operation, you have no control over how that runs. This response is common in languages like C# on Windows, where it is quite difficult to invoke the command shell, as opposed to languages like Ruby or Python on Linux, where it is incredibly easy and common to work on the command line. – Jarrett Meyer Feb 13 '14 at 19:43
0

I don't know of a direct API, but it would be easy to generate SVG to bitmap with something like this question. And stuff the add the image to a PDF with many libraries that write PDF like ITextSharp.

Community
  • 1
  • 1
kenny
  • 21,522
  • 8
  • 49
  • 87
  • Thanks for you answer, but I forgot to mention that I want to preserve the advantage of a vector graphics in the output. I Edited the question – Samuel Rossille Sep 28 '12 at 21:42
0

After extensive research, it appears that such a library doesn't exist yet or is hard to find. I'll have to stick with Aspose.

Samuel Rossille
  • 18,940
  • 18
  • 62
  • 90