Comments (13)
use PDFMerger\PDFMerger;
require_once 'PDFMerger.php';
$pdf = new PDFMerger();
Problem solved, thank you all guys.
from pdfmerger.
I suppose you are including
'PDFMerger.php' from your 'sample.php'-file.
Therefore, the 'PDFMerger.php' must be in the same directory. Is that the case?
from pdfmerger.
I suppose you are
including
'PDFMerger.php' from your 'sample.php'-file.
Therefore, the 'PDFMerger.php' must be in the same directory. Is that the case?
'PDFMerger.php' is in the same directory with sample.php,
and ,
i have tried "use(or include) PDFMerger(or PDFMerger.php);" in sample.php ,
but the scripts just die in that fatal error.
i need some help, thank you guys
from pdfmerger.
Do this:
use PDFMerger\PDFMerger;
require_once 'PDFMerger.php';
on sample.php. Write that on the top of the file
from pdfmerger.
Do this:
use PDFMerger\PDFMerger; require_once 'PDFMerger.php';
on sample.php. Write that on the top of the file
thank you! your advice works!
but new fatal error comes:
Fatal error: Class 'PDFMerger\TCPDI' not found in /www/wwwroot/mysite/myokyawhtun/PDFMerger.php on line 87
from pdfmerger.
You're welcome. For the subsequent Error, put a backslash before the class name TCPDI to make it a qualified name, like so:
$fpdi = new \TCPDI;
Do that for any subsequent Class not found error.
from pdfmerger.
use PDFMerger\PDFMerger; require_once 'PDFMerger.php'; $pdf = new PDFMerger();
Problem solved, thank you all guys.
Nice, works fine. Had a lot of trouble before finding this simple solution. Thank you!
from pdfmerger.
Do this:
use PDFMerger\PDFMerger; require_once 'PDFMerger.php';
on sample.php. Write that on the top of the file
Thank you so much @aderahenry . The code works perfectly.
from pdfmerger.
@aderahenry thank you very much
from pdfmerger.
`use PDFMerger\PDFMerger;
require_once 'PDFMerger.php';
$pdf = new PDFMerger();`
oh,i am sorry,how can i do?i used the code,but the error still appear Fatal error: Class 'PDFMerger\TCPDI' not found in D:\wnmp\nginx\www\pdfmerge\PDFMerger.php
from pdfmerger.
You're welcome. For the subsequent Error, put a backslash before the class name TCPDI to make it a qualified name, like so:
$fpdi = new \TCPDI;
Do that for any subsequent Class not found error.
As @aderahenry wrote...
from pdfmerger.
Fatal error: Uncaught Error: Class 'PDFMerger' not found in C:\xampp\htdocs\pdf\index.php:17 Stack trace: #0 {main} thrown in C:\xampp\htdocs\pdf\index.php on line 17
hey guys what cause this error ill be happy is you will help with this error
from pdfmerger.
@manduzu can you try like what neocake wrote before?
use PDFMerger\PDFMerger;
require_once 'PDFMerger.php';
$pdf = new PDFMerger();
from pdfmerger.
Related Issues (20)
- is it support new pdf version.
- Loosing hyperlink when merge pdf HOT 7
- Fatal error: Uncaught Error: Class 'PDFMerger\TCPDI' not found in
- FATAL ERROR in tcpdi_parser.php - Includes fix detail. HOT 4
- Warning in tcpdi_parser.php HOT 2
- Fatal error with some pdf files
- Is this still being maintained?
- upstream timed out (110: Connection timed out) while reading upstream for large files with many pages
- PDF 1.5 merge problems, php 8.1 HOT 2
- Use FPDF with this repo
- add version on composer.json
- Fatal error: Uncaught TCPdiParserException
- Fatal error: Uncaught Error: Class "PDFMerger" not found HOT 1
- PHP 8.2 not working HOT 6
- How to add framework codeigniter 3 HMVC?
- Allowed memory size exhausted
- Callables of the form ["TCPDI", "TCPDF::SetFont"] are deprecated HOT 1
- Is this package still being supported? (Dec'2023)
- TCPDF_PARSER ERROR: decodeFilterFlateDecode: invalid code
- PHP Fatal error: Uncaught TCPdiParserException: Unable to find startxref in PDFMerger/tcpdf/tcpdi_parser.php:1426
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfmerger.