How to create a DICOM file containing a PDF

How can I generate a DICOM file containing a PDF and then send to Orthanc to be attached to a pacient?

Thanks for your help.

Hello, check out our integration test “test_create_pdf()”:
https://bitbucket.org/sjodogne/orthanc-tests/src/c92e7191c912352d703c54e7f22c6a1918fe1be1/Tests/Tests.py#lines-2443