Convert Doc to PDF(PdfUa1)

Hi Aspose Team

When we try to convert a doc file to PDF file, we select the option Aspose.Words.Saving.PdfCompliance.PdfUa1, but it does not work.

And here is the demo share link:

https://drive.google.com/file/d/1Gvus46SeGKfu5zVqUS_2ZKXq6Yy9xJRl/view?usp=drivesdk

1 Like

@Glority_Developer PdfUa1 is based on PDF 1.7, so Acrobat reader shows 1.7 version. But if you check the document for PDF/UA compliance for example using PAC3 you will the document is compliant:

But please note, you document does not have title, so to make it fully compliant you should specify it:

var options = new Aspose.Words.Saving.PdfSaveOptions();
options.Compliance = Aspose.Words.Saving.PdfCompliance.PdfUa1;
options.JpegQuality = 40;
options.TextCompression = Aspose.Words.Saving.PdfTextCompression.Flate;
var wordFile = new Aspose.Words.Document(srcFile);
wordFile.BuiltInDocumentProperties.Title = "some title";
wordFile.Save(destFile, options);

Thank you for your reply, but we still have some problems:

  1. If we try to convert a doc file that contains images to PDF(PdfUa1), it doesn’t work, please see the attached doc file and pictures.image.png (30.7 KB) learn.docx (822.0 KB)
  2. How can we combine two PDF(PdfUa1) files to one PDF(PdfUa1) file? We didn’t find any API or options that can help us.

@Glority_Developer

  1. It is an PDF/UA-1 requirement that all images should have an alternative description. If the source document do not have alternative descriptions then the output will not be fully compliant with PDF/UA-1. You could either set the alternative descriptions in the source document or update the output PDF. Please see the Working with PDF/A or PDF/UA article for more info.
  2. Unfortunately Aspose.Words do not provide such API. You could either combine source DOCX document and then convert the result to PDF. Or you could use the Apose.PDF API to combine the PDF document.