Syncfusion Word to PDF: WCAG issues if PDF conformance is PDF/A1A

I have a word document containing tables with borders and when using SyncFusion to convert the word to PDF with PDF/A1A conformance, there are WCAG issues (as per Adobe Acrobat) such as the table borders are rendered as figures and thus requiring alternative texts.. also, the icon content is being read as well  (e.g. AC1HR43..etc) which is very strange. However, if I don't set a PDF conformance (=None), then there are no WCAG issues.

Below is my code:

          //Opens the template document
            WordDocument document = new WordDocument(templateFilePath);
            document.BuiltinDocumentProperties.Title = "SyncFusion Word";
            
            //Performs the mail merge
            document.MailMerge.Execute(fieldNames, values);

            //Creates an instance of the DocToPDFConverter
            DocToPDFConverter converter = new DocToPDFConverter();
            converter.Settings.EnableFastRendering = true;
            
            converter.Settings.AutoTag = true;
            converter.Settings.PreserveFormFields = true;
            converter.Settings.ExportBookmarks = Syncfusion.DocIO.ExportBookmarkType.Headings;
            converter.Settings.EmbedCompleteFonts = true;
            converter.Settings.EmbedFonts = true;
            //Sets the jpeg image quality to reduce the Pdf file size
            converter.Settings.ImageQuality = 100;
            //Sets the image resolution
            converter.Settings.ImageResolution = 640;
            converter.Settings.RecreateNestedMetafile = true;
            converter.Settings.OptimizeIdenticalImages = true;
            converter.Settings.PdfConformanceLevel = PdfConformanceLevel.Pdf_A1A;

            //Converts Word document into PDF document
            PdfDocument pdfDocument = converter.ConvertToPDF(document);
            pdfDocument.DocumentInformation.Language = "en-US";
            pdfDocument.DocumentInformation.Title = "SyncFusion Word to PDF";
            using (var memoryStream = new MemoryStream())
            {
                pdfDocument.Save(memoryStream);
                //Close the document
                pdfDocument.Close(true);
                document.Close();
                return memoryStream.ToArray();
            }

9 Replies 1 reply marked as answer

HC Hemalatha Chiranjeevulu Syncfusion Team May 28, 2021 03:43 PM UTC

Hi Ema,

Thank you for contacting Syncfusion support.

We have tried to reproduce the reported WCAG issue when convert the Word document to PDF with PDF conformance A1A but, it works properly at our end. We have attached the sample application which we used to reproduce the reported issue and it can be downloaded from the below link:

Sample link: https://www.syncfusion.com/downloads/support/forum/165847/ze/PDFConformance_issue1795914815

We suspect that the reported issue might be due file level information of input Word document which used at your end. So, could you please share us the input Word document which used at your end to reproduce the same issue at our end. Also, share the Syncfusion product version which used in your application. Thereby we will analyze further on the reported issue and provide you the appropriate solution at the earliest.

Please let us know if you have any other questions.

Regards,
Hemalatha C



EM Ema May 29, 2021 05:27 AM UTC

Hi Hemalatha C,

I used version 19.1460.0.65 (trial version) of Syncfusion.DocToPDFConverter.Base, Syncfusion.DocIO.Base, Syncfusion.Pdf.Base and other related Syncfusion DLLs via nuget.

Please see attached for the MS Word, the PDF..

Thank you.

BR,
Ema

Attachment: SyncfusionWordToPdf_82acdd5d.zip


LB Lokesh Baskar Syncfusion Team May 31, 2021 12:42 PM UTC

Hi Ema, 

Thank you for your update.

Currently we are checking on the issue. We will update you the details shortly.

Please let us know if you have any other questions.

Regards  
Lokesh B  



LB Lokesh Baskar Syncfusion Team May 31, 2021 02:18 PM UTC

Hi Ema,

Thank you for your patience.

We can reproduce the reported WCAG issue when convert the Word document to PDF with PDF conformance A1A from our side and suspect it to be a defect. We will validate this issue and update you the further details on 2nd June 2021.

Please let us know if you have any other questions.

Regards,
Lokesh B



LB Lokesh Baskar Syncfusion Team June 2, 2021 03:01 PM UTC

 Hi Ema,

Thank you for your patience.

We have confirmed that the mentioned “WCAG issues occurs while converting the particular word to PDF with PDF/A1A conformance” is issue and we have logged a defect report. From the given details, we have found that you are using our weeklu NuGet version(v19.1.0.65), we will include the fix for this defect in our weekly NuGet release which is estimated to be available on 15th June 2021.

The status of this bug report can be tracked through the below link:
https://www.syncfusion.com/feedback/25904/wcag-issues-occurs-while-converting-the-particular-word-to-pdf-with-pdf-a1a  


Please lets us know if you have any other questions.

Regards,
Lokesh B
 



EM Ema June 3, 2021 01:30 PM UTC

Thank you very much Lokesh B. Looking forward to the fix :)


HC Hemalatha Chiranjeevulu Syncfusion Team June 4, 2021 04:09 AM UTC

Hi Ema,

Thank you for your update.

As mentioned earlier, we have confirmed the mentioned WCAG issues occurs while converting the particular word to PDF with PDF/A1A conformance is defect. Currently, we are working on this issue and we will include the fix for this defect in our upcoming weekly NuGet release which is estimated to be available on 15th June 2021.

The status of this bug report can be tracked through the below link:
https://www.syncfusion.com/feedback/25904/wcag-issues-occurs-while-converting-the-particular-word-to-pdf-with-pdf-a1a

Please let us know if you have any other questions.

Regards,
Hemalatha C



HC Hemalatha Chiranjeevulu Syncfusion Team June 15, 2021 02:54 PM UTC

Hi Ema,

Sorry for the inconvenience.

We are facing some testing failures while resolving the reported WCAG issues occurs while converting the particular word to PDF with PDF/A1A conformance. Currently, we are working on this issue and we have planned to share the custom NuGet with fix on 17th June 2021.

The status of the issue can be tracked through below feedback link.
https://www.syncfusion.com/feedback/25904/wcag-issues-occurs-while-converting-the-particular-word-to-pdf-with-pdf-a1a

Please let us know if you have any other questions.

Regards,
Hemalatha C



HC Hemalatha Chiranjeevulu Syncfusion Team June 17, 2021 05:11 PM UTC

Hi Ema,

Thank you for your patience.

We have fixed the reported issue “WCAG issues occurs while converting the particular word to PDF with PDF/A1A conformance”. We regret for not including the fix for the reported issue in our latest weekly NuGet release (19.1.0.69). So, we have prepared custom NuGet for the mentioned issue and it can be downloaded from the below link.
https://www.syncfusion.com/downloads/support/forum/165847/ze/Custom_Nuget2103640367

We have planned to include this fix in our 2021 Volume 2 SP release which will be available in the month of August 2021.

The status of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/25904/wcag-issues-occurs-while-converting-the-particular-word-to-pdf-with-pdf-a1a

Please let us know if you have any other questions.

Regards,
Hemalatha C


Marked as answer
Loader.
Up arrow icon