Been awhile since I used the converter on my development VM, but something must have changed that I can't figure out. Exact same code is working on our server.
Getting this error:
Unhandled Exception: System.IO.FileNotFoundException: Could not find file 'C:\WINDOWS\TEMP\9d037167-b143-417e-83c2-170adfd54fa3.pdf'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
at ceTe.DynamicPDF.Conversion.Converter.a(String A_0, Boolean A_1)
at ceTe.DynamicPDF.Conversion.Converter.Convert(String inputFilePath, String outputFilePath, ConversionOptions conversionOptions)
at ceTe.DynamicPDF.Conversion.Converter.Convert(Byte[] inputData, String inputFileName, String outputFilePath, ConversionOptions options)
Code:
private void ConvertRtfToBytes(string rtfString, string outputPath)
{
byte[] rtfBytes = Encoding.ASCII.GetBytes(rtfString);
Converter.Convert(rtfBytes, ".rtf", outputPath);
}
I do see it is creating a folder under C:\Windows\Temp and there is an rtf in the folder, so it seems to be prepping the rtf.