hi,
Is there a way to set the PDF document properties for the language
setting? In Adobe Acrobat you can set it from the Advanced tab in the
document properties dialog, but I'm looking for a way to do it from
the command line or something I can automate with a script.
FWIW, I'm using pdflatex to generate the files and I can use either
Linux or Windows to modify the pdfs after they're created.
thanks,
--Tim Arnold
|
|
0
|
|
|
|
Reply
|
Tim
|
2/8/2011 4:07:39 PM |
|
On Tue, 08 Feb 2011 11:07:39 -0500, Tim <jtim.arnold@gmail.com> wrote:
> hi,
> Is there a way to set the PDF document properties for the language
> setting? In Adobe Acrobat you can set it from the Advanced tab in the
> document properties dialog, but I'm looking for a way to do it from
> the command line or something I can automate with a script.
>
> FWIW, I'm using pdflatex to generate the files and I can use either
> Linux or Windows to modify the pdfs after they're created.
>
> thanks,
> --Tim Arnold
Try this: find yourself a document whose language setting is as out of the box.
After using Acrobat to set it to what you want, save it under a different name.
Then do a DOS fc /b (or a Unix DIFF) on the two files to see how they differ,
and you'll probably *see* how to find "a way to do it from the command line
or something I can automate with a script." :-)
HTH. And cheers, -- tlvp
--
Avant de repondre, jeter la poubelle, SVP
|
|
0
|
|
|
|
Reply
|
tlvp
|
2/8/2011 11:47:33 PM
|
|
"tlvp" <tPlOvUpBErLeLsEs@hotmail.com> wrote in message
news:op.vqly1jrzitl47o@acer250.gateway.2wire.net...
> On Tue, 08 Feb 2011 11:07:39 -0500, Tim <jtim.arnold@gmail.com> wrote:
>
>> hi,
>> Is there a way to set the PDF document properties for the language
>> setting? In Adobe Acrobat you can set it from the Advanced tab in the
>> document properties dialog, but I'm looking for a way to do it from
>> the command line or something I can automate with a script.
>>
>> FWIW, I'm using pdflatex to generate the files and I can use either
>> Linux or Windows to modify the pdfs after they're created.
>>
>> thanks,
>> --Tim Arnold
>
> Try this: find yourself a document whose language setting is as out of the
> box.
> After using Acrobat to set it to what you want, save it under a different
> name.
> Then do a DOS fc /b (or a Unix DIFF) on the two files to see how they
> differ,
> and you'll probably *see* how to find "a way to do it from the command
> line
> or something I can automate with a script." :-)
>
> HTH. And cheers, -- tlvp
> --
> Avant de repondre, jeter la poubelle, SVP
diff treats the files as binary and the only response is 'binary files
differ'
--T
|
|
0
|
|
|
|
Reply
|
Tim
|
2/9/2011 5:45:35 PM
|
|
On 08/02/11 16:07, Tim wrote:
> hi,
> Is there a way to set the PDF document properties for the language
> setting? In Adobe Acrobat you can set it from the Advanced tab in the
> document properties dialog, but I'm looking for a way to do it from
> the command line or something I can automate with a script.
>
> FWIW, I'm using pdflatex to generate the files and I can use either
> Linux or Windows to modify the pdfs after they're created.
\usepackage[pdflang=en]{hyperref}
This is supposed to set the PDF language tag, but I just tried it with
the following MNWE and Acrobat Reader still shows the Language blank, so
I am crossposting this to c.t.t in the hope someone can show me what I
have misunderstood.
\documentclass{article}
\usepackage[pdflang=en]{hyperref}
\begin{document}
\title{Testing the PDFlang tag in pdflatex}
\author{Peter Flynn}
\date{9 Feb 2011}
\maketitle
Stuff
\end{document}
///Peter
----------------------------------8<----------------------------------
$ pdflatex test
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
entering extended mode
(./test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax,
dumylang, nohyphenation, farsi, arabic, croatian, bulgarian, ukrainian,
russian, czech, slovak, danish, dutch, finnish, french, basque, ngerman,
german, german-x-2009-06-19, ngerman-x-2009-06-19, ibycus, monogreek,
greek, ancientgreek, hungarian, sanskrit, italian, latin, latvian,
lithuanian, mongolian2a, mongolian, bokmal, nynorsk, romanian, irish,
coptic, serbian, turkish, welsh, esperanto, uppersorbian, estonian,
indonesian, interlingua, icelandic, kurmanji, slovenian, polish,
portuguese, spanish, galician, catalan, swedish, ukenglish, pinyin, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size10.clo))
(/usr/share/texmf-texlive/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifvtex.sty)
(/usr/share/texmf-texlive/tex/generic/ifxetex/ifxetex.sty)
(/usr/share/texmf-texlive/tex/latex/oberdiek/hycolor.sty
(/usr/share/texmf-texlive/tex/latex/oberdiek/xcolor-patch.sty))
(/usr/share/texmf-texlive/tex/latex/hyperref/pd1enc.def)
(/usr/share/texmf-texlive/tex/generic/oberdiek/etexcmds.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/infwarerr.sty))
(/etc/texmf/tex/latex/config/hyperref.cfg)
(/usr/share/texmf-texlive/tex/latex/oberdiek/kvoptions.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/kvsetkeys.sty))
Implicit mode ON; LaTeX internals redefined
(/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/bitset.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/intcalc.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/bigintcalc.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/pdftexcmds.sty
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifluatex.sty)
(/usr/share/texmf-texlive/tex/generic/oberdiek/ltxcmds.sty))))
(/usr/share/texmf-texlive/tex/generic/oberdiek/atbegshi.sty))
*hyperref using default driver hpdftex*
(/usr/share/texmf-texlive/tex/latex/hyperref/hpdftex.def) (./test.aux)
(/usr/share/texmf-texlive/tex/latex/hyperref/nameref.sty
(/usr/share/texmf-texlive/tex/latex/oberdiek/refcount.sty)) (./test.out)
(./test.out) [1{/home/peter/.texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./test.aux) )</usr/share/texmf-texlive/fonts/type1/public/amsfonts
/cm/cmr10.pfb></usr/share/texmf-texlive/fonts/type1/public/amsfonts
/cm/cmr12.pfb></usr/share/texmf-texlive/fonts/type1/public/amsfonts
/cm/cmr17.pfb>
Output written on test.pdf (1 page, 33553 bytes).
Transcript written on test.log.
$
|
|
0
|
|
|
|
Reply
|
Peter
|
2/9/2011 10:31:07 PM
|
|
Peter Flynn <peter@silmaril.ie> wrote:
> On 08/02/11 16:07, Tim wrote:
> > Is there a way to set the PDF document properties for the language
> > setting? In Adobe Acrobat you can set it from the Advanced tab in the
> > document properties dialog, but I'm looking for a way to do it from
> > the command line or something I can automate with a script.
> >
> > FWIW, I'm using pdflatex to generate the files and I can use either
> > Linux or Windows to modify the pdfs after they're created.
>
> \usepackage[pdflang=en]{hyperref}
>
> This is supposed to set the PDF language tag, but I just tried it with
> the following MNWE and Acrobat Reader still shows the Language blank, so
> I am crossposting this to c.t.t in the hope someone can show me what I
> have misunderstood.
As maintainer of hyperref I had added option `pdflang'. It sets
the entry /Lang in the /Catalog:
> \documentclass{article}
> \usepackage[pdflang=en]{hyperref}
> \begin{document}
> \title{Testing the PDFlang tag in pdflatex}
> \author{Peter Flynn}
> \date{9 Feb 2011}
> \maketitle
> Stuff
> \end{document}
Add \pdfobjcompresslevel=0, to avoid compressing of the catalog.
Then you can inspect the PDF file with a text browser/editor and
can find
.... 0 obj
/Type /Catalog ... /Lang(en)
....
endobj
But AcrobatReader doesn't show it in
Document Properties->Advanced->Reading Options->Language
Tested with AR7/Linux, AR8/Linux, AR9/Windows.
Can someone send me a small PDF file, please, generated by
Adobe Acrobat with the Language field set, in order to learn what
AR shows in/requires for its language field?
--
Heiko Oberdiek
|
|
0
|
|
|
|
Reply
|
Heiko
|
2/10/2011 12:05:11 AM
|
|
On 02/09/2011 03:31 PM, Peter Flynn wrote:
> \usepackage[pdflang=en]{hyperref}
>
> This is supposed to set the PDF language tag, but I just tried it
> with the following MNWE and Acrobat Reader still shows the Language
> blank, so I am crossposting this to c.t.t in the hope someone can
> show me what I have misunderstood.
I don't believe you've misunderstood anything. I just did a test of
my own, and it looks like Acrobat Reader always shows the Language
field blank while Acrobat Pro correctly displays it. (Setup: Acrobat
Reader 9 on Linux vs. Acrobat 9 Pro on WinXP.)
-- Scott
|
|
0
|
|
|
|
Reply
|
Scott
|
2/10/2011 3:30:20 AM
|
|
On Wed, 09 Feb 2011 12:45:35 -0500, Tim Arnold <tim.arnold@sas.com> wrote:
> "tlvp" <tPlOvUpBErLeLsEs@hotmail.com> wrote in message
> news:op.vqly1jrzitl47o@acer250.gateway.2wire.net...
>> On Tue, 08 Feb 2011 11:07:39 -0500, Tim <jtim.arnold@gmail.com> wrote:
>>
>>> hi,
>>> Is there a way to set the PDF document properties for the language
>>> setting? In Adobe Acrobat you can set it from the Advanced tab in the
>>> document properties dialog, but I'm looking for a way to do it from
>>> the command line or something I can automate with a script.
>>>
>>> FWIW, I'm using pdflatex to generate the files and I can use either
>>> Linux or Windows to modify the pdfs after they're created.
>>>
>>> thanks,
>>> --Tim Arnold
>>
>> Try this: find yourself a document whose language setting is as out of the
>> box.
>> After using Acrobat to set it to what you want, save it under a different
>> name.
>> Then do a DOS fc /b (or a Unix DIFF) on the two files to see how they
>> differ,
>> and you'll probably *see* how to find "a way to do it from the command
>> line
>> or something I can automate with a script." :-)
>>
>> HTH. And cheers, -- tlvp
>> --
>> Avant de repondre, jeter la poubelle, SVP
>
> diff treats the files as binary and the only response is 'binary files
> differ'
> --T
A pity. Not what I was led to expect. Sorry. Good luck. And cheers, -- tlvp
--
Avant de repondre, jeter la poubelle, SVP
|
|
0
|
|
|
|
Reply
|
tlvp
|
2/10/2011 9:04:40 AM
|
|
I can confirm this. Even Acrobat Reader X (win) is not able
to display this, although Acrobat Pro (win) does.
On Feb 10, 4:30=A0am, Scott Pakin <scott+...@pakin.org> wrote:
> On 02/09/2011 03:31 PM, Peter Flynn wrote:
>
> > \usepackage[pdflang=3Den]{hyperref}
>
>
> I don't believe you've misunderstood anything. =A0I just did a test of
> my own, and it looks like Acrobat Reader always shows the Language
> field blank while Acrobat Pro correctly displays it. =A0(Setup: Acrobat
> Reader 9 on Linux vs. Acrobat 9 Pro on WinXP.)
|
|
0
|
|
|
|
Reply
|
twarncke
|
2/10/2011 4:04:16 PM
|
|
On 10/02/11 03:30, Scott Pakin wrote:
> On 02/09/2011 03:31 PM, Peter Flynn wrote:
>> \usepackage[pdflang=en]{hyperref}
>>
>> This is supposed to set the PDF language tag, but I just tried it
>> with the following MNWE and Acrobat Reader still shows the Language
>> blank, so I am crossposting this to c.t.t in the hope someone can
>> show me what I have misunderstood.
>
> I don't believe you've misunderstood anything. I just did a test of
> my own, and it looks like Acrobat Reader always shows the Language
> field blank while Acrobat Pro correctly displays it. (Setup: Acrobat
> Reader 9 on Linux vs. Acrobat 9 Pro on WinXP.)
That would explain it. See the composite screen shot at
http://latex.silmaril.ie/images/test-lang-pdf.png
Heiko, see http://latex.silmaril.ie/test/test.pdf
pdfinfo doesn't seem to see it either.
///Peter
|
|
0
|
|
|
|
Reply
|
Peter
|
2/10/2011 8:02:36 PM
|
|
|
8 Replies
361 Views
(page loaded in 0.127 seconds)
Similiar Articles: Printing Error - comp.text.pdfAdvanced Print Set Up - (File/Print lower left corner ... Advanced Printer Properties and under Document Properties/ PostScript Properties / PostScript Language ... DEFAULT LANGUAGE SETTINGS - comp.unix.solarisCarlos M. wrote: > Hi, > > which file should I change to set up a different language ... I have a properties ResourceBundle with a default language, pt_PT and en_EN parts ... eval() problem for dynamic object referencing - comp.lang ...+ productindex + "none"); <snip> and set ... Am using the following code. > ><script language ... you sure the object you are looking for is a property of the document ... Changing default language - comp.databases.filemakerDEFAULT LANGUAGE SETTINGS - comp.unix.solaris Hi, which file should I change to set up ... I have a properties ResourceBundle with a default language ... default language setting ... checkboxes in word documents - comp.soft-sys.matlabNo appropriate method, property, or field item for ... will have to rewrite my project in another language ... MS office X on OS 10.4.11 and I have a document that is set up ... How to set locale for application at runtime? - comp.lang.java ...How to set locale for application at ... I have a properties ResourceBundle with a default language, pt_PT and en_EN parts ... I get the locale from a properties file (the user ... document.getElementById undefined - comp.lang.javascript ...Why when I try: alert(document.getElementById {"some-id ... square brackets (for this would address object properties ... need to *learn* the syntax of the programming language ... Open Word document from Internet Explorer on intranet - comp.lang ...When you choose to open a document, it run ... Any setting I can do in Word or Internet ... Save the file to desktop, right-click (show Properties dialog) and click the ... Re: Anyone familiar with Excel 4 macro language? - comp.soft-sys ...... notab lrecl=200; data > _null_; > file xlmacro; > put '=set ... Re: Anyone familiar with Excel 4 macro language ... cad.solidworks Does anyone know a better Properties ... How to check pdf files for errors? - comp.text.pdfReason: I am a fan of a world language, that a wide ... Reader 5 for Linux re-generate the PDF, set ... settings of PDF document permissions see Document properties in ... Set the language on the current document - Word - Office.com... you save a document to a Translation Management Library, you are required to enter a value for the Language property. By using the Document Information Panel, you can set ... Setting the defaultClientScript Property of an HTML DocumentThe defaultClientScript property of an HTML document sets the default scripting language used by its client-side <SCRIPT> elements. Setting the defaultClientScript ... 7/22/2012 3:20:30 PM
|