[poppler] (OT) setting PDF document language

Pablo Rodríguez oinos at web.de
Fri Mar 12 10:57:16 PST 2010


Sorry for replying to this message that I wrote myself almost two months
ago.

Leonard, you asked privately for a sample document, I sent two samples
after that, but since you haven't replied to any of the three messages I
sent, I wonder whether your spam filtering is rejecting my messages.

Here you have both samples:

	http://www.ousia.tk/xetex-wrong-lang.pdf
	http://www.ousia.tk/ooo-wrong-lang.pdf

Just in case they might be useful. Thanks,


Pablo



On 01/21/2010 09:10 AM, Pablo Rodríguez wrote:
> On 01/21/2010 12:41 AM, Leonard Rosenthol wrote:
>> I believe your string is wrong - it should just be "es".  See ISO 32000-1:2008, 14.9.2.2 referring to RFC 3066.
> 
> Thanks for the reply, Leonard.
> 
> Setting it to "es" doesn't work either. (The examples in ISO
> 32000-1:2008, 14.9.2.2 are actually "en-US" and "es-MX".)
> 
> If this is not a bug I wonder whether acroread =>7 requires the document
> to be marked as tagged PDF to consider reading languages.
> 
> Thanks again,
> 
> 
> Pablo
> 
>> Leonard
>>
>> -----Original Message-----
>> From: poppler-bounces at lists.freedesktop.org [mailto:poppler-bounces at lists.freedesktop.org] On Behalf Of Pablo Rodríguez
>> Sent: Wednesday, January 20, 2010 11:18 PM
>> To: poppler at lists.freedesktop.org
>> Subject: [poppler] (OT) setting PDF language document
>>
>> Hi there,
>>
>> sorry for the off-topic, but I'm experiencing a problem when setting the
>> reading language in a PDF document.
>>
>> I generate the following document with XeLaTeX:
>>
>>   \documentclass{article}
>>   \begin{document}
>>   \special{pdf:put @catalog << /Lang (es-ES) >>}
>>   Spanish should be the reading language in this document.
>>   \end{document}
>>
>> The issue is that for some strange reason acroread versions <7 recognize
>> the reading document language, but versions above =>7 don't recognize it.
>>
>> As the PDF 1.7 specification requires, the XeLaTeX document includes the
>> <</Lang (es-ES)>> tag to the PDF document catalog.
>>
>> Does anyone if something has changed in acroread >=7? Or am I missing
>> something here?
>>
>> Thanks for your help,
>>
>>
>> Pablo
>>
>>
>> PS: uncompressing the PDF document with Multivalent, the first lines read:
>>
>>   %PDF-1.5
>>   %„†
>>   1 0 obj<< /Type /Catalog /Lang (es-ES) /Pages 8 0 R>>
>>   endobj
>> _______________________________________________
>> poppler mailing list
>> poppler at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/poppler
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler


More information about the poppler mailing list