Discussion

Creating Word or PDF documents

Hi,

Is there any default activity to generate Word doc or PDF from the data in a pagelist in the clipboard.

- Veera

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

April 19, 2010 - 2:56pm

There is no such default activity in pega.You need to use iText API to generate word or PDF.

Pega
April 20, 2010 - 5:40pm

May 8, 2010 - 11:16am

check out pd4ml it works good too, the best part of it is it accept html stream so we can format the information in the generated pdf.

The other way to do it is using pega forms.

May 9, 2010 - 10:28am

We have used FOP extensively.

Apache FOP (Formatting Objects Processor) is a print formatter driven by XSL formatting objects (XSL-FO) and an output independent formatter. It is a Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. Output formats currently supported include PDF, PS, PCL, AFP, XML (area tree representation), Print, AWT and PNG, and to a lesser extent, RTF and TXT. The primary output target is PDF.

Additional detail can be found at http://xmlgraphics.apache.org/fop/

April 22, 2010 - 1:26pm

1.1st put ur values in a page.

2.In a java step get the page and put it in a java object(Can define it in local).
ClipboardPage objPage = tools.findPage("ObjPage");
ObjPage = (java.lang.Object)objPage;

3. call "GenerateEForm" activity on a on your page.Before that create a page of "Code-Pega-eForm" and put the objectin step 2 in .pyEForm property of Code-Pega-eForm page.

4. call ConcatenateEForms activity on a different Code-Pega-eForm page.
Before that make a property-set to copy the .pyEForm property of 1st Code-Pega-eForm page to .pyEForms(<No. of eForms you generate by previous steps>) property of 2nd Code-Pega-eForm page .

5.call WriteEFormToFile activity and give the file location with the file name.
####### You will find a PDF is generated with your values.
###### If you have a specific templet for the PDF you can upload it by Acclerator Application-->Import-->PDF eForm.

September 3, 2010 - 11:08am

Hi,

I am trying to generate the PDF from an HTML Stream. I am using the HTMLToPDF default activity. I am able to generate the PDF, but its generated in Landscape. Is there any way to change it to Portrait?

November 16, 2010 - 11:02am

I too have had this issue, has anyone else experienced the orientation problem.

We were informed that there would be a hot fix for this but have not seen anything on it since.

Also has anyone seen any release notes for v6.1 SP2?

August 21, 2012 - 12:27pm

I am trying to generate a PDF from a template that I created using Adobe Acrobat X Pro (trial version). I imported the template using the eForms wizard in Pega 6.2, but I get this error message when I call GenerateEForm: "Font 'KozMinPro-Regular' with 'UniJIS-UCS2-H' is not recognized."

From what I've seen on the web this message occurs when you try to import Japanese characters into a pdf form, however, I am not trying to do that at all. Could there be a problem with the product I used to create the form? Does anyone know of a product that I could to use to create the form that they have verified works with PRPC?

September 22, 2015 - 4:10pm

I think it's HFix-2932.