Create a PDF document from HTML output, a header and a footer

已关闭 已发布的 Mar 25, 2010 货到付款
已关闭 货到付款

A program is needed to create a PDF file from the following inputs:

1) A set of sections

1. Most sections are HTML files (Text with formatting, potentially images inline (not implemented yet))

2. There is a special section type that is a page break

2) Cover page header (header to be used for page 1 only) ??" text/simple html

3) Cover page footer (footer used for page 1 only) ??" text/simple html

4) Page header (header for pages 2+) ??" text/simple html

5) Page footer (footer for pages 2+) ??" text/simple html

The data is to be retrieved from a MySQL database.

The current site is implemented in PHP. This module can be implemented in either PHP or Java. It has to run on both Windows and Linux systems. It may only use free / open source libraries in generating the PDF. A couple of potential tools to use: HTMLDOC, JasperReports, Apache FOP (others okay ??" please confirm which one you’ll be using in the bid).

## Deliverables

A PDF file should be created from the following inputs:

1) A set of sections

1. Most sections are HTML files (Text with formatting, potentially images inline (not implemented yet))

2. There is a special section type that is a page break

2) Cover page header (header to be used for page 1 only) ??" text/simple html

3) Cover page footer (footer used for page 1 only) ??" text/simple html

4) Page header (header for pages 2+) ??" text/simple html

5) Page footer (footer for pages 2+) ??" text/simple html

The data is to be retrieved from a MySQL database.

The current site is implemented in PHP. This module can be implemented in either PHP or Java. It has to run on both Windows and Linux systems. It may only use free / open source libraries in generating the PDF. A couple of potential tools to use: HTMLDOC, JasperReports, Apache FOP (others okay ??" please confirm which one you’ll be using in the bid).

This is to be called from a PHP action in the symfony framework. It will be provided a report_id and a desired output file path (should be passed in as parameters). For non-PHP implementations, it can be called via a system call. For example, it could call ‘exec(“generatePDFReport 123 [url removed, login to view]?)’ will run the program you create, called generatePDFReport for report_id 123 and it will create file [url removed, login to view] as output.

To get the contents of the report, the queries you will need when plugging into the database (coming in with a report_id ??" passed in):

1) Get the list of section definitions and content in order:

“SELECT DISTINCT [url removed, login to view], [url removed, login to view] FROM report_section_definition def, report_section section, report report, report_definition_report_section_definition rs WHERE [url removed, login to view] = ? AND report.report_definition_id = rs.report_definition_id AND rs.report_section_definition_id = [url removed, login to view] AND section.report_section_definition_id = rs.report_section_definition_id AND section.report_id = [url removed, login to view] ORDER BY rs.display_order?? binding the ? to 123

This will provide the following values (in display order ??" the sections should flow one after another in the PDF document):

* type ??" 0 for HTML section, 1 for page break

* content ??" the HTML to use for the section content (text with formatting / style information; may have local image references that need to be included)

2) Get the page headers and footers:

“SELECT [url removed, login to view], [url removed, login to view] FROM report_header header, report report WHERE [url removed, login to view] = ? AND report.report_definition_id = header.report_definition_id AND report.tenant_id = report_header.tenant_id??

This will provide the following values:

type-

* 1 = Header for every page

* 2 = Header for first page only

* 3 = Header for pages 2+

* 11 = Footer for every page

* 12 = Footer for first page only

* 13 = Footer for pages 2+

content ??" the HTML to use for the footer/header (pure text with formatting / style information)

工程 Java MySQL PHP 软件构架 软件测试 用户接口 / IA 网络主机 网站管理 网站测试

项目ID: #3293569

关于项目

17个方案 远程项目 活跃的Apr 16, 2010

有17名威客正在参与此工作的竞标,均价$200/小时

canlevw

See private message.

$850 USD 在10天内
(55条评论)
6.8
WiPage

See private message.

$255 USD 在10天内
(174条评论)
6.9
admarinfotech

See private message.

$102.85 USD 在10天内
(83条评论)
5.0
jasonwolf

See private message.

$340 USD 在10天内
(8条评论)
4.6
ariprainfotech

See private message.

$102 USD 在10天内
(13条评论)
4.3
setiawanutama

See private message.

$85 USD 在10天内
(59条评论)
4.3
showm3urluvvw

See private message.

$212.5 USD 在10天内
(21条评论)
4.1
mdelwarsl

See private message.

$212.5 USD 在10天内
(1条评论)
2.7
SDPTeam

See private message.

$144.5 USD 在10天内
(7条评论)
4.0
mohamedfawzy21

See private message.

$127.5 USD 在10天内
(6条评论)
2.0
mlmdeveloperssl

See private message.

$340 USD 在10天内
(3条评论)
2.7
hawaammah

See private message.

$85 USD 在10天内
(2条评论)
0.0
tultech

See private message.

$170 USD 在10天内
(2条评论)
0.0
younessviolon

See private message.

$102 USD 在10天内
(0条评论)
0.0
svnbd

See private message.

$85 USD 在10天内
(1条评论)
0.0
iasela

See private message.

$102 USD 在10天内
(0条评论)
0.0
dhampatel

See private message.

$85 USD 在10天内
(0条评论)
0.0