Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
3.50/5 (2 votes)
See more:
Hai,

I would like to read a PDf file even if there is not installed acrobatreader in client mechine. and also directly open without asking Save dialog box

Pls help

Thanks in advance

Soumya
Posted

If you really can't be sure what is available on the client machine, then you will have to process the PDF file on the server into something you can display: HTML or similar.

I don't know your situation, so it is difficult to be specific, but google for "convert pdf to html c#" and you will find a lot of others have been down this road.

Personally, I take the view that some browsers (eg Chrome) can view PDF directly, and nearly everyone has a PDF reader anyway, so I just go ahead with PDF documents and don't bother with conversion. It's not as if Adobe charge for the reader, is it?
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Mar-11 15:43pm    
OP commented:

Hai,
Thank u for your response.

Can u pls give the code demo for "convert pdf to html c#".
It will be more helpful to me

Pls help

Thank you,
Soumya
OriginalGriff 16-Mar-11 4:14am    
What part of "google for "convert pdf to html c#"" did you not try?
Sergey Alexandrovich Kryukov 15-Mar-11 15:46pm    
Correct, my 5. Having PDF viewer can not be assumed. However, this is common practice (not so good practice, in my opinion), so is acceptable.
--SA
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 15-Mar-11 15:47pm    
Useful, a 5, but Griff is right; see also my comment (explaining why I'm not down-voting your Answer :-)
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900