Skip navigation
Currently Being Moderated

Read PDF Documents pro

Jul 6, 2012 1:15 AM

I want read the PDF Information using VB.NET such as

 

PDF Version, path, File Size, Number of pages,

 

But I can read the some other information such as Title, Author, Producer by using AcroExch.pdDoc objet ".GetInfo("Title") ",

 

Now I want to read the PDF Version, Page Size, how can I read those information by using VB.NET

 

Untitled-1.jpg

In the above screenshot i marked in red color which value i need to read by VB.NET

 

 

 

Thanking You

Thirusanguraja V

 
Replies
  • Currently Being Moderated
    Jul 6, 2012 2:33 AM   in reply to Thirusanguraja Venkatesan

    You can get the PDF version when look at the first lines of the document.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 6, 2012 6:17 AM   in reply to Thirusanguraja Venkatesan

    There is no page size associated with a PDF document. Every page in a PDF

    document can have a different size. Even though some applications make the

    assumption that all pages are the same size, and only display the size of

    the first page, that is wrong for many documents.

     

    To get the page size for one page, you would use the

    AcroExch.PDPage.GetSize() function.

     

    As far as I know, there is no method to get the PDF version of a document

    through the IAC or the JavaScript API, it's only available to a plug-in. By

    reading the first line of a document, you may not get the real version

    information: A file may claim that it's PDF-1.2, but can contain

    transparency, which was not added to the PDF spec until version 1.4. So to

    get the real version of a PDF file, you need to look for features that are

    used in the file.

     

    Karl Heinz Kremer

    PDF Acrobatics Without a Net

     

    khk@khk.net

    http://www.khkonsulting.com

     
    |
    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