Tuesday, July 29, 2008

Better PDF to DOC Conversion with Solid PDF Tools using Wildcards

The C# project that we wrote about last week is very informative, but it isn't perfect.

One commonly used feature in command line applications are wildcards. For example, one might want to use the command below to convert all of the PDF files in the temp folder to DOC using Solid PDF Tools Scan to PDF:

TestApp.exe /i "c:\temp\*.pdf"
Supporting this requires a few changes in our application (a foreach loop among other changes):



This provides us with all the values we need to run through the script below:



We've made a few other improvements to the project as well (download here). After you build it with Visual Studio or Visual C# Express 2008 you can run the resulting TestApp.exe with -h as an argument to see all the new options.

If you need to change the sample script we recommend that you read our first post on scripting using Solid Document software and our scripting reference [pdf file].

Any thoughts or ideas? How do you use this in your work and how would you like to use it? Contact us with any or all of your feedback.

Wednesday, July 23, 2008

Command Line PDF to DOC Conversion Using Solid PDF Tools

Earlier we talked about using a C# class library to allow you to use the scripting functionality of Solid PDF Tools Scan to PDF from the command line:



We've written a C# project [zip file] using some of the above code that demonstrates this. The compiled program from this project allows you to convert a PDF file to DOC and provides a few additional options (whether to log, provide a verbose output, etc.). Running it from the command line with -h as an argument will display all of the options you can use with it.

If you're not using Visual Studio and wish to compile it yourself we'd recommend using Visual C# Express 2008.

If you need to change the sample script we recommend that you read our first post on scripting using Solid Document software to get a better idea of how to modify this to suite your needs. Our scripting reference [pdf file] is another great source for information on how to do this.

Have any thoughts that you'd like to share? Please contact us with your feedback.