Free Support Forum - aspose.com

Issue with PDF output file from conversion from DGN to PDF

Hi, I have tried converting DGN files to PDF. However the output PDF is empty or the content in the PDF is not similar to the content in the DGN file.
Please advise. Thanks.
dgn and pdf file.zip (4.0 MB)

com.aspose.cad.Image objImage = com.aspose.cad.Image.load(inputfile);

CadRasterizationOptions cadRasterizationOptions = new CadRasterizationOptions();
cadRasterizationOptions.setDrawType(com.aspose.cad.fileformats.cad.CadDrawTypeMode.UseObjectColor);
cadRasterizationOptions.setPageHeight(com.aspose.pdf.PageSize.getA4().getHeight());
cadRasterizationOptions.setPageWidth(com.aspose.pdf.PageSize.getA4().getWidth());

com.aspose.cad.imageoptions.PdfOptions pdfOptions = new com.aspose.cad.imageoptions.PdfOptions();
pdfOptions.setVectorRasterizationOptions(cadRasterizationOptions);
objImage.save(srcFileOut, pdfOptions);

@dustin00,

I have observed the issue shared by you and request you to please try using Aspose.CAD for Java 20.1 on your end. In case there is still an issue then please share the generated PDF file created on your end.

Hi, have tried using Aspose.CAD for Java 20.1. Issue still occurs, please attached generated PDF files.
Thanks.

CAD-20-1_smap7.pdf (3.1 MB)
CAD-20-1_smap15.pdf (2.2 MB)
CAD-20-1_smap27.pdf (185.3 KB)

@dustin00,

Thank you for sharing the information with us. An issue with ID CADJAVA-636 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

@dustin00,

We have initiated the issue investigation and resolution on our end. Can you please be kind enough to share the comparison snapshot of DGN and respective error in PDF files.

Hi, for smap15.pdf, when viewing the file, there is an error prompt and the image is not similar to the source dgn file and for smap27.pdf, there is no image in the pdf.
There files are multipage drawings but there is only one page for all 3 output pdf files.

Below is the images of the dgn using an online viewer to print to pdf/image
smap27.zip (2.3 MB)
smap15.zip (2.3 MB)
smap7 pdf.zip (4.5 MB)

@dustin00,

Thank you very much for providing the information.We will share feedback with you as soon as the issue will be fixed.