![]() create the HTML to PDF converterHtmlToPdf htmlToPdfConverter = new HtmlToPdf() // set PDF page size and = GetSelectedPageSize() = GetSelectedPageOrientation() // set PDF page = new PdfMargins(0) // convert HTML to PDFbyte pdfBuffer = null if (radioButtonConvertUrl.Checked)", checkBoxOpenInline.Checked ? "inline" : "attachment", ())) // write the PDF buffer to HTTP (pdfBuffer) // call End() method of HTTP response to stop ASP.NET page () More Informationįor more HTML to PDF Conversion features see the Full Version of HiQPdf HTML to PDF Converter for. In this example you can see how to set simple parameters like the PDF page size, orientation and margins, convert the HTML code or URL to PDF and download the resulted PDF in a browser as attachment or inline. With just a few lines of code you can get richly formatted PDF document. ![]() The HTML page containing HTML5 code, CSS3, JavaScript or SVG. This sample shows how easy you can create the PDF documents from existing HTML pages or HTML strings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |