Closed FikriMilano closed 1 month ago
@pld feel free to review this ticket
Can you please add details on how you will add the PDF generation, like
1) where in the package hierarchy 2) what will the facade look like for the external library (i.e. architect so if we start with webview and switch to openpdf we make minimal changes to the code
plus any other relevant details about the code implementation, thank you!
cc @ellykits @ndegwamartin
@pld thanks, the detailed plan has been added to the ticket. It's fairly simple, assuming the HTML is ready to print (i.e. values from Questionnaire Response has been populated to the HTML). The population from QR to HTML will happen outside of this class as there's no reason to make those 2 functionality tightly coupled.
Functionality that I mean:
Hope that makes sense.
@FikriMilano On the implementation plan:
Create a public function to launch the generator, that has htmlText as it's parameter. We will call this function on places like user interaction/on click/on submit questionnaire
Can this be implemented as new ApplicationWorkflow that can be triggered via any view actions.
@ellykits yep, and it will happen in ticket https://github.com/opensrp/fhircore/issues/3235
looks good!
Describe the feature request. Create a feature to process HTML to a PDF
Additional context
Acceptance criteria
Area path A list of ordered steps in the app on usage of the feature to support anyone testing it e.g. Code reviewer, QA e.g.
Implementation plan (For Engineers)