Mercurial > hg > orthanc-book
diff Sphinx/source/users/advanced-rest.rst @ 907:7ccecfb76428
create pdf with python
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 09 Jan 2023 11:07:38 +0100 |
parents | 6057a8beee07 |
children | 6474e299918b |
line wrap: on
line diff
--- a/Sphinx/source/users/advanced-rest.rst Fri Jan 06 16:05:36 2023 +0100 +++ b/Sphinx/source/users/advanced-rest.rst Mon Jan 09 11:07:38 2023 +0100 @@ -279,6 +279,9 @@ # display the result Write-Host "The instance can be retrieved in PDF at http://localhost:8042$($reply.Path)/pdf" +And here's another sample `using python +<https://bitbucket.org/osimis/orthanc-setup-samples/src/master/python-samples/attach-pdf-to-study.py>`__. + Please note that the ``/tools/create-dicom`` API call will return the Orthanc instance ID of the newly created DICOM resource.