Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Convert html to pdf in vb.net

RameshQLRameshQL Posts: 3Member
HI I want vb.net code for convert html to pdf
if any one have tool for that .
Send plz with source code

Comments

  • dannyroughdannyrough Posts: 18Member
    I think [link=http://www.rasteredge.com/how-to/vb-net-imaging/pdf-converting/][color=Black]PDF conversion programmes[/color][/link] can enable to quickly convert files. i have use PDF converter which can original layouts hyperlinks, Images and tables retained in word ,text, image, Epub, html.but i forgot download the wedsite ,go to google. By the way , pay attention to your system platform, select the suitable one . I use a PDF converter driver found on the internet . Install it and it becomes a selectable converter option.Then you can convert PDFs to many forms in any program at all, including Adobe Acrobat . Just open a PDF, select convert, and choice a form you want, then you can do [link=http://www.rasteredge.com/how-to/vb-net-imaging/pdf-convert-html/][color=Black]pdf to html conversion[/color][/link] and vice versa,the task will be finished in several seconds. if you haven't found a good choice , you can have a try. best wishes.


  • arronleearronlee Posts: 43Member

    Yup indeed, I think converting HTML to PDF using some professional PDF converters will make the project much more convenient. Do you have any other good recommendations? Thanks in advance.

    Best regards,
    Arron

  • haves66haves66 EarthPosts: 1Member

    Using GemBox.Document, all you need is:

    DocumentModel.Load("Document.html").Save("Document.pdf")

    Very simple :)

  • AliceAlice AustraliaPosts: 3Member
    edited January 6

    try this free .NET library which I used in my project, by which you could do a lot of manipulations like create, read, edit, convert, add watermark etc. sample code as your reference:

    Sub Main()
    Dim thread As Thread = New Thread(AddressOf LoadHtml)
    thread.SetApartmentState(ApartmentState.STA)
    thread.Start()
    thread.Join()
    End Sub
    Private Sub LoadHtml()
    Dim path As String = "sample.pdf"
    Dim pdfDoc As PdfDocument = New PdfDocument()
    Dim url As String = "http://www.london2012.com/news/articles/paralympic-torch-relay-route-revealed-1258473.html"
    pdfDoc.LoadFromHTML(url, False, True, True)
    pdfDoc.SaveToFile(path, FileFormat.PDF)
    pdfDoc.Close()
    pdfDoc.Dispose()
    End Sub

Sign In or Register to comment.