Header with language selection

Header oben (Banner/Logo/Javascript)

visit the seven49.net website

Is it possible to save the generated pdf file locally?

Yes. Just render the file to PDF and it will be shown in Acrobat Reader if installed. There you will find the save button in the Acrobat Tools list on the left side. If Acrobat Reader is not installed the Browser asks you if you want to download the file for later use.
You can also save the response as file from a script/application.

Example in VB.NET

Imports System.IO

Partial Class Test
Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim url As String = "http://html2pdf.seven49.net/html2pdf/?UrlToRender=http://www.yahoo.com"
Dim webclient As New System.Net.WebClient()
webclient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2;)")
Dim stream As Stream = webclient.OpenRead(url)
Dim reader As New StreamReader(stream, System.Text.Encoding.Default)
Dim streamWriter As New StreamWriter(Server.MapPath("Test.pdf"), _
False, System.Text.Encoding.Default)
streamWriter.Write(reader.ReadToEnd())
streamWriter.Close()
stream.Close()
reader.Close()

End Sub

End Class
Important: You have to use Default (ANSI) encoding. Otherwise the PDF file will be corrupt.

Login Status

You are not logged in.

Quick Demo

... or enter an URL of your choice

Recommendations

Validates your entire website
monitor your websites uptime

Footer unten

Copyright © 2006 seven49.net
Source: http://html2pdf.seven49.net/Web/en/Frequently_Asked_Questions/Frequently_Asked_Questions/Is_it_possible_to_save_the_generated_pdf_file_lo.htm