Completed

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);

if(!file_exists($page_file)){

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

$pdf->AddPage();

$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]

Skills: HTML, Javascript, MySQL, PHP

See more: 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

About the Employer:
( 5 reviews ) Málaga, Spain

Project ID: #19341057

Awarded to:

haiyang19890101

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 in 1 day
(7 Reviews)
2.5

12 freelancers are bidding on average €25 for this job

moonwebtech

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 in 1 day
(221 Reviews)
7.3
nixtech

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 in 0 days
(148 Reviews)
6.2
bizdigitalbrain

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 More

€30 EUR in 5 days
(29 Reviews)
6.0
manjeet2017

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 More

€23 EUR in 1 day
(70 Reviews)
5.4
Mark98998

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 More

€23 EUR in 1 day
(16 Reviews)
5.1
spooke123

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] More

€30 EUR in 1 day
(29 Reviews)
5.1
dilshadbukhari

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 in 1 day
(23 Reviews)
4.2
rathipankaj2005

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 More

€19 EUR in 1 day
(5 Reviews)
2.8
SoftwareWar

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 in 1 day
(3 Reviews)
2.5
Jinzin

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 More

€23 EUR in 1 day
(2 Reviews)
1.7
MobileLiLi

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 More

€23 EUR in 1 day
(1 Review)
1.4