Closed (fixed)
Project:
TCPDF
Version:
2.0.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
4 Sep 2023 at 12:41 UTC
Updated:
12 Jul 2025 at 20:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tmaiochi commentedI made a patch for use the module in Drupal 10, please review!
Comment #3
markwittens commentedCan confirm this patch works, resolves issues reported by the Upgrade status module and PDF's still get generated as expected.
Comment #5
mabuweb commentedI have recently updated to Drupal 10, but I can't get the TCPDF module to work.
I've tried to apply the 3367239-2.patch in D9 before updating to D10, but composer failed anyway on the update saying the module is not D10 compatible.
I also tried to install the module after after the update to D10:
composer require 'drupal/tcpdf:^2.0' --ignore-platform-reqs --with-all-dependencies
but it returns:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- drupal/tcpdf[2.0.0, ..., 2.0.3] require drupal/core ^8 || ^9 -> found drupal/core[8.0.0, ..., 8.9.20, 9.0.0, ..., 9.5.11] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires drupal/tcpdf ^2.0 -> satisfiable by drupal/tcpdf[2.0.0, 2.0.1, 2.0.2, 2.0.3].
Is there any other way to install it in Drupal 10?
Are you planning to publish in the near future a Drupal 10 release of the TCPDF module?
Thank you very much for your help!
Comment #6
sap60 commentedHello
I want to migrate to Drupal 10 and I am in the same situation as mabuweb.
I use this module a lot.
Are you planning to release a new Drupal 10 version of the TCPDF module in the near future?
Thank you very much for your help!
Comment #7
Ganapathy commentedI have recently tried to update Drupal 10 and I am in the same situation.
Are you able to release a new Drupal 10 version of the TCPDF module?
Thank you!
Comment #8
budalokko commentedPatch looks correct and works !! My setup is quite simple, but setting to RTBC as specific issues could be fixed in separate issues.
I could test and working fine:
- Using the "callback" functionality in header via
DrupalInitialize- Using the "html" functionality in footer via
DrupalInitialize@mabuweb The following is needed for using and testing in a d10 site and through the upgrade:
- Add the issue fork as an additional repository, and instruct composer to use it for this specific module. Notice the "exclude" key added in first repository, and the entire new repository added for
drupal/tcpdf- Require this specific version you added:
Once the module maintainers merge this and a new version is available, those changes could be removed.
Comment #9
Ganapathy commented#2 Patch looks correct and its works !!
Comment #12
tobiasbThx. Commited.