Comments (6)
Got the following email communication from Epic2022:
The deprecated functions mentioned in the warnings are related to the TCPDF library, which is used for generating PDF files.
The library has functions with optional parameters that are declared before the required parameters, which is not a good practice.
You should update your code to use the latest version of TCPDF or update the deprecated function calls. If you can't update the library or code, you can suppress the warnings by modifying your php.ini file or adding the following line of code to the top of your PHP file:
error_reporting(E_ALL ^ E_DEPRECATED);
This will turn off the deprecation warnings for the code that you are running. However, this is not recommended as the code may become unusable in future versions of PHP.
It's always a good practice to update your code and libraries to their latest versions to avoid such issues.
I will be taking a look at this and when I have a solution will be posting.
from pdfmerger.
I am also stuck waiting on this issue
from pdfmerger.
for ex.
$unicode = self::UTF8StringToArray($str, $isunicode, $currentfont); //don't work
Here you have to change the place of the variables:
$unicode = self::UTF8StringToArray($str, $currentfont, $isunicode); //workable way
or the variable $currentfont should write first:
$unicode = self::UTF8StringToArray($currentfont, $str, $isunicode); //workable way
from pdfmerger.
same problem.. anyone solved this issue ?
from pdfmerger.
same problem.. anyone solved this issue ?
https://github.com/sinanbekar/pdf-merger
this works for me
from pdfmerger.
In the end what I have done is get the latest FPDI and FPDF libraries and just re-work the original PHPMerger library to use them. Literally two lines need modifying that are specific to TCPDF (you remove the two lines specifically calling the TCPDF header and footer initialisation).
It works with PHPv8.3.3 and if you buy the official FPDI-Parser will handle pretty much everything. Even without the additional commercial parser it is as robust as the original.
This is pretty much what @johnloydlao has mentioned in the link above. When I drilled into what it was doing the code is really simple.
I am using:
FPDF v1.86
FPDI v2.6.0
FPDI-Parser v2.1.2 (not required but for (€100 probably worth it for robustness in a commercial environment).
There looks to be a new version of TCPDF under development which will handle some of the major changes brought about by PHPv8+. Information can be found here (https://tcpdf.org/ )but the link to the new version is: https://github.com/tecnickcom/tc-lib-pdf
A new TCPDF will remove the need for the additional FPDI-Parser (I believe) for dealing with PDF's version 1.4 and above.
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
- 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.