Jump to content


Photo

PDF Generation using PHP


  • Please log in to reply
3 replies to this topic

#1 suren

suren
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 06 April 2006 - 11:12 AM

I have created a pdf using FPDF class .Is it possible to lock the PDF document and giving access rights using PHP.

#2 Barand

Barand
  • Moderators
  • Sen . ( ile || sei )
  • 18,021 posts

Posted 06 April 2006 - 08:46 PM

<?php

if ($is_authorized_to_view_pdf) {

          # generate PDF
}

else {

         # don't
}

?>

If you are still using mysql_ functions, STOP! Use mysqli_ or PDO. The longer you leave it the more you will have to rewrite.

Donations gratefully received






moon.png

|baaGrid| easy data tables - and more
|baaChart| easy line, column and pie charts

#3 suren

suren
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 07 April 2006 - 04:46 AM

[!--quoteo(post=362358:date=Apr 6 2006, 03:46 PM:name=Barand)--][div class=\'quotetop\']QUOTE(Barand @ Apr 6 2006, 03:46 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
<?php

if ($is_authorized_to_view_pdf) {

          # generate PDF
}

else {

         # don't
}

?>
[/quote]


That's fine, but I want to open the document and make it as readonly.That is no one can
change the content of the PDF document with any of the PDF document editing tool.
How to enable the readonly option. Is it possible through PHP.

Thanks

#4 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 07 April 2006 - 07:32 AM

Have you looed through the FPDF reference manual? All of its functions and classes are documented in there.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users