Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Jun 22, 2020 2:36 pm

When converting a docx to PDF the language is not set.

First I set the lanquage to dutch:
Code: Select all
var main = new Document();
main.LoadFromStream(input, FileFormat.Docx);
 main.AddStyle(BuiltinStyle.Normal);
 Style style = main.Styles.FindByName("Normal");
style.CharacterFormat.LocaleIdASCII = 1043;


Then I convert to PDF:
Code: Select all
var parameters = new ToPdfParameterList { PdfConformanceLevel = Spire.Pdf.PdfConformanceLevel.Pdf_A1A };
main.SaveToStream(output, parameters);


De PDF gets generated everyting seems ok. When I check its accessibilty checkers.eiii.eu/en/pdfcheck it says:
Natural Language: Document does not have natural language specified

jjollesvb
 
Posts: 1
Joined: Mon Jun 22, 2020 1:54 pm

Tue Jun 23, 2020 3:18 am

Hello,

Thanks for your inquiry.
I created a simple Word file and then tested your scenario and did notice the issue you mentioned. This issue has posted to our Dev team with the ticket SPIREDOC-4669 for further investigation. We will let you if there is any progress.
Sorry for the inconvenience caused.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.PDF