Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
CodeIgniter 4
CodeIgniter 4 Addins
FPDF
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
FPDF
vitnibel
Junior Member
Posts:
37
Threads:
0
Joined:
Apr 2020
Reputation:
0
#2
05-12-2020, 09:26 AM
Before outputting data to the browser, you need to set the correct type of content.
PHP Code:
$this
->
response
->
setHeader
(
'Content-Type'
,
'application/pdf'
);
$mpdf
->
Output
();
Reply
Messages In This Thread
FPDF
- by
niklas
- 05-12-2020, 05:20 AM
RE: FPDF
- by
vitnibel
- 05-12-2020, 09:26 AM
RE: FPDF
- by
niklas
- 05-14-2020, 12:32 AM
RE: FPDF
- by
pws
- 09-10-2020, 02:45 AM
RE: FPDF
- by
vitnibel
- 09-11-2020, 08:10 PM
RE: FPDF
- by
stepgr
- 09-19-2020, 02:33 AM
RE: FPDF
- by
pws
- 09-11-2020, 10:52 AM
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB