掲示板

Pringing jsp file has too much white space

thumbnail
10年前 に Dave Weitzel によって更新されました。

Pringing jsp file has too much white space

Regular Member 投稿: 208 参加年月日: 09/11/18 最新の投稿
I have a jsp from my custom portlet that I need to be printed and also exported to pdf.
I can get all the plumbing and user interface working nicely but the out put has a ton of white space before you get to the target content.
I am using a printURL like this to generate the output:

		PortletURL printPageURL = renderResponse.createRenderURL();
				printPageURL.setWindowState(LiferayWindowState.POP_UP);
				printPageURL.setParameter("jspPage", "/html/plan/printPlan.jsp");
				printPageURL.setParameter("planId", Long.toString(currentPlan.getPlanId()));
				printPageURL.setParameter("viewMode", Constants.PRINT);

this is same code as the pdf (using openoffice converter) as well.

It may be related to an issue I have about the amoun tof header scripts loaded in popup mode when not needed but I cannot see where the white space content comes from when viewing firebug out put.

In some cases I get a complete blank page and more before I get o the page title.

Any ideas what is happening
thumbnail
10年前 に David H Nebinger によって更新されました。

RE: Pringing jsp file has too much white space

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
CSS controls the print layout also; have you checked the rendered JSP in this mode to see what the CSS is forcing?