Question

2
Replies
52
Views
Abikash Kumar Sharma (AbikashSharma)
Cognizant

Cognizant
SE
AbikashSharma Member since 2014 15 posts
Cognizant
Posted: February 17, 2021
Last activity: February 24, 2021
Posted: 17 Feb 2021 11:31 EST
Last activity: 24 Feb 2021 10:31 EST

Unable to set page width in pdf

In Pega 7 when we set width of body in an HTML, that becomes the width the generated PDF. But in Pega 8.4, I noticed that the width of PDF is fixed to some unknown values.

For example - Earlier if we set dimensions as 800px X 600px. It will generate same size pdf page. But now whole content is set in nearly half the size of pdf. I can write custom java in HTMLToPDF to achieve the earlier result but wanted to know the purpose of this change in Pega 8. Pega might have changed it with some purpose.

I am finding it difficult is set font size; be it in mm, pt or px. All of them seems to look smaller than expected in the pdf

I am attaching the screenshot of pdf. Any help would be highly appreciated

Pega Platform 8.4.2 User Experience