Hello,
I am getting an empty pdf when i use the convert method. Also the log file is not getting created. I am using the same code else where and it is working. And when i try to use the Prince standalone application with the htmlString the pdf is coming up fine. I am kind of lost here. Here is the code
Prince pdfConverter = new Prince(pdfConverterAppPath);
MemoryStream pdfOut = new MemoryStream();
pdfConverter.SetLog(@"pdf.log");
pdfConverter.SetHttpUser(System.Configuration.ConfigurationManager.AppSettings["programaticHTTPAuthenticationUsername"]);
pdfConverter.SetHttpPassword(System.Configuration.ConfigurationManager.AppSettings["programaticHTTPAuthenticationPassword"]);
pdfConverter.SetEmbedFonts(true);
pdfConverter.SetBaseURL(ConfigurationManager.AppSettings["princeBaseURLPath"]);
pdfConverter.Convert(htmlString, pdfOut);
I am getting an empty pdf when i use the convert method. Also the log file is not getting created. I am using the same code else where and it is working. And when i try to use the Prince standalone application with the htmlString the pdf is coming up fine. I am kind of lost here. Here is the code
Prince pdfConverter = new Prince(pdfConverterAppPath);
MemoryStream pdfOut = new MemoryStream();
pdfConverter.SetLog(@"pdf.log");
pdfConverter.SetHttpUser(System.Configuration.ConfigurationManager.AppSettings["programaticHTTPAuthenticationUsername"]);
pdfConverter.SetHttpPassword(System.Configuration.ConfigurationManager.AppSettings["programaticHTTPAuthenticationPassword"]);
pdfConverter.SetEmbedFonts(true);
pdfConverter.SetBaseURL(ConfigurationManager.AppSettings["princeBaseURLPath"]);
pdfConverter.Convert(htmlString, pdfOut);