URL zu einem PDF Das Rendern einer Web-URL in ein PDF ist so einfach wie das Übergeben der URL an die fromUrl -Methode. Dadurch wird ein PDF-Objekt zurückgegeben, das exportiert oder weiter bearbeitet werden kann. Weitere Informationen zur Konvertierung von Webseiten in PDF mit IronPDF finden Sie im IronPDF HTML to PDF Conversion Guide . // Import necessary namespace using IronPdf; class Program { static void Main() { // Define the URL of the web page you want to convert to a PDF var url = "https://example.com"; // Create an instance of IronPdf.HtmlToPdf var renderer = new HtmlToPdf(); // Render the URL to a PDF document // The fromUrl method takes the web page URL and returns a PdfDocument object PdfDocument pdf = renderer.RenderUrlAsPdf(url); // Export the PDF document to a file // Specify the file path where the PDF will be saved pdf.SaveAs("WebPageToPdf.pdf"); // Output success message System.Console.WriteLine("Web page has been successfully converted to PDF."); } } // Import necessary namespace using IronPdf; class Program { static void Main() { // Define the URL of the web page you want to convert to a PDF var url = "https://example.com"; // Create an instance of IronPdf.HtmlToPdf var renderer = new HtmlToPdf(); // Render the URL to a PDF document // The fromUrl method takes the web page URL and returns a PdfDocument object PdfDocument pdf = renderer.RenderUrlAsPdf(url); // Export the PDF document to a file // Specify the file path where the PDF will be saved pdf.SaveAs("WebPageToPdf.pdf"); // Output success message System.Console.WriteLine("Web page has been successfully converted to PDF."); } } ' Import necessary namespace Imports IronPdf Friend Class Program Shared Sub Main() ' Define the URL of the web page you want to convert to a PDF Dim url = "https://example.com" ' Create an instance of IronPdf.HtmlToPdf Dim renderer = New HtmlToPdf() ' Render the URL to a PDF document ' The fromUrl method takes the web page URL and returns a PdfDocument object Dim pdf As PdfDocument = renderer.RenderUrlAsPdf(url) ' Export the PDF document to a file ' Specify the file path where the PDF will be saved pdf.SaveAs("WebPageToPdf.pdf") ' Output success message System.Console.WriteLine("Web page has been successfully converted to PDF.") End Sub End Class $vbLabelText $csharpLabel Weitere Informationen finden Sie in unserem Leitfaden zur Konvertierung von HTML in PDF. Verwandte Doku-Links Auf Github ansehen Verwandtes Tutorial Verwandte Anleitung Klassendokumentation Sprachpakete herunterladen IronPDF DLL herunterladen Ein Problem auf dieser Seite melden Bereit anzufangen? Version: 2025.12 gerade veröffentlicht Kostenlose npm-Installation Lizenzen anzeigen
In einer Live-Umgebung testen Testen Sie ohne Wasserzeichen in der Produktion.Funktioniert dort, wo Sie es brauchen.
Voll funktionsfähiges Produkt Erhalten Sie 30 Tage voll funktionsfähiges Produkt.In wenigen Minuten einsatzbereit.
24/5 technischer Support Voller Zugriff auf unser Support-Engineering-Team während Ihrer Produktprobe
Alle Ihre Fragen werden beantwortet, um sicherzustellen, dass Sie alle Informationen erhalten, die Sie benötigen. (Völlig unverbindlich.)