Highlighted
Absent Member.. Oscar_Pereira Absent Member..
Absent Member..
174 views

(PPM) Support Tip: Key information to add in a Support case when having PDF export issues

How the PDF export is generated in PPM Project Overview Page?

The (internal) Process is something like:


1.) user select "Export to PDF" from Project overview page, enters the Options in the opening popup windows "PDF Settings" and clicks the "Export" button
The URL POST is /itg/dashboard/html3pdf/Html2PDFConvertor JSPScript=....
2.) a "master" JSP (PageViewPrint.jsp) is called
and this calls some "child" JSPs depending on the selections made.
This generates a HTML page. This page includes a reference to Print.css
3.) The PDFconverter takes the HTML page and renders it to PDF. To do so it has to load the stylesheet Print.css.

 

Key information to add in a Support case when having PDF export issues

 

1-Does it happen with different users? Test with different users.

2-Does it happen in different client machines?

3-What is the browser version used by the affected user?

4-Please set the following lines in the logging.conf under PPM_HOME/conf

com.kintana.core.logging.PRODUCT_FUNCTION_LOGGING_LEVEL = com.mercury.dashboard.html2pdf.IcebrowserHtml2PDFConvertor, DEBUG
com.kintana.core.logging.PRODUCT_FUNCTION_LOGGING_LEVEL = com.mercury.dashboard.html2pdf.HTMLToPDFHeadlessEngine, DEBUG
com.kintana.core.logging.PRODUCT_FUNCTION_LOGGING_LEVEL = com.mercury.dashboard.html2pdf.RenderDoneTracker, DEBUG

In addition to these, the SYSTEM_THRESHOLD setting in logging.conf should also be set to DEBUG.

Reproduce the issue and get the serverLog.txt attached to the support case, the debug settings can be disabled simply by setting the value ERROR again.

 

Here is how to save the PDF as html:


1. modify <PPM_HOME>/conf/logging.conf
modify
com.kintana.core.logging.SYSTEM_THRESHOLD = DEBUG
add
com.kintana.core.logging.PRODUCT_FUNCTION_LOGGING_LEVEL = com.mercury.dashboard.html2pdf.IcebrowserHtml2PDFConvertor, DEBUG
2. login ppm, search a project
3. export the project to pdf
4. open the serverLog.txt, find a log start with 'Finished Html2PDF conversion URL: ', copy the following full url which starts with "http://localhost:", using firefox to render this url,
since this url contains 'localhost', please
execute this url on the machine which ppm installed or change 'localhost' to ppm server's ip address.
5. save the page displayed in step 4 as a html file, the html file should come up with a folder has the same name as the html file

Save the PDF file also, then ti can be compare with the html file.

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.