Welcome Guest, Not a member yet? Register   Sign In
FPDI and CodeIgniter, cannot read PDFs
#1

[eluser]tjstalcup[/eluser]
I have made my PDFs readable, 444, and I have tried putting the PDFs outside of the root directory and using:
Code:
$pdf->SetSourceFile(base_url()."businesscard.pdf");

this bit of code just keeps the browser spinning, not loading anything

If I put the PDF in the same directory as the script:

Code:
$pdf->SetSourceFile("businesscard.pdf");

it says FPDF error: Cannot open businesscard.pdf !

Now, if I take out that line, it generates the PDF fine. I have been using FPDI/FPDF for 2 years before using CI and never had this issue. Is there a configuration setting inside of CI that would allow me to import PDFs?

Thanks.


Messages In This Thread
FPDI and CodeIgniter, cannot read PDFs - by El Forum - 08-12-2009, 11:47 AM
FPDI and CodeIgniter, cannot read PDFs - by El Forum - 08-12-2009, 12:27 PM
FPDI and CodeIgniter, cannot read PDFs - by El Forum - 08-12-2009, 12:38 PM
FPDI and CodeIgniter, cannot read PDFs - by El Forum - 11-04-2009, 12:17 PM
FPDI and CodeIgniter, cannot read PDFs - by El Forum - 04-12-2011, 09:18 AM



Theme © iAndrew 2016 - Forum software by © MyBB