Pauthor is a tool for creating Pivot (http://getpivot.com) collections. It contains a command-line application to convert collections between a variety of formats, a C# library you can use in your application, and documentation describing the entire system.