Hi,
we are running into problems when generating pdf from the attached dwg. The PDF looks fine, when created via AutoDeskDWGTrueView/Export/Pdf, but is odd when created via AsposeCADJava.
Here is my example code:
File pdf = new File(cad.getParentFile(), cad.getName() + ".pdf");
System.out.println("convert " + cad.getAbsolutePath() + " to " + pdf.getAbsolutePath());
CadImage image = null;
try
{
image = (CadImage) com.aspose.cad.Image.load(cad.getAbsolutePath());
FileTools.mkdirs(pdf.getParentFile());
PdfOptions opts = new PdfOptions();
CadRasterizationOptions rOpts = new CadRasterizationOptions();
opts.setVectorRasterizationOptions(rOpts);
image.save(pdf.getAbsolutePath(), opts);
}
finally
{
StreamTools.close(image);
}
Here are the mentioned files:
TM_01.01.02.01.zip (257.9 KB)
Thanks in advance,
Felix