The '/lang' String can be set with this command:
WPPDF_SetSProp( WPPDF_Language, 'DE' )
the integer value for WPPDF_Language is 23. It has been added last October in wPDF 5.
The '/lang' String can be set with this command:
WPPDF_SetSProp( WPPDF_Language, 'DE' )
the integer value for WPPDF_Language is 23. It has been added last October in wPDF 5.
I'm trying wptools + wpdf trial, but I don't find the way to put /Lang into /Type/Catalog part of pdf like this
<<
/Type/Catalog
/Pages 7 0 R
/ViewerPreferences<</DisplayDocTitle true>>
/MarkInfo <</Marked true>>
/StructTreeRoot 11 0 R
/Metadata 2 0 R
/OutputIntents 14 0 R/PageMode/UseNone
/Lang(IT)
I tried with
WPPDFProperties1.PDFPrinter.Info.Strings.Add('/Lang= (IT)');
but this is put in this part of the document
<<
/Creator(Producer)
/Author(Daniele Muratori)
/Title(Created with wPDF DEMO by WPCubed GmbH - https://www.wpcubed.com)
/Subject(Soggetto)
/Keywords()
/CreationDate(D:20240711174404Z)
/ModDate(D:20240711174404Z)
/Producer(wPDF5 by WPCubed GmbH )
/Lang (IT)
So Adobe Reader don't display the language correctly in the properties dialog and the pdf is not validating againt the w3.org PDF16 directive that is fondamental for the PDF/UA standard.
I check the pdf at
https://mauve.isti.cnr.it/singlePDFvalidation.jsp
Thanks for support
Best regards
Daniele