free Graph Drawing SDK for ASP.NET - c#

I want to draw a mathematical graph in my asp.net web application. Is there any free control for doing this work?
I see http://www.yworks.com but it is not free.

Following are the under Microsoft Public License (Ms-PL) license and
You might want to check out QuickGraph.
NodeXL might also be of interest (visualization library). It's WPF, but you can use a container to host it if you need WinForms.
You can use check GraphViz to generate this sort of graph. My app generates the .dot file that can then is then passed into GraphViz. It supports a load of file formats, such as bmp, jpg, png, pdf, svg etc etc.
Reference:
Open Source tools list
C# graph drawing library?
Drawing a Web Graph
You could use QuickGraph to easily model the graph programatically, then export it to GraphViz or GLEE, then render it to PNG.

Under Eclipse open source license there is Graphviz
It has many language bindings including C#.

Related

What's the best way to convert docx/pptx documents to PDF from a Windows Universal App?

Usually, I would use the Microsoft Office Interop library, but it requires the use of COM objects, which (as far as I know) isn't possible if I'm developing a Windows Universal app. What are some alternative methods I could use to convert Word and PowerPoint files to PDF from a Windows Universal App? Thanks!
There are a number of 3rd party libraries that will do this for you pretty easily, I have used Synfusion (there's a free version) for a similar workflow with Word, Excel and PDF (not PowerPoint) and while not a huge fan overall of the Syncfusion library (version 11), the Office/PDF stuff has done its job well.
Alternatively, if you're sure you will only be using the latest version of Office docs (extensions ends in X) you should be able to use any of the open office libraries to open the file to read it and use something like itext to export back to PDF. That might be trickier for more complicated documents (like PowerPoint slides).
The Syncfusion seems to be a good set of components even if in my projet i only wanted to print/convert office (.doc and .docx) documents.
Did you try this ? and what do you think of :
the speed of converting
the quality printing pdf files
the quality of converting Word file to pdf
Did you use the free "Community Edition", because i can really image we can use theses library with no cost ! What is the drawback ofusing it from free

Generate thumbnail of Microsoft Docs

Just wondered if it was possible to create a thumbnail / GIF image of a microsoft word document on the fly with C#?
I am working on a web application which is required to generate and display a thumbnail of various microsoft docs such as word, excel, ppt, etc..
They seem to be able to do it on Microsoft.com (see http://office.microsoft.com/template...3601033&CTT=98, for example) - Is there a function which does this?
Yes, it is possible. You can go through these links:
http://support.microsoft.com/?kbid=319350
http://www.geekpedia.com/tutorial219_Extracting-Icons-from-Files.html

What options are there for displaying a presentation slideshow in C#?

The Scenario:
I need to create a lightweight presentation application that offers PowerPoint-like features such as:
Simple text formatting (font, colour, size, style, etc)
Picture embedding (possibly video as well)
Simple animations (just slide, fade and appear actually)
The presentations themselves will be arrays (or Dictionaries) of strings from either a built-in database or a series of XML files (probably a combination of both).
I intend to develop and test the application, and create presentations on a Windows PC, and then display (and possibly edit) those presentations on a Linux-based PC.
The Options:
The options I know about are:
WinForms
Pros:
No external code needed
Cons:
Limited screen redrawing ability
Limited/No animations available
HTMLRenderer
Pros:
Proven reliable layout format (HTML 4.01 + CSS Level 2)
Code freely available for embedding
Cons:
Code hasn't been updated since 2009
Author's website gives 404, and his company website is incomplete.
My question is, quite simply, what other options are there? And which would be the best for my needs?
I would be very tempted to do this using Gtk-Sharp and to use WebKitSharp for rendering full HTML documents ( no need to restrict yourself )
You could possibly allow your program to consume a zip file containing html docs and images, perhaps even javascript and css.
Both libraries sould allow you to quite easily write a c# application that will run on mono on linux or OSX or windows with .Net or Mono.
That said, Webkit sharp has not had much in the way of recent checkins..

Choosing a cross-platform library for PDF rendering and analysis app (preferably using C#)

I am planning to write an app that can open and display PDF documents, and perform OCR on vector graphic elements within the PDFs. The user must be able to select regions of the document and I need to draw real-time annotations on the document. I don't need to alter or save the document itself.
I have plenty of experience with C# and WPF; I have written a similar application already that does the above on XPS/XAML documents rather than PDF. However that app only runs on Windows and PDF documents must be converted to XPS first.
I have done quite a bit of research and there are many, many options available, none of which seem an obvious choice. There are many libraries that can open PDFs or create PDFs, but most don't seem to give you access to individual vector graphic elements in a format that lets you draw/manipulate them on the screen (similar to what I could do with WPF graphic elements extracted from XPS documents).
I am familiar with .Net and C# (including .Net 2 GDI+ graphics) and I am very keen to stick to what I know. I am also using EmguCV for image recognition which can be compiled in Mono or .Net. As such I am looking at Silverlight (running standalone) or Mono options, both of which should run on PC and Mac.
Performance (for both graphics and number crunching) is a strong consideration, though I am just as interested in getting this up and running quickly.
Does anyone have any experience with opening PDFs, extracting vector graphic elements (perhaps as SVG) and rendering them in a Mono app? Can individual elements be rendered to bitmap?
Alternatively, does anyone have experience with opening PDFs in Silverlight and converting them to XPS or XAML at runtime? I know that WPF and Silverlight graphics libraries are not 1:1, but I'm not sure how this affects XPS contents (generally composed of Canvas, Glyphs and StreamGeometry objects).
Thank you for any advice, tips or links you have to share.
look at this
http://silverpdf.codeplex.com/
it's client side pdf reading library. actually right now it can only read files, but you could play with it and make your own "display" functionality.
You might want to examine the internals of your PDFs so you understand what they actually contain better - you might be very surprised! For example, text can often be scanned pages or images and vecotr graphics do not exist as neat little packages. We wrote a whole load of general articles about what is inside a PDF and analysis tools at http://www.jpedal.org/PDFblog which are not specific to any tool or language.

How to load EPS files and draw them using WinForms

Is it possible to load and display EPS file using plain WinForms GDI+? If not, is there a free library to help out?
I seem to remember that Windows GDI supported EPS files, but after Googling around a bit, I am starting to doubt that memory.
All I want to do is load the file and draw it using a Graphics context.
I am aware that I can just use any program to convert the file to PNG or something and render it that way, but because I am trying to render at multiple resolutions, I would prefer to keep the vector data in the EPS file.
Thanks!
All the free or open source libraries I know that can convert EPS to other vector or raster format are all based on Ghostscript. You can invoke ghostscript directly, with wrapper provided or alternatively look at imagemagick. It is a very popular library for manipulating image graphics and has been around for a long time. It also internally relies on Ghostscript for handling EPS format. There is a .NET wrapper for it that you can find at http://imagemagick.codeplex.com/. You can read a bit about its background here too http://www.codeproject.com/KB/dotnet/ImageMagick_in_VBNET.aspx. There is also pstoedit that is also based on ghostscript to read EPS and allow export to format like WMF. You will need to the call to pstoedit API using interop in .NET
Besides Ghostscript there are several commercial products that I known of like ImageGear and LeadTools which will let you take EPS to almost any other kind of graphic formats.
You can use GhostScript to produce images from an EPS. Once you have an image you can then display that within your application.
In your question you indicated you want the output in a vector format which would preclude bitmaps, jpeg etc. Here are a couple of ways of getting a XAML file which is a vector file with extensive support by Microsoft.
Microsoft Expression Blend 3 and Design 3 can both open .ai (eps) files and convert them to vector formats, design and XAML respectively, so it is definitely possible.
I know it is relatively easy to automate most Microsoft Office applications like Word and Excel, but I have not seen any documented com inter-op assemblies for these Expression products.
Perhaps you can use the converters that are part of Expression in an undocumented way?
If that doesn't work here is plan B:
Here is a free converter that will convert .ai (eps) files to XAML. To use it you need Adobe Illustrator however.

Categories

Resources