Results 1 to 4 of 4

Thread: Get Language of PDF-iTextSharp.

  1. #1

    Thread Starter
    Fanatic Member vijy's Avatar
    Join Date
    May 2007
    Location
    India
    Posts
    548

    Get Language of PDF-iTextSharp.

    Is it possible to get What language is set to the PDF for Reading Options?

    Example:English or German
    Visual Studio.net 2010
    If this post is useful, rate it


  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,289

    Re: Get Language of PDF-iTextSharp.

    Where is that info about language being store? Is it stored in metadata using a custom property?
    Let us have faith that right makes might, and in that faith, let us, to the end, dare to do our duty as we understand it.
    - Abraham Lincoln -

  3. #3

    Thread Starter
    Fanatic Member vijy's Avatar
    Join Date
    May 2007
    Location
    India
    Posts
    548

    Re: Get Language of PDF-iTextSharp.

    It will be stored in the "Reading Options" in the PDF..

    To see the language of the PDF, below is the procedure.

    1.Open the PDF.
    2.Ctrl + D(Document Properties) --> Advanced --> Reading Options --> Language.

    I check in Metadata whether the data stored..,
    Visual Studio.net 2010
    If this post is useful, rate it


  4. #4

    Thread Starter
    Fanatic Member vijy's Avatar
    Join Date
    May 2007
    Location
    India
    Posts
    548

    Re: Get Language of PDF-iTextSharp.

    Hi , i got the output using PDFBox..
    vb Code:
    1. Dim doc As PDDocument = PDDocument.load(".../Temp.pdf")
    2.  Console.writeline(doc.getDocumentCatalog.getLanguage())

    i need the same in iTextsharp..
    Visual Studio.net 2010
    If this post is useful, rate it


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width