RTF to PDF Hangs

RTF to PDF Hangs

Forum member · Aug 3, 2011
Hi, I'm new to Dynamic PDF and am having a problem converting RTF to PDF when running a c# conversion app my server. It just hangs on the Converter.35.Converter.Convert method. I'm passing in a byte array and file extension, and am supposed to get back the PDF byte array, but it just hangs. This works on my machine, which is running Office 2007. The server is Windows Server Datacenter 2003 running Office 2003. var inputBytes = File.ReadAllBytes(Path.GetTempPath() + "medico_" + _documentId + "_" + packageId + GetFileExt()); Logger.WriteLog(" Converting RTF to PDF", LogLevel.Debug); ByteData = pdfManager.ConvertToPdf(inputBytes, GetFileExt()); public byte[] ConvertToPdf(byte[] sourceData, string fileType) { byte[] convertedData = null; try { if (!fileType.StartsWith(".")) { fileType = "." + fileType; } ConversionOptions options = new ConversionOptions(ceTe.DynamicPDF.Conversion.PageSize.Letter, ceTe.DynamicPDF.Conversion.PageOrientation.Portrait, 0); convertedData = Converter.Convert(sourceData, fileType, options); } catch (Exception ex) { throw ex; } return convertedData; }

Re: RTF to PDF Hangs

Support · Aug 4, 2011
Hello, Please uninstall the current DynamicPDF Converter for .NET from your server. Make sure that you are clearing the jobs that are in the queue inside the printer spooler. We have separate links for downloading product MSI, one for x86 OS and other for x64 OS. Download the correct product MSI and install it on your server. Try running the sample examples downloaded with the product download. This should work for you. Link to download the DynamicPDF Converter for .NET product: http://www.DynamicPDF.com/Products/DynamicPDFConverterforNET/Download.csp . Thanks, ceTe Software Support Team.