How to convert html to pdf using C# tried to do but got error
-
Hi all, How to convert html to pdf? I am using Itextsharp.dll as my library, cause i found 2 other library but are under License so i cant use it i tried to follow the ExpertPDF method of geting the property but i just cant not get it to work private PdfDocument GetPDFConverter() { int pageWidth = 0; int pageHeight = 0; PdfDocument pdfConverter = new PdfDocument(pageWidth, pageHeight); <-- (The type 'iTextSharp.text.pdf.PdfDocument' has no constructors defined) pdfConverter.GetRight = false; <--error also return pdfConverter; } How can i do it? As i not sure how to read the data from the library Thank You
-
Hi all, How to convert html to pdf? I am using Itextsharp.dll as my library, cause i found 2 other library but are under License so i cant use it i tried to follow the ExpertPDF method of geting the property but i just cant not get it to work private PdfDocument GetPDFConverter() { int pageWidth = 0; int pageHeight = 0; PdfDocument pdfConverter = new PdfDocument(pageWidth, pageHeight); <-- (The type 'iTextSharp.text.pdf.PdfDocument' has no constructors defined) pdfConverter.GetRight = false; <--error also return pdfConverter; } How can i do it? As i not sure how to read the data from the library Thank You
-
Hi all, How to convert html to pdf? I am using Itextsharp.dll as my library, cause i found 2 other library but are under License so i cant use it i tried to follow the ExpertPDF method of geting the property but i just cant not get it to work private PdfDocument GetPDFConverter() { int pageWidth = 0; int pageHeight = 0; PdfDocument pdfConverter = new PdfDocument(pageWidth, pageHeight); <-- (The type 'iTextSharp.text.pdf.PdfDocument' has no constructors defined) pdfConverter.GetRight = false; <--error also return pdfConverter; } How can i do it? As i not sure how to read the data from the library Thank You