Bug 442462 - Ability to Include Editable Fields in Generated PDF
Summary: Ability to Include Editable Fields in Generated PDF
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: BIRT (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Birt-ReportEngine-inbox@eclipse.org CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-25 04:40 EDT by Aurélien Seurein CLA
Modified: 2014-08-25 11:24 EDT (History)
1 user (show)

See Also:


Attachments
Example of an editable field (61.71 KB, application/zip)
2014-08-25 04:40 EDT, Aurélien Seurein CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aurélien Seurein CLA 2014-08-25 04:40:20 EDT
Created attachment 246301 [details]
Example of an editable field

In a project that I'm working on, I needed to include editable fields
in the template files using the tool BIRT. So, I modified the BIRT
runtime source (4.3.1) in order to create editable fields when we use
the style 'linethrough' in the templates files. 
I modified the classes PDFRender.java and PDFPage.java at the location
org.eclipse.birt.report.engine.emiter.pdf.

By default, BIRT is unable to generate editable fields for reports in
PDF format, ie fields whose content can be edited directly on the
final report. A patch has been necessary to make this feature
available.
In this patch, the emitter for generating PDF reports
"org.eclipse.birt.report.engine.emiter.pdf" was patched by changing
only two classes: PDFRender.java and PDFPage.java. These have been
amended to insert the following two features.
To insert an editable field in a BIRT model, we have to use the "line
through" style on an selected element, this style is located next to
the "underline", "italic" and "bold" styles in BIRT. In the PDF emitter, I use iText API to create the editable field. For example, if the model has an element of type text with the value "Suzuki", in the generation that will produce an editable field with predefined value "Suzuki".

Source code available here : https://wiki.eclipse.org/File:AddEditableFields.zip