VB.NET PDF Creator (代码示例教程)

This article was translated from English: Does it need improvement?
Translated
View the article in English

本教程将逐步指导您如何在 VB.NET 中创建和编辑 PDF 文件。这项技术同样适用于ASP.NET Web 应用程序以及控制台应用程序Windows 服务桌面程序。我们将使用 VB.NET 创建以 .NET Framework 4.6.2 或 .NET Core 2 为目标的 PDF 项目。您只需要一个 Visual Basic .NET 开发环境,如 Microsoft Visual Studio Community。

要了解如何将 IronPDF 与 C# 结合使用,请参阅 本指南.

要了解如何将 IronPDF 与 F# 结合使用,请参阅 本指南.


概述

使用 IronPDF 创建和编辑 PDF 的 VB .NET 代码

使用 VB.NET 将 HTML 渲染成 PDF、应用样式、使用动态内容并轻松编辑文件。创建 PDF 简便易行,与 .NET Framework 4.6.2、.NET Core 3.1、.NET 8、7、6 和 5 兼容。无需使用专有文件格式或不同的 API。

本教程提供的文档将一步步指导你完成每项任务,所有任务都使用免费的开发工具 受到开发人员青睐的 IronPDF 软件.VB.NET 代码示例针对您的使用案例,因此您可以在熟悉的环境中轻松查看步骤。无论是在 ASP.NET 应用程序、控制台还是桌面中,该 VB .NET PDF 库都能为每个项目提供全面的创建和设置功能。

包括在 IronPDF 中:

  • 由我们的 .NET PDF 库开发团队直接提供票务支持 (真实的人类!)
  • 可处理 HTML、ASPX 表单、MVC 视图、图像以及您已经使用的所有文档格式
  • 安装 Microsoft Visual Studio 后即可快速运行
  • 无限制的免费开发,以及从"$liteLicense "开始的上线许可证

步骤 1

1. 从IronPDF免费下载VB .NET PDF库

适用于PDF的C# NuGet库

安装使用 NuGet

Install-Package IronPdf
Java PDF JAR

下载 DLL

下载DLL

手动安装到你的项目中

适用于PDF的C# NuGet库

安装使用 NuGet

Install-Package IronPdf
Java PDF JAR

下载 DLL

下载DLL

手动安装到你的项目中

开始在您的项目中使用IronPDF,并立即获取免费试用。

第一步:
green arrow pointer

查看 IronPDFNuget 用于快速安装和部署。它有超过800万次下载,正在使用C#改变PDF。

适用于PDF的C# NuGet库 nuget.org/packages/IronPdf/
Install-Package IronPdf

考虑安装 IronPDF DLL 直接。下载并手动安装到您的项目或GAC表单中: IronPdf.zip

手动安装到你的项目中

下载DLL

通过 NuGet 安装

在 Visual Studio 中,右键单击项目解决方案资源管理器,选择 "管理 NuGet 包..."。然后搜索 IronPDF 并安装最新版本......在出现的对话框中点击确定。

这将适用于 Framework 4.6.2 及以上版本或 .NET Core 2 及以上版本的任何 C# .NET Framework 项目。在 VB.NET 项目中也同样有效。

Install-Package IronPdf

https://www.nuget.org/packages/IronPdf

通过 DLL 安装

另外,也可以从以下地址下载 IronPDF DLL 并手动安装到项目或 GAC 中 https://ironpdf.com/packages/IronPdf.zip

切记在任何使用 IronPDF 的 vb 类文件顶部添加此语句:


导入 IronPdf;

教程

2.用 VB.NET 创建 PDF

iTextSharp等具有专有设计 API 的库相比,使用 IronPDF 首次使用*Visual Basic ASP.NET 创建 PDF 文件是出乎意料的简单。

我们可以使用 HTML (采用基于谷歌 Chromium 的完美像素渲染引擎) 来定义 PDF 的内容,并将其直接渲染到文件中。

以下是在 VB.NET 中创建 PDF 的最简单代码:

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-1.cs
Module Module1
    Sub Main()
        Dim renderer = New ChromePdfRenderer()
        Dim document = renderer.RenderHtmlAsPdf("<h1> My First PDF in VB.NET</h1>")
        document.SaveAs("MyFirst.pdf")
    End Sub
End Module
VB.NET

这将生成一个 .NET 生成的 PDF 文件,其中包含您的准确文本,尽管目前还缺乏一些设计。

我们可以通过添加标题行 Imports IronPdf 来改进这段代码。

通过添加最后一行代码System.Diagnostics.Process.Start,我们可以在操作系统的默认 PDF 查看器中打开 PDF,使项目更有意义。

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-2.cs
Imports IronPdf

Module Module1
    Sub Main()
        Dim renderer = New ChromePdfRenderer()
        Dim document = renderer.RenderHtmlAsPdf("<h1> My First PDF in VB.NET</h1>")
        document.SaveAs("MyFirst.pdf")
        System.Diagnostics.Process.Start("MyFirst.pdf")
    End Sub
End Module
VB.NET

另一种方法是使用 IronPDF 中优雅的 "RenderUrlAsPdf "方法,将 URL 中的任何现有网页渲染为 PDF。

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-3.cs
Imports IronPdf

Module Module1
    Sub Main()
        Dim renderer = New ChromePdfRenderer()
        Dim document = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf/")
        document.SaveAs("UrlToPdf.pdf")
        System.Diagnostics.Process.Start("UrlToPdf.pdf")
    End Sub
End Module
VB.NET

3.为 VB.NET PDF 创建样式

要在 VB.NET 中为PDF内容设计样式,我们可以充分利用 CSS、JavaScript 和图像。 我们可以链接到本地资产,甚至链接到远程或基于 CDN 的资产(如 Google 字体)。 我们甚至可以使用 DataURIs 可将图像和资产以字符串形式嵌入 HTML 中.

对于高级设计,我们可以采用两阶段流程:

1.首先,我们要完美地开发和设计 HTML。这项工作可能需要内部设计人员分工协作。

2.使用 VB.NET 和我们的 PDF 库将文件渲染为 PDF 格式

将 HTML 文件渲染为 PDF 的 VB.NET 代码:

该方法可将 HTML 文件渲染为 PDF 文件 (*文件://协议****).

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-4.cs
Imports IronPdf

Module Module1
    Sub Main()
        Dim renderer = New ChromePdfRenderer()
        renderer.RenderingOptions.CssMediaType = Rendering.PdfCssMediaType.Print
        renderer.RenderingOptions.PrintHtmlBackgrounds = False
        renderer.RenderingOptions.PaperOrientation = Rendering.PdfPaperOrientation.Landscape
        renderer.RenderingOptions.WaitFor.RenderDelay(150)
        Dim document = renderer.RenderHtmlFileAsPdf("C:\Users\jacob\Dropbox\Visual Studio\Tutorials\VB.Net.Pdf.Tutorial\VB.Net.Pdf.Tutorial\slideshow\index.html")
        document.SaveAs("Html5.pdf")
        System.Diagnostics.Process.Start("Html5.pdf")
    End Sub
End Module
VB.NET

我们还可以通过添加项目相对文件路径来缩短 URL,例如

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-5.cs
Dim document = renderer.RenderHtmlFileAsPdf("..\..\slideshow\index.html")
VB.NET

你可以看到,ChromePdfRenderer 渲染器有一个 RenderingOptions 属性,我们可以在本例中使用该属性:

  • 将 CSS 媒体类型设置为 "打印",这样我们就看不到纯屏幕 CSS3 样式了
  • 忽略 HTML 背景
  • 将 PDF 的虚拟纸张方向设置为横向
  • 在渲染过程中稍作延迟,以便 JavaScript 完成处理

我们的示例 HTML 文件使用了 JavaScript、CSS3 和图像。该 HTML 创建了一个动态的移动感知幻灯片,可在 https://leemark.github.io/better-simple-slideshow/ 上找到。

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-6.cs
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>A simple DIY responsive slideshow made with HTML5, CSS3, and JavaScript</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link href='http://fonts.googleapis.com/css?family=Open+Sans|Open+Sans+Condensed:700' rel='stylesheet' type='text/css'>
        <link rel="stylesheet" href="demo/css/demostyles.css">
        <link rel="stylesheet" href="css/simple-slideshow-styles.css">
    </head>
    <body>
        <!--[if lt IE 8]>
            <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
        <![endif]-->
        <header>
            <h1>A Better Simple Slideshow</h1>
            <p><span class="desc">A simple DIY responsive JavaScript slideshow.</span> [<a href="https://github.com/leemark/better-simple-slideshow">GitHub<span> repo</span></a>]</p>
        </header>
        <div class="bss-slides num1" tabindex="1" autofocus="autofocus">
            <figure>
              <img src="demo/img/medium.jpg" width="100%" /><figcaption>"Medium" by <a href="https://www.flickr.com/photos/thomashawk/14586158819/">Thomas Hawk</a>.</figcaption>
            </figure>
            <figure>
              <img src="demo/img/colorado.jpg" width="100%" /><figcaption>"Colorado" by <a href="https://www.flickr.com/photos/stuckincustoms/88370744">Trey Ratcliff</a>.</figcaption>
            </figure>
            <figure>
              <img src="demo/img/monte-vista.jpg" width="100%" /><figcaption>"Early Morning at the Monte Vista Wildlife Refuge, Colorado" by <a href="https://www.flickr.com/photos/davesoldano/8572429635">Dave Soldano</a>.</figcaption>
            </figure>
            <figure>
              <img src="demo/img/sunrise.jpg" width="100%" /><figcaption>"Sunrise in Eastern Colorado" by <a href="https://www.flickr.com/photos/35528040@N04/6673031153">Pam Morris</a>.</figcaption>
            </figure>
            <figure>
              <img src="demo/img/colorado-colors.jpg" width="100%" /><figcaption>"colorado colors" by <a href="https://www.flickr.com/photos/cptspock/2857543585">Jasen Miller</a>.</figcaption>
            </figure>
        </div> <!-- // bss-slides -->
<div class="content">
<h2>What is it?</h2>
<p>It's a fairly basic slideshow, written in javascript. This is a dual-purpose project, it's meant to be something you can drop right into your page and use if you so choose, but it's also meant as an example/tutorial script showing how to build a simple DIY slideshow from scratch on your own. <a href="http://themarklee.com/2014/10/05/better-simple-slideshow/">Here is a tutorial/walkthrough</a>.</p>
<h2>Features</h2>
<ul>
    <li>fully responsive</li>
    <li>option for auto-advancing slides, or manually advancing by user</li>
    <li>multiple slideshows per-page</li>
    <li>supports arrow-key navigation</li>
    <li>full-screen toggle using HTML5 fullscreen api</li>
    <li>swipe events supported on touch devices (requires <a href="https://github.com/hammerjs/hammer.js">hammer.js</a>)</li>
    <li>written in vanilla JS--this means no jQuery dependency (much &hearts; for <a href="https://github.com/jquery/jquery">jQuery</a> though!)</li>
</ul>
<h2>Getting Started</h2>
<ol>
<li><p>HTML markup for the slideshow should look basically like this, with a container element wrapping the whole thing (doesn't have to be a <span class="code">&lt;div&gt;</span>) and each slide is a <span class="code">&lt;figure&gt;</span>.</p>
<script src="https://gist.github.com/leemark/83571d9f8f0e3ad853a8.js"></script> </li>
<li>Include the script: <span class="code">js/better-simple-slideshow.min.js</span> or <span class="code">js/better-simple-slideshow.js</span></li>
<li>Include the stylesheet <span class="code">css/simple-slideshow-styles.css</span></li>
<li>Initialize the slideshow:
<script src="https://gist.github.com/leemark/479d4ecc4df38fba500c.js"></script>
</li>
</ol>
<h2>Options</h2>
To customize functionality, create an options object, then pass it into <span class="code">makeBSS()</span> as the second argument, as seen below:
<script src="https://gist.github.com/leemark/c6e0f5c47acb7bf9be16.js"></script>
<h2>Demo/Examples</h2>
    <h3>Example #1 (slideshow at top of this page)</h3>
    <p>HTML markup:</p>
    <script src="https://gist.github.com/leemark/19bafdb1abf8f6b4e147.js"></script>
    <p>JavaScript code:</p>
    <script src="https://gist.github.com/leemark/a09d2726b5bfc92ea68c.js"></script>
    <h3>Example #2 (below)</h3>
        <div class="bss-slides num2" tabindex="2">
           <figure>
              <img src="http://themarklee.com/wp-content/uploads/2013/12/snowying.jpg" width="100%" /><figcaption>"Snowying" by <a href="http://www.flickr.com/photos/fiddleoak/8511209344/">fiddleoak</a>.</figcaption>
           </figure>
            <figure>
                <img src="http://themarklee.com/wp-content/uploads/2013/12/starlight.jpg" width="100%" /><figcaption>"Starlight" by <a href="http://www.flickr.com/photos/chaoticmind75/10738494123/in/set-72157626146319517">ChaoticMind75</a>.</figcaption>
           </figure>
           <figure>
              <img src="http://themarklee.com/wp-content/uploads/2013/12/snowstorm.jpg" width="100%" /><figcaption>"Snowstorm" by <a href="http://www.flickr.com/photos/tylerbeaulawrence/8539457508/">Beaulawrence</a>.</figcaption>
           </figure>
            <figure>
              <img src="http://themarklee.com/wp-content/uploads/2013/12/misty-winter-afternoon.jpg" width="100%" /><figcaption>"Misty winter afternoon" by <a href="http://www.flickr.com/photos/22746515@N02/5277611659/">Bert Kaufmann</a>.</figcaption>
           </figure>
            <figure>
              <img src="http://themarklee.com/wp-content/uploads/2013/12/good-morning.jpg" width="100%" /><figcaption>"Good Morning!" by <a href="http://www.flickr.com/photos/frank_wuestefeld/4306107546/">Frank Wuestefeld</a>.</figcaption>
           </figure>
        </div> <!-- // bss-slides -->
<p>HTML markup:</p>
<script src="https://gist.github.com/leemark/de90c78cb73673650a5a.js"></script>
<p>JavaScript code:</p>
<script src="https://gist.github.com/leemark/046103061c89cdf07e4a.js"></script>
</div> <!-- // content -->
<footer>Example photos are property of their respective owners, all code is <a href="https://github.com/leemark/better-simple-slideshow/blob/gh-pages/LICENSE">freely licensed for your use</a>. <br>Made especially for you by <a href="http://themarklee.com">Mark Lee</a> aka <a href="http://twitter.com/@therealmarklee">@therealmarklee</a> <br><span>&#9774; + &hearts;</span></footer>
<script src="demo/js/hammer.min.js"></script><!-- for swipe support on touch interfaces -->
<script src="js/better-simple-slideshow.min.js"></script>
<script>
var opts = {
    auto : {
        speed : 3500,
        pauseOnHover : true
    },
    fullScreen : false,
    swipe : true
};
makeBSS('.num1', opts);
var opts2 = {
    auto : false,
    fullScreen : true,
    swipe : true
};
makeBSS('.num2', opts2);
</script>
</body>
</html>
HTML

如您所见,本示例使用了 HTML 网页的全部 "厨房水槽 "功能。 IronPDF 内部使用谷歌的 Chromium HTML 引擎和 v8 javascript 引擎进行渲染。 您无需在系统中安装这两个引擎,在使用 IronPDF 时,整个软件包会自动添加到您的项目中。

3.1.添加页眉和页脚

既然我们已经有了漂亮的 PDF 渲染效果,现在我们可能希望添加吸引人的页眉和页脚。

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-7.cs
Imports IronPdf
Imports IronSoftware.Drawing

Module Module1
    Sub Main()
        Dim renderer = New ChromePdfRenderer()
        renderer.RenderingOptions.CssMediaType = Rendering.PdfCssMediaType.Print
        renderer.RenderingOptions.PrintHtmlBackgrounds = False
        renderer.RenderingOptions.PaperOrientation = Rendering.PdfPaperOrientation.Landscape
        renderer.RenderingOptions.WaitFor.RenderDelay(150)
        renderer.RenderingOptions.TextHeader.CenterText = "VB.NET PDF Slideshow"
        renderer.RenderingOptions.TextHeader.DrawDividerLine = True
        renderer.RenderingOptions.TextHeader.FontSize = "13"
        renderer.RenderingOptions.TextFooter.RightText = "page {page} of {total-pages}"
        renderer.RenderingOptions.TextFooter.Font = FontTypes.Arial
        renderer.RenderingOptions.TextFooter.FontSize = "9"
        Dim document = renderer.RenderHtmlFileAsPdf("..\..\slideshow\index.html")
        document.SaveAs("Html5WithHeader.pdf")
        System.Diagnostics.Process.Start("Html5WithHeader.pdf")
    End Sub
End Module
VB.NET

如图所示,支持逻辑页眉和页脚。您还可以添加基于 HTML 的页眉和页脚,具体请参阅 在线查阅 VB.NET PDF 开发人员 API 参考资料.

您可以下载并探索 该 "VB.NET HTML to PDF "项目的源代码 作为 VB.NET Visual Studio 项目。


4.创建包含动态内容的 PDF:2 种方法

一直以来,PDF "模板化 "对于软件工程师来说都是一项艰巨的任务。将内容印制到 PDF 模板中很少奏效。这是因为每个案例或报告都包含不同类型和长度的内容。幸运的是,HTML 特别擅长处理动态数据。

为此,我们有两种方法:

1.使用 .NET 对 HTML 进行字符串模板化,然后转换为 PDF

2.将内容渲染为 ASP.NET 网页,然后将网页渲染为 PDF

4.1.方法 1 - ASP.NET - 使用 VB.NET Web 窗体将 ASPX 转换为 PDF

幸运的是,这种解决方案简单得令人吃惊。任何类型的 .NET Web 表单 (包括剃须刀) 在 VB.NET 代码后面的 Page_Load 子程序中使用此 VB.NET 代码可将 PDF 文档渲染为 PDF 文档。

PDF 文档可以设置为在浏览器中显示,或作为文件下载。

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-8.cs
Imports IronPdf

Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
    Dim PdfOptions = New IronPdf.ChromePdfRenderOptions()
    IronPdf.AspxToPdf.RenderThisPageAsPDF(AspxToPdf.FileBehavior.Attachment, "MyPdf.pdf", PdfOptions)
End Sub
VB.NET

4.2.方法 2 - 使用字符串模板将 HTML 转换为 PDF

要创建包含特定实例数据的动态 PDF 文档,我们只需创建一个 HTML 字符串来匹配我们希望以 PDF 格式呈现的数据。

这可能是 VB.NET 中 HTML-to-PDF 解决方案的最大优势--通过 "即时 "创建 HTML,轻松直观地创建动态 PDF 文档和报告。

最简单的方法是 VB.NET 中的 String.Format 方法

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-9.cs
Imports IronPdf

Module Module1
    Sub Main()
        Dim renderer = New ChromePdfRenderer()
        Dim Html = "Hello {0}"
        String.Format(Html, "World")
        Dim document = renderer.RenderHtmlAsPdf(Html)
        document.SaveAs("HtmlTemplate.pdf")
        System.Diagnostics.Process.Start("HtmlTemplate.pdf")
    End Sub
End Module
VB.NET

随着 PDF 越来越复杂,字符串也会越来越复杂。我们可以考虑使用字符串生成器,甚至模板框架,如 HandleBars.Net 或 Razor

https://github.com/rexm/Handlebars.Net


5.用 VB.NET 编辑 PDF 文件

IronPDF for VB.NET还允许对PDF文档进行编辑、加密、加水印,甚至将其还原成纯文本:

5.1.用 VB 将多个 PDF 文件合并为一个文档

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-10.cs
Dim pdfs = New List(Of PdfDocument)
pdfs.Add(PdfDocument.FromFile("A.pdf"))
pdfs.Add(PdfDocument.FromFile("B.pdf"))
pdfs.Add(PdfDocument.FromFile("C.pdf"))
Dim mergedPdf As PdfDocument = PdfDocument.Merge(pdfs)
mergedPdf.SaveAs("merged.pdf")
mergedPdf.Dispose()
For Each pdf As PdfDocument In pdfs
    pdf.Dispose()
Next
VB.NET

5.2.为 PDF 添加封面页

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-11.cs
pdf.PrependPdf(renderer.RenderHtmlAsPdf("<h1>Cover Page</h1><hr>"))
VB.NET

5.3.从 PDF 中删除最后一页

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-12.cs
pdf.RemovePage((pdf.PageCount - 1))
VB.NET

5.4.使用 128 位加密技术为 PDF 加密

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-13.cs
// Save with a strong encryption password.
pdf.Password = "my.secure.password";
pdf.SaveAs("secured.pdf")
VB.NET

5.5.用 VB 在页面上添加 HTML 内容

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-14.cs
Imports IronPdf
Imports IronPdf.Editing

Module Module1
    Sub Main()
        Dim renderer = New ChromePdfRenderer
        Dim pdf = renderer.RenderUrlAsPdf("https://www.nuget.org/packages/IronPdf")
        Dim stamp = New HtmlStamper()
        stamp.Html = "<h2>Completed</h2>"
        stamp.Opacity = 50
        stamp.Rotation = -45
        stamp.VerticalAlignment = VerticalAlignment.Top
        stamp.VerticalOffset = New Length(10)
        pdf.ApplyStamp(stamp)
        pdf.SaveAs("C:\Path\To\Stamped.pdf")
    End Sub
End Module
VB.NET

5.6.使用 HTML 为 PDF 添加分页符

最简单的方法是使用 HTML 和 CSS

:path=/static-assets/pdf/content-code-examples/how-to/vb-net-pdf-15.cs
<div style='page-break-after: always;'>&nbsp;</div>
HTML

6.更多 .NET PDF 教程

您可能还对以下内容感兴趣


结论

在本教程中,我们发现了使用 VB.NET 作为编程语言实现 VB.NET 转 PDF 效果的 6 种方法。

  • HTML 字符串转 PDF
  • 在 VB.NET 中使用 HTML 字符串定义 PDF 内容
  • 将现有 URL 渲染为 PDF 文件
  • 从 HTML 文件生成 PDF
  • 用 VB.NET 制作 HTML 模板并转换为动态 PDF
  • 将包含实时数据的 ASP.NET 页面(如 ASPX)转换为 PDF 文件

为此,我们使用了流行的 IronPDF VB.NET 库 使我们能够在 .NET 项目中将 HTML 直接转化为 PDF 文档


教程快速访问

下载本教程的源代码

本教程的完整免费 VB.NET HTML 转 PDF 源代码可作为压缩的 Visual Studio 项目文件下载。

下载

在 GitHub 上探索此教程

您可能还会对我们在 GitHub 上提供的大量 VB.NET PDF 生成和操作示例库感兴趣。探索源代码是最快的学习方式,而 Github 则是在线学习的最佳途径。 希望这些示例能帮助您在 VB 项目中掌握 PDF 相关功能。

用 VB.NET 和 C# 源码在 ASP.NET 中创建 PDFS 使用 IronPDF 在 VB.NET 中将 HTML 渲染成 PDF 的简单 Hello World 项目 用 VB.NET 深入探索 HTML 转 PDF

下载 C# PDF Quickstart guide

为了使您在.NET应用程序中开发 PDF 更容易,我们将快速入门指南编译成 PDF 文档。该 "小抄 "提供了在 C# 和 VB.NET 中生成和编辑 PDF 的常用函数和示例的快速访问方法--这将节省您在.NET 项目中开始使用 IronPDF 的时间。

下载

查看应用程序接口参考

探索 IronPDF 的 API 参考,其中概述了 IronPDF 的所有功能、命名空间、类、方法字段和枚举的详细信息。

查看应用程序接口参考