Powershell Script for calling command line converters
As an alternative to using VB.NET or C# to call command line tools, like image converters, you can use PowerShell as a controller.
Open PowerShell and type "ISE" to start the scripting tool. Save the file and Run from the toolbar.
sample script calling GhostScript to convert PDFs into multiple, single-page tiff's:
This particular script will check for all pdf files in the path provided (and all subfolders as well with -recurse flag). The number of PDF's found will be output prior to the loop. For each PDF file to be processed there will be a corresponding set of tiff files created. The addition of '%003d' in the OutputFile will add the page number at the end of each tiff file, zero padded up to 3 total characters.
Here is a good series of videos about tool building with Powershell scripts:
Don Jones Toolmaking pt1 (86 mins)
Don Jones Toolmaking pt2 (68 mins)
https://www.youtube.com/watch?v=U849a17G7Ro
Don Jones Toolmaking pt3 (104 mins)
https://www.youtube.com/watch?v=GXdmjCPYYNM
Related Articles
Report Designer Rule Functions - Date/Time and Other String Conversion Functions
When building Report Designer rules there a re a bunch of date/time functions (and others) available in the string conversion functions. Here are some MEDITECH articles that are a great reference when using these functions. I have also included the ...
List of MEDITECH Reports that we have Archived for Customers
This is a list of some of the more popular reports that we have run out of MEDITECH and archived to PaperStore or another archive solution, like MEDITECH Scanning and Archiving. Whenever we start working on MEDITECH archiving projects, customers ...
Adobe Acrobat Pro DC User Guide and User Tutorials
Adobe Acrobat Pro DC is outstanding software that enables a user to create, print and edit documents from different formats into one or many PDF files. Listed below are links to the Acrobat Pro DC USER GUIDE and Acrobat Pro DC TUTORIALS under Learn ...
Extract and Convert Base64 Data from MEDITECH Outbox Message
This is a C/S NPR utility. Run this program from the front end: ; ; Arguments: ; A = MIS.XO.MSG.urn ; ; This code will retrieve an outbox message, save it locally, ; then extract the base64 content out of the message and save it to a ; binary ...
Using Sentry Alerts In Your C/S NPR Code
This document may be outdated. It was moved to the HCI Wiki: https://wiki.thehcisolution.com/w/index.php?title=Adding_Sentry_Alerts_to_your_CS_NPR_Code Anytime we setup an HCI Universe on-site, we setup our Sentry application. There should be a ...