0

Hi,
I am using tcpdf library to create pdf files and they are password protected.Now I have a condition where I want to merge different pdf files and create a single pdf file and dipslay the multiple pdf files to the user in a single pdf file.I am having problem that I am not able to reade the content of the file.I think it is because of the password protection.Here is my code

foreach($rows as $row){

        if(file_exists($row['reports'])){

        $file= $row['reports'];
        $utf8text = file_get_contents($row['reports'], true); 


        $pdf->SetFont('times', '', 10);

        $pdf->AddPage();

        $pdf->Write(5, $utf8text); 



        }
    }
    $pdf->Output('doc.pdf', 'I');

Now is there any way that I can directly read the content of my pdf files or pass the password to the pdf files.Thanks in advance

3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by diafol
0

No,I am going to try now.Can you send me the link of tcpdf forum.Thanks

Edited by saadi06

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.