Skip navigation
Currently Being Moderated

Batch processing the document language

May 8, 2013 8:17 AM

Tags: #pdf #metadata #language



I'm trying to batch process a load of PDFs so that they have a document language.


I've looked in using Javascript but I can't find a variable that corresponds with it.  I know it's in the end stream data.


Any suggestions?



  • Currently Being Moderated
    May 8, 2013 8:34 AM   in reply to pwynne82

    Do you mean setting the document's base language attribute (/Catalog/Lang)?   Or something else?

    Mark as:
  • Currently Being Moderated
    May 8, 2013 8:43 AM   in reply to pwynne82

    I don't know what software you are using to work with PDFs – but the language is found as the value of the Lang key in the Catalog dictionary.

    Mark as:
  • Currently Being Moderated
    May 8, 2013 8:56 AM   in reply to pwynne82

    OK – this area is for discussion of PDF itself.


    There is another forum here for Acrobat specific developing using our SDK (Software Development Kit) - post there for help.

    Mark as:
  • Currently Being Moderated
    May 8, 2013 10:20 AM   in reply to pwynne82

    If you have a recent version of Acrobat Pro:




    - launch Preflight

    - click on icon for Fixups to see list of fixups

    - search for fixups containing "language" (will find the one fixup that does what you are looking for)

    - adjust as needed (so it sets the language you want to set)

    - try on a sample document that has no or the wrong language set

    - double check the outcome is what you want



    - create a Preflight profile that contains just the above mentioned fixup

    - name it with something easy to find again (put something like "001" or "!" at the beginning of the name so it is always listed first in the list of profiles)



    - set up an action in the action wizard (in earier versions this was called batch sequences)

    - define an action, calling Preflight, usign the just created profile with the above mentioned fixup

    - configure the action / batch sequences such that you can process your set of documents



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points