We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aspose support PDF/A-2b conversion

Hi Support
I am using Aspose.Words version # 18.8 and I want to convert text document to PDF/A-2b format. Aspose does not provide pdf save option for PDF/A-2b. Please check the code snippet below.
Does Aspose support PDF/A-2b format conversion?

DocumentBuilder DocumentBuilder = new DocumentBuilder();
using (StreamReader Reader = new StreamReader(InputFileName, Encoding.UTF8))
{
    string LineText = string.Empty;
    while ((LineText = Reader.ReadLine()) != null)
    {
        DocumentBuilder.Writeln(LineText);
    }
}

Aspose.Words.Saving.PdfSaveOptions PdfSaveOptions = new Aspose.Words.Saving.PdfSaveOptions();
PdfSaveOptions.Compliance = Aspose.Words.Saving.PdfCompliance.PdfA1b;
PdfFormatConversionOptions pdfFormatConversionOptions = new PdfFormatConversionOptions(new MemoryStream(), PdfFormat.PDF_A_2B, ConvertErrorAction.Delete);
using (var CompressedFileStream = new FileStream(tempfile, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.None))
{
    DocumentBuilder.Document.Save(CompressedFileStream, PdfSaveOptions);
    CompressedFileStream.Seek(0, System.IO.SeekOrigin.Begin);
    OutputFileBytes = new byte[CompressedFileStream.Length];
    CompressedFileStream.Read(OutputFileBytes, 0, (int)CompressedFileStream.Length);
}

@Muddassir_Awan,

Thanks for your inquiry. Unfortunately, Aspose.Words does not support the requested feature at the moment. However, we have logged this feature request as WORDSNET-13778 in our issue tracking system. You will be notified via this forum thread once this feature is available.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-13778) have been fixed in this Aspose.Words for .NET 21.7 update and this Aspose.Words for Java 21.7 update.