Therefore the eHealth Connector Convenience API intends to provide such functionality.
Unfortunately there are currently no open source libraries for PDF/A creation available that are aligned with the EPL 1.0 license under which the eHealth Connector source code is published. The currently most popular open source library seems to be the one from iText Software but the different licenses (eHealth Connector: EPL 1.0; iText: AGPLv3) do not allow us to integrate iText in the eHealth Connector convenience API (see also Legal question 'Can I bundle iText with my non-commercial software?'). However, we prepared the eHealth Connector Convenience API and the demos as far as possible. But remember, that we will not distribute iText with the eHealth Connector.
Therefore the eHealth Connector convenience API provides only methods for XML to HTML conversion and for creation the original representation section according to the CDA-CH V2 template 'Original Representation Section - coded' and you are required to build the PDF/A yourselves. So you are free to use the converter of your choice.
The following functionality is supported by the eHealth Connector:
HL7 CDA (XML) to HTML conversion
the conversion from the HTML representation to PDF/A must be done externally
a given PDF/A can be embedded into a CDA document (currently only in the Original Representation Section)
This feature was released with the spring 2018 release R201807.
There are multiple entries in the convenience API:
HL7 CDA( XML) to HTML conversion
creation of an Original Representation Section
The easiest way to get familiar with the eHealth Connector Convenience API is to look at the provided examples in the eHealth Connector demo.
Currently the Original Representation Section is only mentioned in the Swiss exchange format General laboratory report - CDA-CH-LREP. Therefore the DemoLREP will also create the Original Representation Section. It is currently putting a placeholder PDF in the CDA document for demo purposes, only. But you can easily replace the corresponding portion of code with the result of your PDF/A creator.