datamade / councilmatic-document-merger

📚 A Docker image that compiles specified remote documents into a single PDF packet
1 stars 0 forks source link

Add support for XPS conversion #4

Open hancush opened 2 years ago

hancush commented 2 years ago

XPS is a proprietary Microsoft document format similar to a PDF. They can't be opened in OpenOffice, so unoconv can't convert them. I spiked conversion with ConvertAPI in this branch. It was super easy, but it's not a free service. XPS attachments seem rare, so I'm going to gauge whether this is a must have or nice to have. (The old merger did not support this filetype, instead skipping attachments it couldn't convert.)

hancush commented 2 years ago

As a stopgap, I've updated the merger to skip attachments that are not of an expected type in https://github.com/datamade/councilmatic-document-merger/commit/6e846262f241e0f27bd1feabee5e8fbf71dc16f5.