At #3
Natialia, I think you need to add
use \AllowDynamicProperties;
before the
#[AllowDynamicProperties]
Without the use \AllowDynamicProperties;
I get en error.
The described fix works for me.
I can confirm that the error message disappear with the patch in #7. Thanks for solving this!
Hi Shreya_th,
Sorry for the delay, but I have now reviewed your changes. There is still an fatal error but now with a different message:
Got error 'PHP message: PHP Fatal error: Class Drupal\\pdf_serialization\\Encoder\\PdfEncoder contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\\Component\\Serializer\\Normalizer\\NormalizerInterface::supportsNormalization) in /home/*****/drupal/web/modules/contrib/pdf_serialization/src/Encoder/PdfEncoder.php on line 14'
I hope this helps.
jos_s → created an issue.