Simply add some custom metadata field to the OPF file in the EPUB you generate. Nothing else is likely to remove it. The field can point to the original acsm file or just have a hex encoded dump of the data. Then in postadd use db.format_abspath() to get the path to the added EPUB file, read the added field and optionally remove it and add the acsm file with add_extra_file
|