haplokuon / netDxf

.net dxf Reader-Writer
MIT License
995 stars 405 forks source link

Came across a DXF file that had 16KB of binary starting with "rtfd\0"... at the beginning #307

Closed framlingham closed 3 years ago

framlingham commented 3 years ago

I came across a DXF file that had 16kB of binary information in it (attached: Cut down with nuls.zip). It seems to have a fairly predictable structure (with some binary data at the end), but I just want to skip it and try reading the contents. Do you know anything else about this kind of file modification? The closest thing I can see is some kind of mac file bundle?

haplokuon commented 3 years ago

Your file as it is is unreadable. This is a text DXF file that for some reason has become corrupt, I will not add any fix for that. My only suggestion is to manually delete everything with a text editor such as NotePad until the first code value pair starts. 0 SECTION

framlingham commented 2 years ago

I will do it in my own code then. One of our users' clients generated a file like this, so I still need to handle it without editing in NotePad.