Reading .DXF files [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
Does anyone know of source code, ideally in C# or similar, for reading .DXF files (as used by AutoCAD etc)? If not code, then tables showing the various codes (elements / blocks / etc) and their meanings?
I am writing a reader myself, and have dead tree documentation detailing the format, but am trying to avoid writing e.g. a converter from each of the 255 ACI colours to RGB... Thanks!

I have work a couple of years at developing my own DXf-Viewer in java (you could drop your own DXF file or an URL on the viewer) for 2D drawings. The published information from AutoCAD is a good base but doesn't explain how it works. Becoming member of the Open Design Alliance, will give you the possibility to convert several CAD formats to DXF. It may be a good idea if you are developing a commercial product.
There is a german book (http://www.crlf.de/Verlag/DXF-intern/DXF-intern.html) about DXF which really explain this format. It's expensive, but could save days of search.
The colors in the DXF Format are indexed, you must have a converter from ACI to RGB. Be careful with values 0 and 1 which having a special meaning.
Regards.

Cadlib from WoutWare have I been using for a couple of projects with good results.

Update in case someone is still looking...
It's the same library, just including both links.
https://github.com/haplokuon/netDxf
https://www.nuget.org/packages/netDXF/

Fortunately AutoCAD publish the DXF format information here: DXF Formats

You may want to try the Open Design Alliance. It's a while since I looked at it myself, but they had a load of C libraries for dealing with various AutoCAD files.

Here is a link to a CodeProject dxf reader; it seems very limited (and not particularly well done) though.

Here is another open source dxf reader, in Java. Buggy however!

Related

How can we convert the Word(*.doc/*.docx) to PDF? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have a task to convert the word document to PDF file. I need some process which could be done for free.Could any help me the process of converting the Word to PDF file for free with out Microsoft Interop ?
The sad truth is that you proberbly can't.
If it is a simple document with little styling and simple tables, or even less, then yes, you can proberbly find a free solution.
The paid solutions don't really work well either unless it's a somewhat simple document.
I was involved in a project where I made a document-generating system that had to prepare around 24.000 word documents in .docx and .pdf every day, and believe me we tried everything.
The free solution that almost kinda worked when the document did not contain any advances plots or tables was a java solution, docx4j.
We tried using Apose, Gembox and a bunch of others, but none of them could transform the advanced documents to a proper pdf without messing up the formatting.
Try converting something like this: example without using word. It won't work. Or at least it wouldn't approximately a year ago.
We ended up with setting up a dedicated document-server that hosts a very much abused Microsoft Word process that does nothing all day except generate and convert documents.
I would be very happy to discover the presence a decent free (or paid) alternativ. But my experience is that as soon as your document gets very complicated (see the example) no one knows .docx like Microsoft. And it sucks that they can't/won't just make a proper .dll you can include in your project for conversion, but that is the way it is.
If you have only small doc and docx files, you could use the free version of: GemBox.Document
If you want to convert your documents with all styles and so on, i think you have to buy a component. I've spent a lot of time searching for an open source solution, but could not find anything. GemBox.Document has a really good price/performance ratio.

PDF to HTML Conversion API - Best Option using C# [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I would like the best way and method to convert from PDF to HTML, Note the PDFs contain different layouts, smart arts, images. Can you please suggest? I would actually prefer an API which I can use in a C# program and thus programmatically convert a number of files. I would prefer converting the images and embed them as base64 itself
Some time ago (2013), I developed a PDF to epub (a variation of HTML) converter.
I also wanted to develop in C# and looked what was available, but the best libraries are in C/C++. You probably know that PDF is a very tricky format, and even the best converters fail on some documents, so you really have to stick with the best options.
From C#, you can easily call C or C++ functions, so using a library in those languages is not be much of a problem.
Poppler http://poppler.freedesktop.org/ is the PDF library that I chose: It is based on Xpdf PDF viewer. It is reliable but you will have to postprocess the HTML code anyway. This package contains command line utilities including pdftohtml, a PDF to HTML converter. Sources files are also available.
Another very good option is PDFLib: http://www.pdflib.com/ It is a commercial product.

C# class documentation in a printable form [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Our C# source code is comprehensively documented using the usual Sandcastle/XML notation. We use SHFB to compile this into a MSDN-style documentation website.
We now need to*1 compile the documentation into a printable form. Ideally, we would like a PDF document but the specific format is less important than its printability. It is important, but not critical, that the documentation looks relatively professional and can be branded with the corporate logos, etc.
Is there a mostly pain-free way to do this? I don't think individually printing every page of the documentation website is a practical choice. The intermediate XML documentation files can, in principle, be transformed into a useable format but maybe there is already a viable and maintained solution for this task?
*1 - for reasons that I don't fully comprehend.
Is there a mostly pain-free way to do this?
No, DO not do it. It makes zero sense for a class level documentation - noone will ever read it. TAll hyperlinks do not work, would have to be changed to page references.
Our C# source code is comprehensively documented using the usual Sandcastle/XML notation.
No, it is not. It is documented the normal XML documentation notation. Sandcastle did not invent it.
NOw, if you really have to do it:
http://www.innovasys.com/products/dx2011/csdocumentation.aspx?cpid=gawdxcs&gclid=COiJq5To8qwCFQGHDgod900o0g
is pretty much the best you can get to. The are specialized in exactly that (multi target stuff). They also handle the additional pages etc. which is needed - the pure clas reference, without index, jsut printed, with hyperlinks instead of page references is basically tree destruction without any sense.
Apparently Help and Manual can import Sandcastle projects directly and then output them in various formats (including printable ones).
I haven't tried this myself, though. I'd be interested to hear experiences from anyone who has.
Ndoc has a Latex documentor plug-in. NDoc supports all documentation tags supported by Sandcastle, so that should be able to compile the documentation into a Latex file. This can then be used to create, for example, a Postscript document for printing.

Looking for an open-source paint-style program to act as base for a game editor [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I am looking for an open-source project, written in C#/Java, that does vectorial graphical manipulation, a-la Illustrator. I don't need anything terribly complex or fully-featured. I intend to use it as a base for creating a 2D-game level editor, where I will be manipulating paths to create some geometry for the level.
I figured that what I want to built is extremely similar to a painting program using vector-based graphics. I welcome any suggestions.
Neither MS-Paint or Photoshop allow vector graphic manipulation, however Inkscape allows for vector graphics manipulation of SVG files. And it's free, easy to use, and well documented. If you want something more Photoshop like (i.e. it allows you to manipulate bitmaps), then try Gimp - also free, well documented, and relatively easy to use.
I believe you mean ala Illustrator as Illustrator is vector based, whereas Photoshop is raster based. I have used Illustrator for this kind of thing in the past, works great, but obviously is not free. I am not sure of a good free vector graphics program unfortunately.
After a brief search, I see a couple of likely candidates. Inkscape (http://www.inkscape.org) looks promising for what you are looking for. As well, possibly too simplistic, but GoogleDocs now has Vector based documents available.
I took a course in Game Design last Spring and we created our level editors using XNA game studio. Windows Forms actually makes it pretty easy to develop the graphical interface.
Here is a list of downloadable demos that you can use to help you out. The level editor here sounds kind of like the thing you're looking for:
http://www.cis.cornell.edu/courses/CIS3000/2010sp/resources/demos.php
ImageMagick should do exactly what you want.
http://www.imagemagick.org/script/index.php
They provide the source and binaries.
Here is the link to the source:
http://www.imagemagick.org/script/api.php?ImageMagick=vbs078aa3mje21nulk7hd0eb93#dot-net
There is a version for .NET in the list as well as java.
I hope that helps. Cheers
Paint.net?
It's more raster-based though (a la Photoshop.)
http://pinta-project.com/

Is there a way to edit a pdf with C#? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I would need to edit a pdf at runtime in C#.NET. Is this possible? Like copying things in the pdf, editing textfields, ...?
Look at iTextSHARP. It's a .NET library for manipulating PDFs.
It is definitely possible, but not with what is built-in to .NET (unless you are a PDF format guru and can roll your own). I've mostly used Aspose for manipulating PDFs, but there are a lot of toolkits out there. Personally, I think Aspose is a little rough around the edges but not moreso than other kits.
Well there's iTextSharp : http://sourceforge.net/projects/itextsharp/ with which you can write pdf files, but I don't think it has editing (reading pdf) capabilities, or they will be limited.
I've never found a way to edit PDF's, unless you buy some third party tool ...
Look at this
iText# (iTextSharp) is a port of the iText open source java library for PDF generation written entirely in C# for the .NET platform.
Docotic.Pdf library may be used to edit PDF files. You can fill forms, import and export forms data, extract text, append documents and so on. Please take a look at samples for the library.
Disclaimer: I work for Bit Miracle.
It can be done, have a look at iTextSharp.
ITextSharp is good for adding things to a PDF.
These PDF components are also pretty good: www.tallcomponents.com

Categories

Resources