Get Free Trial
Get Free Trial

not getting proper Header into the pdf file ?

Resolved
Lekhraj asked on September 26, 2019

I have added these parameters while exporting in pdf format
const posParams = {
filename:widgetName,
header:
‘<div style=”text-align: center; width:100%”><h5>’+
widgetName+
“</h5>”+
“</div>”,
};

Attachments:
Capture.JPG

3 answers

Public
Vera Didenko Flexmonster September 27, 2019

Hello, 
 
Thank you for reaching out to us.
 
We have not managed to reproduce the issue on our side.
Please see the following JSFiddle example for illustration: https://jsfiddle.net/flexmonster/j68qangp/
 
Our team kindly suggests updating to the latest version of Flexmonster: https://www.flexmonster.com/release-notes/version-2-7-15/
Here is our updating to the latest version tutorial for guidance: https://flexmonster.com/doc/updating-to-the-latest-version/

Please let us know if this helped to resolve the problem.
 
We are looking forward to your reply.
 
Best Regards,
Vera

Public
Lekhraj October 13, 2019

Hello Team,
I have updated the flexmonster to 2.7.16, but still not getting Header Title. the bottom line of header getting cut. I have attached the screenshot of pdf file.
Thanks in advance.
Regards,
Lekhraj

Attachments:
graph report.JPG

Public
Vera Didenko Flexmonster October 15, 2019

Hello, Lekhraj,
 
Thank you for writing to us.
 
To keep the bottom line of the header from getting cut, we kindly suggest applying the padding CSS property:

function pdf() {
var widgetName = "myWidget";
const posParams = {
filename: widgetName,
header: "<div style='text-align: center; width:100%; padding: 10px;'><h5>" +widgetName+"</h5></div>"
};
flexmonster.exportTo('pdf', posParams);
}

Here is a JSFiddle example for illustration: https://jsfiddle.net/flexmonster/3rfng6o5/
 
Please let us know if this helps.
 
Best Regards,
Vera

Please login or Register to Submit Answer