open pdf
Moderator: General Moderators
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
Use fread. Go Ahead, Read the manual. it has the examples enough for you to get it.
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
saumya wrote:but I want to open the pdf document as is in adobe acrobat?!!
i have already told you that...
Why don't you understand that. isn't acrobat doing its job jus' fineI wrote:PDF's are binary files that can be opened by using file functions but don't expect to get any information outta that
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
it says
Warning: fopen() expects at least 2 parameters, 1 given in D:\Saumya\PHP\pdf.php on line 2
my code is
Warning: fopen() expects at least 2 parameters, 1 given in D:\Saumya\PHP\pdf.php on line 2
my code is
Code: Select all
<?php
fopen("budget_book_2005-06.pdf");
?>- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
what do you want to do with the PDF ? PHP has a few extensions to work with them, but not much more. If you want to open it in the browser, sending it as inline to the browser is the easiest way. You need to supply a link to download a new reader as well, just in case they don't have Acrobat Reader.
well,actually i just wanted to open a pdf file, which is there in the server somewhere in a folder.i know the relative path of the folder.what i want is depending upon the user clicking a button a separated pdf document should open in acrobat.Actually i want to make a cd and it consists alot of pdfs.i want to open them from one html page.can i use php here, in this case?
thank you very much for your concern and answering nicely.
saumya
thank you very much for your concern and answering nicely.
saumya
so, what do you suggest me to do?how can i open a pdf document.or its not possible as Pyrite has said earlier.
thank you verymuch.this kind of responses make me to come to this board again and again.thank you feyd.
i was reading through your poast in improving the php support in this board and how we can leverage the power of the codes to post.really nice work done.congrats.i come across a doubt,what is a bbcode?
saumya
thank you verymuch.this kind of responses make me to come to this board again and again.thank you feyd.
i was reading through your poast in improving the php support in this board and how we can leverage the power of the codes to post.really nice work done.congrats.i come across a doubt,what is a bbcode?
saumya