locked
PDF page level information in C# RRS feed

  • Question

  • User-316268443 posted

    Hello,

    First of all sorry for posting a bit unrelated post here, but i havnt found solution on this anywhere, so posting it here.

    I am using PDFSharp library(written totally in C#) in my C# project to work on PDF files,i want to get all possible information on page level

    e.g page is BW or color,what is DPI,height-width etc...  

    Is it possible to get this in PDF sharp??

    if not, is there any other library which will be usefull in this case..or can i do this in C# only??

     

     

     

     

    Wednesday, December 22, 2010 3:28 AM

Answers

  • User-316268443 posted

    Hello,

    i found one solution over this-

    I have used clearimage library from informatica. 

    which gives me details like DPI,Bits per pixel, format at page level, i have observed these properties among differend PDF files for color,grayscale,BW etc.. and got difference key between them to identify type also got width, height properties as well.

     

    But now am again facing defferent problem with PDFsharp library this time...

    I have some pdf files with version 1.2(version supported by PDF sharp library), i got error while reading these files in PDFsharp on line

    PDFReader.open()

    Errors-

    - token 001 was not expected
    - token 5 was not expected
    - token n was not expected

    i cannot understand what kind of errors are these since it occurs only for some files,

    also no usefull information on internet to understand this, not even on PDFSharp forums

     

    Please help.

     

     


     

     

     

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 28, 2010 4:44 AM

All replies

  • User-215742532 posted

    perhaps u should use Acrobat SDK / Acrobat API,

    do read this: http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/access.pdf

    page number 26


    -------------------------------------------------------------

    mark this post as answer if it has resolved ur issue


    Wednesday, December 22, 2010 4:09 AM
  • User-316268443 posted

    sorry, but i dont want to go for Adobe SDK. 

    Wednesday, December 22, 2010 4:39 AM
  • User-215742532 posted

    do share the solution  that work for u. it will be intersting to know.

    Wednesday, December 22, 2010 4:58 AM
  • User-316268443 posted

    Hello,

    i found one solution over this-

    I have used clearimage library from informatica. 

    which gives me details like DPI,Bits per pixel, format at page level, i have observed these properties among differend PDF files for color,grayscale,BW etc.. and got difference key between them to identify type also got width, height properties as well.

     

    But now am again facing defferent problem with PDFsharp library this time...

    I have some pdf files with version 1.2(version supported by PDF sharp library), i got error while reading these files in PDFsharp on line

    PDFReader.open()

    Errors-

    - token 001 was not expected
    - token 5 was not expected
    - token n was not expected

    i cannot understand what kind of errors are these since it occurs only for some files,

    also no usefull information on internet to understand this, not even on PDFSharp forums

     

    Please help.

     

     


     

     

     

     

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, December 28, 2010 4:44 AM