hi Developers,
i want to convert .Aspx page(html code) to Pdf.
am google it and use some queries usin iTextsharp. i got answer but it does not exact.
because there is misses Align,Border,Colour,top , bottom, size and etc.
so i can't able to get exact one.
i just want to Convert a single html page to pdf with my included and alignment design.
in my case i am not using gridview. just using tables,textboxes and labels.
so anyone of you know please suggest me how do i do this with Design,Alignment,Border of the page.
thanking you
Paul.S
Loading

Hussam BarouqaPosted Mar 9, 2017, 12:35 PM
codecs.convert("input.html", "output.pdf", RasterImageFormat.RasPdfJpeg411, 0, 0, 0, null);
var url = "link to html file";
lt.Documents.DocumentFactory.loadFromUri(url, null)
.done(function (document) {
var jobData = new lt.Documents.DocumentConverterJobData();
jobData.documentFormat = lt.Documents.Writers.DocumentFormat.user;
jobData.rasterImageFormat = lt.Documents.RasterImageFormat.rasPdfJpeg;
document.convert(jobData)
.done(function (result) {
var resultDocument = result.document != null ? result.document.url : result.archive.url;
window.open(resultDocument);
})
.fail(function (jqXHR, statusText, errorThrown) {
alert("Error converting document " + errorThrown);
});
})
.fail(function (jqXHR, statusText, errorThrown) {
alert("Error loading document " + errorThrown);
});
Uehara AyakaPosted Oct 8, 2016, 3:23 AM
Midhun TpPosted Oct 4, 2016, 10:23 AM
Please have a look at below links-
http://www.codeproject.com/Articles/884204/HTML-to-PDF-in-ASP-NET
https://code.msdn.microsoft.com/Convert-from-HTML-to-PDF-09ce2a1d
https://hiqpdf.codeplex.com
Delpin Susai RajPosted Oct 4, 2016, 9:17 AM
Delpin Susai RajPosted Oct 4, 2016, 9:17 AM
Delpin Susai RajPosted Oct 4, 2016, 9:16 AM