Var htmlPipeline = new HtmlPipeline(context, new PdfWriterPipeline(pdfDoc, writer)) Var context = new HtmlPipelineContext( new CssAppliersImpl( new XMLWorkerFontProvider())) Ĭontext.SetAcceptUnknown( true).AutoBookmark( true).SetTagFactory(tagProcessors) Var cssResolver = new StyleAttrCSSResolver(cssFiles) tagProcessors.RemoveProcessor() // tagProcessors.AddProcessor(, new CustomImageTagProcessor()) var cssFiles = new CssFilesImpl() ĬssFiles.Add(XMLWorkerHelper.GetInstance().GetDefaultCSS()) Var tagProcessors = (DefaultTagProcessorFactory)Tags.GetHtmlTagProcessorFactory() PdfDoc.AddTitle( " Complaint Intake Form") Writer.ViewerPreferences = PdfWriter.DisplayDocTitle Writer.SetPdfVersion(PdfWriter.PDF_VERSION_1_7) writer.CompressionLevel = PdfStream.NO_COMPRESSION // Make document tagged PDFVERSION_1_7 PdfWriter writer = PdfWriter.GetInstance(pdfDoc, memStream) Using (MemoryStream memStream = new MemoryStream()) String fileName = " ComplaintIntakeFile_" cd.ComplaintGuid.ToString() ". HtmlContent = htmlContent.Replace( " ", formHtml) Load HTML template for letter and replace template fields with provider data string htmlContent = File.ReadAllText(Server.MapPath( " ~/ComplaintIntakeForm.html")) String detailsHtml = PCSUtilities.GetComplaintDetailsHTML(cd) įormHtml = formHtml complaintTypeHtml providerHtml facilityHtml anonymousHtml contactHtml patientHtml detailsHtml " " įormHtml = formHtml.Replace( " ''", " \"") String patientHtml = PCSUtilities.GetPatientHTML(cd) ![]() ![]() String contactHtml = PCSUtilities.GetContactHTML(cd) String anonymousHtml = PCSUtilities.GetAnonymousHTML(cd) String facilityHtml = PCSUtilities.GetFacilityHTML(cd) ProviderHtml = PCSUtilities.GetProviderHTML(cd) If (cd.Providers != null
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |