掲示板

Printing and PDF production from portlets

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

Printing and PDF production from portlets

Regular Member 投稿: 208 参加年月日: 09/11/18 最新の投稿
I have a portlet that essentially helps a user write a structured report and includes things like graphs and comments

I am having many problems trying to get decent print and pdf output.

Does anyone have experience in doing this? I have different print and pdf jsp files and the pdf is being processed through open office by using code similar to journal content conversion.

Issue I have include:
a) getting page breaks to work in pdf output.
b) getting page footer to be positioned at bottom of pdf page
c) headers and footers generally (cannot find any example on the web of this working in modern browsers - seriously CSS3 HTML5 is no help)
d) centering text
e) managing fonts

So please if yo have any experience on this let me know with some advice/examples

Thanks
thumbnail
10年前 に Mika Koivisto によって更新されました。

RE: Printing and PDF production from portlets

Liferay Legend 投稿: 1519 参加年月日: 06/08/07 最新の投稿
I've used Apache FOP in the past to create very accurately formatted PDFs.
thumbnail
10年前 に Dave Weitzel によって更新されました。

RE: Printing and PDF production from portlets

Regular Member 投稿: 208 参加年月日: 09/11/18 最新の投稿
Thanks for the response Mika
Did you send HTML type output to Apache-FOP?
What is the easiest method of creating data for it, I have been using straight JSP pages hence html and CSS but is that the best way to go for FOP?
Some of what we want is out put from an included portlet (tables of results) so that has to reall be HTML output.

Will may be give it a try anyway
Dave
thumbnail
10年前 に Juan Gonzalez によって更新されました。

RE: Printing and PDF production from portlets

Liferay Legend 投稿: 3089 参加年月日: 08/10/28 最新の投稿
In that case maybe you can take a look at Flying Saucer
thumbnail
10年前 に Mika Koivisto によって更新されました。

RE: Printing and PDF production from portlets

Liferay Legend 投稿: 1519 参加年月日: 06/08/07 最新の投稿
I used XML and XSLT that was transformed to XSL-FO. The xml was created on the fly and xls tempates where pre written for each type of data sheet I was generating. The process went something like the XSLT example here.