Hi,
I’m using Aspose CAD 22.4 and found that there is an issue when converting DXF to PDF, some text are missing and replaced by “?” chars in PDF output file.
Here is sample code:
using(var fileStream = new FileStream(inFile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))
using(var image = Image.Load(fileStream))
{
// Create an instance of CadRasterizationOptions and set its various properties
var rasterizationOptions = new CadRasterizationOptions
{
BackgroundColor = Color.White,
PageWidth = image.Width,
PageHeight = image.Height
};
// Create an instance of PdfOptions
var pdfOptions = new PdfOptions
{
// Set the VectorRasterizationOptions property
VectorRasterizationOptions = rasterizationOptions
};
image.Save(outFile, pdfOptions);
Here is my sample file and output I’ve got after converting: issue_CAD.zip (577.1 KB)
Please help me check this case. Thank you.