DXF-Drawings.zip (534.5 KB)
we are software partner for a bigger company in Germany (it’s no secret, if you open the attached files) and we are using Aspose.CAD in our productive environment since last year.
Our job is to convert DXF images into SVG images and place them together with product data into a PDF sheet. We have to remove the border and textbox (these are in layers with specified names) from the DXF and - if possible - zoom and center to the remaining visible objects (“scale to fit”).
Maybe you can give me an advice for the latter, because I don’t find anything useful. I ended up with getting the dimensions of each CAD element - which is simple for lines and circles, but not for texts or some other elements.
But to the main reason for my request:
The attached dxf file has two problems which I can’t solve.
First: There are some texts missing (see attached file “Missing_texts.jpg”) and compare it to the dxf file.
Second: When I remove the layer “70_GS” which contains the border and the textbox on the lower right corner, some text of this textbox remains (see attached file “G_I202_XX_55521V_without_border.pdf”).
I viewed the DXF file with “Autodesk DWG Trueview” and everything seems to be ok with the DXF file.
Both pdfs are generated with your sample code from github.
I used the examples “ExportDXFToPDF” and “ExportDXFSpecificLayerToPDF”.
For the second example I retrieved all Layers from the CADImage, removed the “70_GS” and put the remaining into the CadRasterizationOptions for the PDF conversion.
Any help is appreciated.