We have a very simple .docx document containing a company logo. The logo is in some sort of vector format i the Word .docx. When converting this to PDF/A-2a the logo is still vector, but are missing some significant details.
Please have a look at the original and the converterd PDF.
Using Aspose 23.1 with this code:
Aspose.Words.Document wordDoc = new Aspose.Words.Document(filename);
Aspose.Words.Saving.PdfSaveOptions options = new
Aspose.Words.Saving.PdfSaveOptions();
options.Compinance = Aspose.Words.Saving.PdfCompliance.PdfA2a
options.ExportDocumentStructure = true;
options.DisplayDocTitle = true;
if (!string.IsNullOrEmpty(FontsBasePath))
{
wordDoc.FontSettings = new Aspose.Words.Fonts.FontSettings();
wordDoc.FontSettings.SetFontsSources(new Aspose.Words.Fonts.FontSourceBase[] { new Aspose.Words.Fonts.SystemFontSource(), new Aspose.Words.Fonts.FolderFontSource(FontsBasePath, true) });
}
options.OutlineOptions.HeadingsOutlineLevels = 3;
// Update all merge fields to display their correct results.
List<Aspose.Words.Fields.Field> mergefields = wordDoc.Range.Fields.Where(f => f.Type == Aspose.Words.Fields.FieldType.FieldMergeField).ToList();
foreach (Aspose.Words.Fields.Field f in mergefields)
f.Unlink();
wordDoc.UpdateFields();
wordDoc.Save(dstFilename, options);
wordDoc.UpdateFields();
wordDoc.Save(dstFilename, options);
Original2.docx (136.4 KB)
Original2.pdf (36.8 KB)