Jump to content

Archived

This topic is now archived and is closed to further replies.

suren

PDF Generation using PHP

Recommended Posts

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

Share this post


Link to post
Share on other sites
[code]<?php

if ($is_authorized_to_view_pdf) {

          # generate PDF
}

else {

         # don't
}

?>[/code]

Share this post


Link to post
Share on other sites
[!--quoteo(post=362358:date=Apr 6 2006, 03:46 PM:name=Barand)--][div class=\'quotetop\']QUOTE(Barand @ Apr 6 2006, 03:46 PM) [snapback]362358[/snapback][/div][div class=\'quotemain\'][!--quotec--]
[code]<?php

if ($is_authorized_to_view_pdf) {

          # generate PDF
}

else {

         # don't
}

?>[/code]
[/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

Share this post


Link to post
Share on other sites
Have you looed through the FPDF reference manual? All of its functions and classes are documented in there.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.