Sorry about that. It took me about that long to write the e-mail, and much longer trying various things to compile. Must be something with my UBUNTU setup, although got OS X to work finally. I'll follow up with the fix on my UBUNTU install if I can figure that out.
I am attaching a python script file containing a number of scripts that I've developed, including the one using pdfkit. You have to use PIP to install the pdfkit module, and then also compile the Python Plug-in again to use that, but it does work now. Same applies for pydicom Here is a description of the scripts, the source is attached.
# 1. curl
http://localhost:8042/pydicom/af1c0b10-c44ac936-74aa66e8-0c4463e0-2e98c65e (uuid for instance)
# Demo for using Pydicom, can be extended. Bascially returns a dump2dcm.
# 2. curl
http://localhost:8042/get-configs/ALL# Gets Orthanc config file params, all or by a particular group;
# 3. curl
http://localhost:8042/sendemail -d '{"subject":"This is a test","body":"string"}'
# Sends an email. Could be extended for HTML mails and other features, also callable from with the script.
# 4. curl
http://localhost:8042/studies/page -d '{"Query":{"PatientName":"**","PatientBirthDate":"","PatientSex":"","PatientID":"","AccessionNumber":"","StudyDescription":"**","ReferringPhysicianName":"**","StudyDate":""},"Level":"Study","Expand":true,"MetaData":{},"pagenumber":1,"itemsperpage":5,"sortparam":"StudyDate","reverse":1,"widget":1}'
# PAGINATION SCRIPT, SEE BELOW FOR DETAILS
# 5. curl -k -X POST -d '["AccessionNumber"]'
http://localhost:8042/mwl/file/delete# Deletes .wl file in the Worklists Folder, could be extended to delete multiple from array of values, the passed in param is the filename prefix
# 6. curl --request POST --url
http://localhost:8042/mwl/file/make --data '{"MediaStorageSOPClassUID":"MediaStorageSOPClassUID","CharSet":"CharSet","AccessionNumber":"AccessionNumber","Modality":"Modality","RequestingPhysician":"RequestingPhysician","PatientName":"PatientName","PatientID":"PatientID","PatientBirthDate":"PatientBirthDate","PatientSex":"PatientSex","MedicalAlerts":"MedicalAlerts","Allergies":"Allergies","AdditionalPatientHistory":"AdditionalPatientHistory","StudyInstanceUID":"StudyInstanceUID","RequestingPhysician":"RequestingPhysician","RequestedProcedureDescription":"RequestedProcedureDescription","ScheduleStationAETitle":"ScheduleStationAETitle","ScheduledProcedureStepStartDate":"ScheduledProcedureStepStartDate","ScheduledProcedureStepStartTime":"ScheduledProcedureStepStartTime","RequestedProcedureID":"RequestedProcedureID","RequestedProcedurePriority":"RequestedProcedurePriority"}'
# Creates a MWL .wl files and a .txt file in the Worlists Folder with a name equal to the Accession Number. Can be
# customized to meet needs
# 7. curl -k
http://localhost:8042/pdfkit/htmltopdf -d '{"html":"This is a test","method":"string"}'
# Creates a PDF file from raw HTML string using wkhtmltopdf pdfkit wrapper. Requires the pip module and wkhtmltopdf installed on the system. The Python Plugin has to be compiled with that PIP module also.
# 8. curl -k
http://localhost:8042/studies/arrayIDs -d '["6efb3ff2-4cd16ca1-35cdb247-2d1c5f78-d6ba584e","79de0218-30258875-1adaa569-f71944db-a88eef7c"]'
# Gets Array of Expanded study data for an array of uuid's, including the instance count and modalities
# 9. curl -k
http://localhost:8042/patient/studycounts -d '["DEV0000001","DEV0000002"]'
# Gets study counts for a patient ID, or array of ID's