Opened 5 years ago

Closed 5 years ago

#810 closed enhancement (fixed)

Gene report combiner plug-in should be able to combine to a zip file

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: Reggie v3.7
Component: net.sf.basedb.reggie Keywords:
Cc:

Description

The current version of the "Gene report combiner" plug-in takes the pdf files from several raw bioassays and combine them to a single pdf. This is convenient when the aim is to print all of them, but not if the aim is to send them to multiple external partners (eg sites).

In this case it would be better to combine the pdf files simply by putting them as separate files inside as zip file.

Change History (7)

comment:1 Changed 5 years ago by Nicklas Nordborg

Status: newassigned

comment:2 Changed 5 years ago by Nicklas Nordborg

(In [3498]) References #810: Gene report combiner plug-in should be able to combine to a zip file

The plug-in now has support for combining to a single PDF or to a ZIP file. Other formats should be relatively easy to implement.

Preparations for allowing the combiner to combine any report has been made. Actually, by manually changing the file name to something else (eg. pilotreport.pdf) it is already possible to do so. But this should probably be implemented as different configurations to make it easier to use.

comment:3 Changed 5 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed

comment:4 Changed 5 years ago by Nicklas Nordborg

Resolution: fixed
Status: closedreopened

Re-opening this ticket in order to add support for password-protected zip files.

comment:5 Changed 5 years ago by Nicklas Nordborg

(In [3563]) References #810: Gene report combiner plug-in should be able to combine to a zip file

Added support for creating password-protected encrypted zip files. Uses Zip4j library (http://www.lingala.net/zip4j/index.php) for creating the zip files, since the standard java API has no support for encryption.

comment:6 Changed 5 years ago by Nicklas Nordborg

(In [3566]) References #810: Gene report combiner plug-in should be able to combine to a zip file

Added support for combining to a password-protected encrypted PDF file and for combining encrypted PDF files to an unencrypted ZIP file. Uses Bouncy Castle (https://www.bouncycastle.org/java.html) for encrypting the PDF files since that is what iText PDF requires.

comment:7 Changed 5 years ago by Nicklas Nordborg

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.