Unable to generate PDF from a section using pxCreatePDF

Hi ,

I have a requirement to convert a section to pdf. That section is in data-portal class, i added a button ->Click run activity ->Calling my custom activity which in turn calls pxCreatePDF OOTb activity.

I passed section name, orientation, file names as inputs. But PDF is not generated. No errors in tracer.

@Pavani_Regulagedda

I have attached a screenshot of the code.

If that’s not working, It would be great if you can share the snippet to understand the root cause.

@RameshSangili I tried pyviewaspdf, by passing a html rule as input and html has code as below

<pega:include name=“sectionname” type=“Rule-HTML-Section” />

PDF is generated but it doesot have the same filed alignment as in my section. Any idea

@Pavani_Regulagedda Run your activity with an event like OpenWorkByHandle or OpenURLInWindow