0

I want my C# application to load pdf files, that are originally were exported from DWG or DXF formats, and read the vector shapes in this pdf (e.g Lines, Polylines, Circles, ... etc).

I can make use of these vectors by converting them to entities stored in memory, and reference them to a base point so I can redraw them again using external CAD tool.

Is there any tool that can help me achieve that?

Khaled
  • 39
  • 1
  • 8
  • 2
    Answer: Yes, there are plenty of tools. – Khalil Khalaf Aug 04 '16 at 15:36
  • I found plenty of tools for reading texts, raster images, but didn't find any for reading vectors. can u give me some names? – Khaled Aug 04 '16 at 16:02
  • It depends on what you are exactly trying to do, what data structure and how are you planning to detect, recognize and store Lines, Polylines.. etc – Khalil Khalaf Aug 04 '16 at 16:03
  • I can store these vectors using simple classes. eg. I can read a base point and relate all vectors to this base point, and then I can store each shape with it's relative coordinates, lengths and inclination – Khaled Aug 04 '16 at 16:05
  • AutoCAD have a feature to converto "well printed" PDFs into DWG, why not use it? – Augusto Goncalves Aug 04 '16 at 18:21
  • actually I'm using Teigha, which is a library for writing and reading DWG/DGN files, and I was doing just fine till the team leader asked me to include reading PDF files as well and then redraw all the shapes on Teigha viewer control that is already used in our application. So I can't use AutoCAD at all – Khaled Aug 05 '16 at 11:07
  • You can use any PDF library to read all the data. If you can't extract shapes try to find another library. After that you'll be able to convert read entities into DGN entities. – Dmitriy Zapevalov Aug 07 '16 at 12:58
  • 1
    @KyleKhalaf Great, care to suggest even one? – TernaryTopiary May 08 '17 at 06:35

0 Answers0