cancel
Showing results for 
Search instead for 
Did you mean: 

convert HTML style into PDF in Java Report

Highlighted
MEGA Partner

convert HTML style into PDF in Java Report

Hi,

I have Java code like this in Report:

 

Text nodesTitle=new Text("<br><h2 style=\"margin-left:380px;\">Assessment nodes</h2>", false);
nodesTitle.isHtml(true);
reportContent.addText(nodesTitle);

 

and when I try to generate the PDF, it seems doesn't recognize the html code.

and the output is plain html code:

 

<br><h2 style=\"margin-left:380px;\">Assessment nodes</h2>

 

you can also see in the attachments.

 

Mega Version: Hopex V1R3 CP12

 

Any suggestion or ideas?

 

Thanks

1 REPLY
Contributor

Re: convert HTML style into PDF in Java Report

You need to create your own Render.  Check out the article Writing Java Report Renderers (Advanced) in the technicial articles.