PHP + FPDF error

I have the next PHP function to extract a certain page from a PDF file.

require_once(DIR_SYSTEM . 'library/fpdf/[login to view URL]'); // Use FPDF library

require_once(DIR_SYSTEM . 'library/fpdi/[login to view URL]'); // Use FPDI library

function savePage($source_file, $page){

$page_file = str_replace('.pdf', '_' . $page . '.pdf', $source_file);


$pdf = new setasign\Fpdi\Fpdi();


$count = $pdf->setSourceFile($source_file);

if($page > $count){

return false;

} else {

$pdf->useTemplate($pdf->importPage($page), 0, 0, null, null, true);

$pdf->Output('F', $page_file);



return $page_file;


It works fine with this file: [login to view URL]

But got error when try to this one: [login to view URL]

Taidot: HTML, Javascript, MySQL, PHP

Näytä lisää: sign php script error, extjs php fpdf, php parse error syntax error unexpected, <b>fpdf error:</b> some data has already been output, can't send pdf file, message fpdf error the document is closed, fatal error uncaught exception tcpdf error some data has already been output can t send pdf file, message fpdf error incorrect output destination, how to create pdf in php, fpdf error not a jpeg file, fpdf error cannot open, mpdf data has already been sent to output, unable to output pdf file, php fatal error call undefined function imagefontwidth, php script error database selected, php fatal error call undefined function setopt, php page error fix, php upload error, php remove error message, php report error user upon filling form, php ftp error handling, php redirect error

Tietoa työnantajasta:
( 5 arvostelua ) Málaga, Spain

Projektin tunnus: #19341057

Myönnetty käyttäjälle:


Hello! I have seen your code error. I can fix the issue and start work right away. I will be looking forward to hear from you. Thanks.

€20 EUR 1 päivässä
(7 Arvostelua)

12 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hello We are skilled web developer and we are working in web development from last five year so please feel free to contact me for more discussion about pdf creator Thank you

€24 EUR 1 päivässä
(221 arvostelua)

Hello Sir I can fix PHP error in FPDF right away. I am willing to start right away. Please check my profile for work and experience. Regards Ashwin

€30 EUR 0 päivässä
(148 arvostelua)

Hi Hope you are doing well We are a lead generation company, We generate all Digital Marketing leads from across the globe . We generate SEO,PPC,SMO,Web Development,App Development leads Sound Interesting!Let me Lisää

€30 EUR 5 päivässä
(29 arvostelua)

Hello Just to introduce my self ,I have more than 5+ years of experience in design & development. And as a policy we will provide 3 month maintenance "free of cost" for the project done by us. Now coming on this Lisää

€23 EUR 1 päivässä
(70 arvostelua)

Hi, I have gone through your project description and I'm interested to work with you. I'm very passionate and professional about my work and give good quality of work to client. I have more than 6+ years of expe Lisää

€23 EUR 1 päivässä
(16 arvostelua)

Hi. I am very interested in this job. I am working as a senior web developer for 6 years. Top knowledge of PHP is my key point. You will get the best result, I am sure [login to view URL] [login to view URL] [login to view URL] Lisää

€30 EUR 1 päivässä
(29 arvostelua)

Hi there, I am expert in PHP I can fix your problem. And I am sure I will give you 100% accuracy work as you want. Looking forward: Thank you!

€30 EUR 1 päivässä
(23 arvostelua)

Hi Hope you are doing well.I have 7yrs of experience on web developement with various assignment completed successfully and looking forward for many more.I have good exposure in php mysql html css javascript jquery Lisää

€19 EUR 1 päivässä
(5 arvostelua)

I am professional PHP mysql developer with 5 years experience. I went to do this work for you. Thanks and regards, Abdul Nasim.

€22 EUR 1 päivässä
(3 arvostelua)

Hello,Sir How are you? I have already read your proposal carefully and have experience about project like yours. I can satisfy your full need. Hope to contact with me for our cooperation. Thank you. Best re Lisää

€23 EUR 1 päivässä
(2 arvostelua)

Hi, My name is Xue who is full stack developer. I read your job description carefully. I know what is problem and solution My expertise is Web development with almost 7 years experience. I can show you my past Lisää

€23 EUR 1 päivässä
(1 arvostelu)