Closed parwinderD4D closed 3 years ago
This is a fragment of code for title handling::
if(isset($variables['title'])) $pdf->SetTitle($variables['title']);
This should add a variable that will change the title:
{% set pdfOptions = { ..., title: "The title" } %}
Thanks for the quick reply,
{% set pdfOptions = { ..., title: "The title" } %}
It's not working, As I have reviewed the plugin code where the title is getting from $variables not from the $attributes .
due to this title is not override
if I modify the code
if(isset($attributes['title'])){ $pdf->SetTitle($attributes['title']); } else if(isset($variables['title'])){ $pdf->SetTitle($variables['title']); }
Then only custom Title override in pdf
could you please update this code in the plugin?
Looking forward
We added in version 0.0.6 a custom attribute of the title, described in the README.
Hi, could you please let me know how I can change the head title for the pdf document?
My PDF HTML Code
Please ceck my HTML code
Code for download PDF
This is what I am getting in the output :
Any idea how I can replace or change this text.
Looking forward