Question
Commonwealth Bank of Australia
AU
Last activity: 25 Sep 2018 6:11 EDT
Generated PDF doesn't contain any layout format or styles from Application Skin
Hi,
I am generating PDF out of a Section using HTMLToPDF OOTB activity.
Section contains a Dynamic layout with a number of Text Inputs and I have given a custom layout and container format which is available in the application Skin. Apart from this, Section also contains a Repeating Layout with Table in it. Even this layout has got custom container and layout format from Skin and Table has got custom Style from Skin. But when PDF is generated, none of these Layout/Container formats or Style are visible. All Text fields are just stacked and Table doesn't look like a table instead number of fields with a gap.
Could anyone please suggest a solution for this as soon as possible.
-
Likes (1)
dustin bayne -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
Hi There,
To start debugging with this, please check if the markup generated has the styles that you want to see in PDF.
Thanks,
Ujjwal
Commonwealth Bank of Australia
AU
Hi Ujjwal,
Could you please elaborate on how to check this in Mark Up?
Pegasystems Inc.
IN
When you trace the activity you should see this under unnamed page as parameters.
Regards,
Ujjwal
Tata Consultancy Services
US
Hi All,
We have a similar requirement where, in the generated pdf Skin rule/style is not applied(Pega Version 7.2.1). Do we have any workaround/fix for the same?
Thanks.
Maantic Inc
US
Skin CSS properties are not supported in PDF print.
Follow below option to get basic layout
Option 1: Maintain separate section for PDF print. open repeating grid cell - go to presentation tab - Cell inline style give some basic border based on your need (Example : border-width: thin; border: 1px solid #dddddd; text-align: center;)
Option 2: Need to do manual code for repeating grid - using pega for loop in section under HTML tab.
Option 1 is preferred
ANZ Banking Group Ltd
IN
Hi John,
I have face the same issue.Applied the first option you said .Its working but one issue is when there is no data in a particular column,border is not coming.
any idea on how to solve these kind of issues.
Pegasystems Inc.
US
Maantic Inc
US
Can you provide more information on no data.
entire row doesn't have data or particular column doesn't have data?
ANZ Banking Group Ltd
IN
Hi John,
I am talking about when there is no value in a particular cell.( No border for empty cell which has blank value)
I have resolved this issue by including tags related to styling of table as below in HTML Stream where i am calling PDF related sections.
<style>
table{
empty-cells :show ;
}
</style>
ANZ Banking Group Ltd
IN
Hi John,Talking about when there is no value in a particular cell ( [row][column] )
Issue resolved:
Included style tags related to table in HTML Stream where we call PDF related sections:
<style>
table
{
empty-cells: show ;
}
</style>
-
Kensho Tsuchihashi Ravi Kumar Pisupati Sam mk Bharathan T Cloe Walker and 14 More
ANZ Banking Group Ltd
IN
hi gayatri,
not same issue,
I was asking about how to resolve when borders are not displaying in PDF's for cells in repeating grids/table where it is empty.
-
Francois Gaucher