I’m trying to do EMF to PDF conversion and have noticed some incorrect spacing in the resulting PDF. I’ve heard that this could be due to mismatched fonts, is there something I can try changing to make the fonts match?
Here is the function that I’m using to do the conversion:
public void ConvertEMFtoPDF(string emfPath, string pdfPath)
{
using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(emfPath))
{
PdfOptions options = new PdfOptions();
EmfRasterizationOptions rasterizationOptions = new EmfRasterizationOptions();
rasterizationOptions.PageWidth = image.Width;
rasterizationOptions.PageHeight = image.Height;
options.VectorRasterizationOptions = rasterizationOptions;
image.Save(pdfPath, options);
}
}
I have also attached my original EMF and the resulting PDF for reference.
EmfPdf.zip (112.7 KB)