In the Tailor Made Software conversion, data-extraction and data-manipulation engines, we map the Entities between DWG and PDF the following way:


Entity Mapping from DWG to PDF

An AutoCAD Drawing file (DWG) has a much more complex file format than an Adobe Portable Document Format (PDF) file. PDF files have a very limited set of entities: paths (essentially moveto, curveto and lineto operators), text and images.

The only “grouping” type element in PDF is the Optional Content Group which is usually used to emulate layers.

Any “higher order” AutoCAD entities, such as dimensions, leaders, faces and, of course, blocks, have to be devolved into many, now unrelated, seperate PDF operators.


AutoCad Entity      Description      Relationship      PDF types
    
linetwo point line1:1path
polylinemultiple point line, can have “bulges” (arcs)1:1path
pointpoint1:1path
xlineinfinite line from point in two directions1:1path 1)
ellipseellipse1:1path 2)
shapeElements from an AutoCAD shape file1:manyvarious
polygonclosed polyline1:1path
face3D face1:manypath
arccircular arc1:1path 2)
solid3 or 4 coordinate solid1:1path
rayinfinite line from point in one direction1:1path*
texttext1:1text
splinevarious forms of splines1:1path 2)
MTextmulti-line text1:1text
MLinetwo or more parallel lines1:manypath
insertblock reference1:manyvarious
leaderleader lines1:manypath and text
hatchFilled areas with polygons and donuts1:manypaths
mpolygonFilled areas with polygons and donuts1:manypaths
surfaceBoundary meshes1:manypaths
solid3d3D Solids1:manypaths
attributetext information associated with block1:1text
MLeaderMultiple leader lines1:manypaths
ImageRaster Image1:1Image 3)


Note:1) PDF cannot represent an infinite entity where the line keeps going in one or both directions. As a result the XLine and Ray can only be approximate to the edge of the drawing.

Note:2) PDF uses Bezier Splines for curve definition, while AutoCAD can use circles, circular arcs, ellipses, and various forms of splines (not including the Bezier Spline), so any conversion to PDF’s Bezier Spline is approximate.

Note:3) PDF only supports JPEG and PNG images so Image may need to be converted



Entity Mapping from PDF to DWG

Since PDF has a limited set of entity types compared to DWG, a round-trip conversion (DWG->PDF->DWG) would differ greatly from the original DWG.

PDF Type      Description      Relationship     DWG Type
    
PathMoveTo, DrawTo1:1Line, Polyline, Polygon
PathMoveTo, CurveTo (Bezier segment)1:1Circle, Arc, Ellipse, Spline 1)
PathMoveTo, LineTo, CurveTo1:ManyPolyline, Arc and/or Spline 1)
TextText1:1Text
ImageRaster Image1:1Image


Note:1) What sort of entity can be used is determined by the mathmatics of the Bezier Spline (CurveTo) operators in the PDF file and the tolerances allowed. For instance, any Bezier Spline can be approximated by a series of arcs, but it may require A LOT of arcs to do it, depending on the curve and the tolerance. However, for a very large tolerance it is possible to fit a linear polyline. It will not look as good as the series of arcs, but mathmatically it will be correct. So a series of CurveTo operators may end up as a circle, an arc, an ellipse, a series of arcs and line (or a polyline with bulges), or even a spline.

Please Contact us for your specific platform, encapsulation and format requirements, and we’ll build it for you!