添加链接
注册
登录
link管理
链接快照平台
输入网页链接,自动生成快照
标签化管理网页链接
相关文章推荐
干练的炒粉
·
深圳实验学校(集团)公布中招招生人数
·
6 月前
·
火爆的咖啡
·
通过 iTextSharp ...
·
7 月前
·
英姿勃勃的羽毛球
·
唐棠在总文里抢主角nb笔趣阁免费阅读全文 ...
·
7 月前
·
打篮球的啄木鸟
·
Autotools Clang Conda ...
·
11 月前
·
鼻子大的柑橘
·
使用MapReduce时的常见问题_云原生大 ...
·
1 年前
·
link管理
›
代码示例:将HTML转换为PDF | IronPDF
html语言
pdf
pdf打印机
https://ironpdf.com/zh/examples/using-html-to-create-a-pdf/
内向的黄豆
1 月前
</noscript><nav id="desktop_nav" class="sticky-top d-none d-md-block" data-page-lockedmenu="false"><div class="titleBar dark"><div class="titleLogo"><a href="https://ironsoftware.com"><svg width="17" height="15" viewbox="0 0 17 15" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16.28 3.25317L15.5902 5.65762H9.93359L10.5774 3.25317H16.28Z" fill="#FDA509"/><path d="M6.30046 8.53589L5.65661 10.9875H0L0.597848 8.53589H6.30046Z" fill="#63C1A0"/><path d="M7.67937 3.25317L7.03552 5.65762H1.37891L2.02275 3.25317H7.67937Z" fill="#FDA509"/><path d="M7.03701 5.65919H4.59961L6.07125 0H8.50865L7.03701 5.65919Z" fill="#E01A59"/><path d="M14.8551 8.53589L14.2113 10.9875H8.55469L9.19853 8.53589H14.8551Z" fill="#63C1A0"/><path d="M10.164 14.2422H7.72656L9.19821 8.53589H11.6356L10.164 14.2422Z" fill="#89D3DF"/><path d="M12.417 5.65919H9.93359L11.4512 0H13.8886L12.417 5.65919Z" fill="#89D3DF"/><path d="M4.82909 14.2422H2.3457L3.81733 8.53589H6.30074L4.82909 14.2422Z" fill="#E01A59"/></svg> <span class="iron_name"><strong>IRON</strong>SOFTWARE</span></a></div><ul class="titleMenu"><li><a href="" class="collapseHover" data-bs-target="#collapseMenuProducts">产品<div class="titleMenu__icon"><svg width="6" height="4" viewbox="0 0 6 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 0.444444C6 0.201389 5.83008 0 5.625 0H0.37501C0.169932 0 0 0.201389 0 0.444444C0 0.5625 0.0410239 0.673611 0.111336 0.756944L2.73633 3.86806C2.80665 3.95139 2.9004 4 3.00001 4C3.09962 4 3.19337 3.95139 3.26368 3.86806L5.88868 0.756944C5.95899 0.673611 6 0.5625 6 0.444444Z" fill="white"/></svg></div></a></li><li><a href="https://ironsoftware.com/enterprise/" class="collapseHover" data-bs-target="#collapseMenuEnterprise">企业<div class="titleMenu__icon"><svg width="6" height="4" viewbox="0 0 6 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 0.444444C6 0.201389 5.83008 0 5.625 0H0.37501C0.169932 0 0 0.201389 0 0.444444C0 0.5625 0.0410239 0.673611 0.111336 0.756944L2.73633 3.86806C2.80665 3.95139 2.9004 4 3.00001 4C3.09962 4 3.19337 3.95139 3.26368 3.86806L5.88868 0.756944C5.95899 0.673611 6 0.5625 6 0.444444Z" fill="white"/></svg></div></a></li><li><a href="" class="collapseHover" data-bs-target="#collapseMenuOpenSource">免费工具<div class="titleMenu__icon"><svg width="6" height="4" viewbox="0 0 6 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 0.444444C6 0.201389 5.83008 0 5.625 0H0.37501C0.169932 0 0 0.201389 0 0.444444C0 0.5625 0.0410239 0.673611 0.111336 0.756944L2.73633 3.86806C2.80665 3.95139 2.9004 4 3.00001 4C3.09962 4 3.19337 3.95139 3.26368 3.86806L5.88868 0.756944C5.95899 0.673611 6 0.5625 6 0.444444Z" fill="white"/></svg></div></a></li><li><a href="" class="collapseHover" data-bs-target="#collapseMenuUseCases">使用案例<div class="titleMenu__icon"><svg width="6" height="4" viewbox="0 0 6 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 0.444444C6 0.201389 5.83008 0 5.625 0H0.37501C0.169932 0 0 0.201389 0 0.444444C0 0.5625 0.0410239 0.673611 0.111336 0.756944L2.73633 3.86806C2.80665 3.95139 2.9004 4 3.00001 4C3.09962 4 3.19337 3.95139 3.26368 3.86806L5.88868 0.756944C5.95899 0.673611 6 0.5625 6 0.444444Z" fill="white"/></svg></div></a></li><li><a href="" class="collapseHover" data-bs-target="#collapseMenuAboutUs">公司<div class="titleMenu__icon"><svg width="6" height="4" viewbox="0 0 6 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 0.444444C6 0.201389 5.83008 0 5.625 0H0.37501C0.169932 0 0 0.201389 0 0.444444C0 0.5625 0.0410239 0.673611 0.111336 0.756944L2.73633 3.86806C2.80665 3.95139 2.9004 4 3.00001 4C3.09962 4 3.19337 3.95139 3.26368 3.86806L5.88868 0.756944C5.95899 0.673611 6 0.5625 6 0.444444Z" fill="white"/></svg></div></a></li><li class="d-none"><a href="https://ironsoftware.com/contact-us/" target="_blank" class="">联系我们</a></li></ul><div class="titleRight"><div class="d-none d-xl-flex iron_address overflow-hidden"><svg width="11" height="14" viewbox="0 0 11 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.5932 14.4219C6.26508 14.832 5.63617 14.832 5.30804 14.4219C3.91351 12.6445 0.714294 8.40625 0.714294 6C0.714294 3.10156 3.06586 0.75 5.96429 0.75C8.86273 0.75 11.2143 3.10156 11.2143 6C11.2143 8.40625 8.01508 12.6445 6.5932 14.4219ZM5.96429 4.25C5.33539 4.25 4.76117 4.60547 4.43304 5.125C4.13226 5.67188 4.13226 6.35547 4.43304 6.875C4.76117 7.42188 5.33539 7.75 5.96429 7.75C6.56586 7.75 7.14008 7.42188 7.4682 6.875C7.76898 6.35547 7.76898 5.67188 7.4682 5.125C7.14008 4.60547 6.56586 4.25 5.96429 4.25Z" fill="#66747b"/></svg> 205 N. Michigan Ave. Chicago, IL 60601, USA</div><div class="d-none d-xl-block iron_phone">+1 (312) 500-3060</div><div class="d-none d-xl-flex iron_contact-us" data-bs-target="#collapseMenuContactUs"><a href="https://ironsoftware.com/contact-us/" target="_blank">联系我们</a><div class="titleMenu__icon"><svg width="6" height="4" viewbox="0 0 6 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 0.444444C6 0.201389 5.83008 0 5.625 0H0.37501C0.169932 0 0 0.201389 0 0.444444C0 0.5625 0.0410239 0.673611 0.111336 0.756944L2.73633 3.86806C2.80665 3.95139 2.9004 4 3.00001 4C3.09962 4 3.19337 3.95139 3.26368 3.86806L5.88868 0.756944C5.95899 0.673611 6 0.5625 6 0.444444Z" fill="white"/></svg></div><section id="collapseMenuContactUs" class="collapse menuCollapse"><div class="menu__contact-us__container"><div class="menu__triangle__icon"><img src="/img/new-navbar__icons/icon-triangle.svg" alt=""/></div><ul class="menu__contact-us__list"><li class="menu__contact-us__item"><a href="https://ironsoftware.com/contact-us/sales/" class="menu__contact-us__link">销售</a></li><li class="menu__contact-us__item"><a href="https://ironsoftware.com/contact-us/support/" class="menu__contact-us__link">支持</a></li><li class="menu__contact-us__item"><a href="https://ironsoftware.com/contact-us/partnerships/" class="menu__contact-us__link">合作伙伴关系</a></li><li class="menu__contact-us__item"><a href="https://ironsoftware.com/contact-us/corporate/" class="menu__contact-us__link">公司</a></li></ul><a href="#live-chat-support" class="menu__contact-us__live-chat" onclick="return show_helpscout(event)"><i class="fa-regular fa-message-lines"/>Live Chat 24/5</a></div></section></div><li class="iron_lang-menu dropdown" data-bs-target="#headerLangNameMenuDropdown"><span type="button" data-lang-name="简体中文" class="dropdown-toggle" id="iron_lang-menu__language-name_dropdown__current-language" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa-sharp fa-light fa-globe"/> 简体中文</span><div class="titleMenu__icon"><svg width="6" height="4" viewbox="0 0 6 4" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 0.444444C6 0.201389 5.83008 0 5.625 0H0.37501C0.169932 0 0 0.201389 0 0.444444C0 0.5625 0.0410239 0.673611 0.111336 0.756944L2.73633 3.86806C2.80665 3.95139 2.9004 4 3.00001 4C3.09962 4 3.19337 3.95139 3.26368 3.86806L5.88868 0.756944C5.95899 0.673611 6 0.5625 6 0.444444Z" fill="white"/></svg></div><div class="headerLangNameMenuDropdownContainer"><ul id="headerLangNameMenuDropdown" class="dropdown-menu" aria-labelledby="headerLangNameMenuDropdown"><div class="menu__triangle__icon"><img src="/img/new-navbar__icons/icon-triangle.svg" alt=""/></div><li class="dropdown-item"><a class="i18n__distrans" data-language-code="en" data-href="/examples/using-html-to-create-a-pdf/" onclick="window.location='/examples/using-html-to-create-a-pdf/'">English</a></li><li class="dropdown-item"><a class="i18n__distrans" data-language-code="es" data-href="/es/examples/using-html-to-create-a-pdf/" onclick="window.location='/es/examples/using-html-to-create-a-pdf/'">Español</a></li><li class="dropdown-item"><a class="i18n__distrans" data-language-code="de" data-href="/de/examples/using-html-to-create-a-pdf/" onclick="window.location='/de/examples/using-html-to-create-a-pdf/'">Deutsch</a></li><li class="dropdown-item"><a class="i18n__distrans" data-language-code="fr" data-href="/fr/examples/using-html-to-create-a-pdf/" onclick="window.location='/fr/examples/using-html-to-create-a-pdf/'">Français</a></li><li class="dropdown-item"><a class="i18n__distrans" data-language-code="ja" data-href="/ja/examples/using-html-to-create-a-pdf/" onclick="window.location='/ja/examples/using-html-to-create-a-pdf/'">日本語</a></li><li class="dropdown-item"><a class="i18n__distrans active-lang" data-language-code="zh" data-href="/zh/examples/using-html-to-create-a-pdf/" onclick="window.location='/zh/examples/using-html-to-create-a-pdf/'">简体中文</a></li><li class="dropdown-item"><a class="i18n__distrans" data-language-code="zh_TW" data-language-alias="zh-hant" data-href="/zh-hant/examples/using-html-to-create-a-pdf/" onclick="window.location='/zh-hant/examples/using-html-to-create-a-pdf/'">繁體中文</a></li></ul></div></li></div></div><section id="collapseMenuUseCases" class="collapse menuCollapse"><div class="menu__use-cases__container"><div class="menu__triangle__icon"><img src="/img/new-navbar__icons/icon-triangle.svg" alt=""/></div><ul class="menu__use-cases__list"><li class="menu__use-cases__item"><a href="https://ironsoftware.com/customers/case-studies/" class="menu__use-cases__link">客户案例研究</a></li><li class="menu__use-cases__item"><a href="https://ironsoftware.com/customers/white-papers/" class="menu__use-cases__link">行业白皮书</a></li></ul></div></section><section id="collapseMenuAboutUs" class="collapse menuCollapse"><div class="menu__company__container"><div class="menu__triangle__icon"><img src="/img/new-navbar__icons/icon-triangle.svg" alt=""/></div><div class="menu__company__our-company menu__company"><label class="menu__company__label">我们的公司</label><ul class="menu__company__list"><li class="menu__company__item"><a href="https://ironsoftware.com/about-us/" class="menu__company__link">关于我们</a><div class="our-company__text"><img src="/img/navbar_icons/company/icon-text-wearehiring.svg" alt=""/></div></li><li class="menu__company__item"><a href="https://ironsoftware.com/news/company-news/" class="menu__company__link">公司新闻</a><div class="our-company__text"><img src="/img/navbar_icons/company/icon-text-wearehiring.svg" alt=""/></div></li><li class="menu__company__item"><a href="https://ironsoftware.com/customers/" class="menu__company__link">客户与案例研究</a><div class="our-company__text"><img src="/img/navbar_icons/company/icon-text-wearehiring.svg" alt=""/></div></li><li class="menu__company__item"><a href="https://ironsoftware.com/about-us/ecogrant/" class="menu__company__link">环境承诺</a><div class="our-company__text"><img src="/img/navbar_icons/company/icon-text-wearehiring.svg" alt=""/></div></li><li class="menu__company__item"><a href="https://ironsoftware.com/beta/" class="menu__company__link">测试计划</a><div class="our-company__text"><img src="/img/navbar_icons/company/icon-text-wearehiring.svg" alt=""/></div></li><li class="menu__company__item"><a href="https://ironsoftware.com/news/company-news/2023-wrap-up/" class="menu__company__link">2024年年度回顾</a><div class="our-company__text"><img src="/img/navbar_icons/company/icon-text-wearehiring.svg" alt=""/></div></li><li class="menu__company__item"><a href="https://ironsoftware.com/careers/" class="menu__company__link">职业机会</a><div class="our-company__text"><img src="/img/navbar_icons/company/icon-text-wearehiring.svg" alt=""/></div></li></ul></div><div class="v__divider"/><div class="menu__company__partners menu__company"><label class="menu__company__label">合作伙伴</label><ul class="menu__company__list"><li class="menu__company__item"><a href="https://ironsoftware.com/partners/itconsultancy/" class="menu__company__link">咨询合作伙伴</a></li><li class="menu__company__item"><a href="https://ironsoftware.com/resellers/" class="menu__company__link">经销商合作伙伴</a></li><li class="menu__company__item"><a href="https://ironsoftware.com/partners/technology/" class="menu__company__link">技术合作伙伴</a></li><li class="menu__company__item"><a href="https://ironsoftware.com/partners/microsoftmvp/" class="menu__company__link">微软最有价值专家</a></li><li class="menu__company__item"><a href="https://ironsoftware.com/partners/affiliate/" class="menu__company__link">分支机构</a></li></ul></div><div class="v__divider"/><div class="menu__company__procurement menu__company"><label class="menu__company__label">采购</label><ul class="menu__company__list"><li class="menu__company__item"><a href="https://ironsoftware.com/resellers/" class="menu__company__link">全球经销商</a></li><li class="menu__company__item"><a href="https://ironsoftware.com/merchant-of-record/" class="menu__company__link">订购商</a></li><li class="menu__company__item"><a href="https://ironsoftware.com/trust-center/" class="menu__company__link">信任中心</a></li></ul></div><div class="v__divider"/><div class="menu__company__contact-us menu__company"><label class="menu__company__label">联系我们</label><ul class="menu__company__list"><li class="menu__company__item"><a href="https://ironsoftware.com/contact-us/sales/" class="menu__company__link">销售</a></li><li class="menu__company__item"><a href="https://ironsoftware.com/contact-us/support/" class="menu__company__link">支持</a></li><li class="menu__company__item"><a href="https://ironsoftware.com/contact-us/partnerships/" class="menu__company__link">合作伙伴关系</a></li><li class="menu__company__item"><a href="https://ironsoftware.com/contact-us/corporate/" class="menu__company__link">公司</a></li></ul><div class="h__divider"/><a href="#live-chat-support" class="contact-us__live-chat" onclick="return show_helpscout(event)"><i class="fa-regular fa-message-lines"/>Live Chat 24/5</a></div></div></section><section id="collapseMenuProducts" class="collapse menuCollapse"><div class="menu__products__container"><div class="menu__triangle__icon"><img src="/img/new-navbar__icons/icon-triangle.svg" alt=""/></div><div class="products__suite"><div class="suite__info"><div class="suite__logo"><img src="/img/navbar_icons/products/icon-logo-ironsuite.svg" alt=""/></div><div class="suite__desc"><p class="suite__name"><strong>铁</strong>套装</p><p class="suite__subtitle">全10件仅售2件的价格</p></div></div><div class="suite__actions"><a href="https://ironsoftware.com/suite/" class="suite__cta">Save 70% with Iron Suite</a><div class="suite__teamseas"><label class="teamseas__text"><strong>Iron Suites</strong> 捐赠50美元</label><div class="teamseas__logo"><img src="/img/navbar_icons/products/icon-logo-teamseas.svg" alt=""/></div></div></div></div><div class="products__all"><div class="products__first-col products__col"><a href="/" class="product" title="点击查看IronPDF主页"><div class="product__logo"><img src="/img/navbar_icons/products/icon-logo-ironpdf.svg" alt="Logo IronPDF"/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/products/icon-text-ironpdf.svg" alt="Logo IronPDF"/></div><p class="product__desc">创建、阅读和编辑PDF</p></div></a><a href="https://ironsoftware.com/csharp/ppt/" class="product pe-none" title="点击查看IronPPT主页"><div class="product__logo"><img src="/img/navbar_icons/products/icon-logo-ironppt.svg" alt="Logo IronPPT"/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/products/icon-text-ironppt.svg" alt="Logo IronPPT"/> <img src="/img/navbar_icons/products/icon-status-soon.svg" alt="Logo IronPPT"/></div><p class="product__desc">编辑Powerpoint文件。不需要Office互操作性。</p></div></a><a href="https://ironsoftware.com/csharp/qr/" class="product" title="点击查看IronQR主页"><div class="product__logo"><img src="/img/navbar_icons/products/icon-logo-ironqr.svg" alt="Logo IronQR"/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/products/icon-text-ironqr.svg" alt="Logo IronQR"/></div><p class="product__desc">使用ML检测读写QR码</p></div></a><a href="https://ironsoftware.com/csharp/webscraper/" class="product" title="点击查看IronWebscraper主页"><div class="product__logo"><img src="/img/navbar_icons/products/icon-logo-ironwebscraper.svg" alt="Logo IronWebscraper"/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/products/icon-text-ironwebscraper.svg" alt="Logo IronWebscraper"/></div><p class="product__desc">从网站提取结构化数据。</p></div></a></div><div class="v__divider"/><div class="products__second-col products__col"><a href="https://ironsoftware.com/csharp/word/" class="product" title="点击查看IronWord主页"><div class="product__logo"><img src="/img/navbar_icons/products/icon-logo-ironword.svg" alt="Logo IronWord"/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/products/icon-text-ironword.svg" alt="Logo IronWord"/></div><p class="product__desc">编辑DOCX Word文件。无需Office互操作</p></div></a><a href="https://ironsoftware.com/csharp/ocr/" class="product" title="点击查看IronOCR主页"><div class="product__logo"><img src="/img/navbar_icons/products/icon-logo-ironocr.svg" alt="Logo IronOCR"/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/products/icon-text-ironocr.svg" alt="Logo IronOCR"/></div><p class="product__desc">图像转文字支持127种语言</p></div></a><a href="https://ironsoftware.com/csharp/print/" class="product" title="点击查看IronPrint主页"><div class="product__logo"><img src="/img/navbar_icons/products/icon-logo-ironprint.svg" alt="Logo IronPrint"/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/products/icon-text-ironprint.svg" alt="Logo IronPrint"/></div><p class="product__desc">自定义打印文件</p></div></a></div><div class="v__divider"/><div class="products__third-col products__col"><a href="https://ironsoftware.com/csharp/excel/" class="product" title="点击查看IronXL主页"><div class="product__logo"><img src="/img/navbar_icons/products/icon-logo-ironxl.svg" alt="Logo IronXL"/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/products/icon-text-ironxl.svg" alt="Logo IronXL"/></div><p class="product__desc">编辑 Excel 和 CSV 文件。无需 Office 互操作性。</p></div></a><a href="https://ironsoftware.com/csharp/barcode/" class="product" title="点击查看IronBarcode主页"><div class="product__logo"><img src="/img/navbar_icons/products/icon-logo-ironbarcode.svg" alt="Logo IronBarcode"/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/products/icon-text-ironbarcode.svg" alt="Logo IronBarcode"/></div><p class="product__desc">读取和写入条形码</p></div></a><a href="https://ironsoftware.com/csharp/zip/" class="product" title="点击查看IronZIP主页"><div class="product__logo"><img src="/img/navbar_icons/products/icon-logo-ironzip.svg" alt="Logo IronZIP"/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/products/icon-text-ironzip.svg" alt="Logo IronZIP"/></div><p class="product__desc">压缩和解压档案</p></div></a></div></div></div></section><section id="collapseMenuEnterprise" class="collapse menuCollapse"><div class="menu__enterprise__container"><div class="menu__triangle__icon"><img src="/img/new-navbar__icons/icon-triangle.svg" alt=""/></div><a title="点击查看企业主页" href="https://ironsoftware.com/enterprise/" class="product"><div class="product__logo"><img src="/img/navbar_icons/enterprise/icon-logo-ironsuite.svg" alt=""/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/enterprise/icon-text-ironsuite.svg" alt=""/></div><p class="product__desc">企业许可</p></div></a><div class="v__divider"/><a title="点击查看 IronSecureDoc 主页" href="https://ironsoftware.com/enterprise/securedoc/" class="product"><div class="product__logo"><img src="/img/navbar_icons/enterprise/icon-logo-ironsecuredoc.svg" alt=""/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/enterprise/icon-text-ironsecuredoc.svg" alt=""/></div><p class="product__desc">PDF 安全与合规性</p></div></a></div></section><section id="collapseMenuOpenSource" class="collapse menuCollapse"><div class="menu__free-tools__container"><div class="menu__triangle__icon"><img src="/img/new-navbar__icons/icon-triangle.svg" alt=""/></div><a title="点击查看IronDrawing主页" href="https://ironsoftware.com/open-source/csharp/drawing/" class="product"><div class="product__logo"><img src="/img/navbar_icons/free-tools/icon-logo-irondrawing.svg" alt=""/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/free-tools/icon-text-irondrawing.svg" alt=""/></div><p class="product__desc">企业许可</p></div></a><div class="v__divider"/><a title="点击查看IronFreeTools主页" href="https://ironsoftware.com/open-source/csharp/free-tools/json-to-csharp-converter/" class="product"><div class="product__logo"><img src="/img/navbar_icons/free-tools/icon-logo-ironfreetools.svg" alt=""/></div><div class="product__info"><div class="product__name"><img src="/img/navbar_icons/free-tools/icon-text-ironfreetools.svg" alt=""/></div><p class="product__desc">PDF 安全与合规性</p></div></a></div></section><section id="devMenuDesktop"><div class="d-flex mx-auto" style="max-width:1470px; padding:2px; align-items:center; padding-left:18px; padding-right:18px;"><div class="d-flex dropdown-center programselect"><div class="productLogoWrapper"><a href="/" title="点击查看IronPDF主页"><img loading="lazy" src="/img/products/ironpdf-logo-text.svg" alt="IronPDF - 用于.NET的库" width="auto" height="34"/></a></div><div class="d-flex proglang_selector"><div class="textFor">for</div><div class="program-select align-self-center"><div class="dropdown-toggle-by-hover position-relative" data-bs-target="#devProgLangSelector" aria-expanded="false"><div class="dropdown-program-selected"><span class="platform_icon_default_16 dotnet"/>.NET</div><ul id="devProgLangSelector" class="dropdown-menu"><li><a href="/" title="点击查看IronPDF for .NET"><span class="platform_icon_16 dotnet"/>.NET</a></li><li><a href="/java/" title="点击查看IronPDF for Java"><span class="platform_icon_16 java"/>Java</a></li><li><a href="/python/" title="点击查看IronPDF for Python"><span class="platform_icon_16 python"/>Python</a></li><li><a href="/nodejs/" title="点击查看 IronPDF for Node.js"><span class="platform_icon_16 nodejs"/>Node.js</a></li></ul></div></div></div></div><div class="flex-grow-1"/><div><ul class="devMenu"><li id="header-navbar-white-item-home"><a href="/" title="主页" class="item">主页</a></li><li id="header-navbar-white-item-licensing"><div class="menuGroup"><a href="/licensing/" title="许可" class="item text-nowrap">许可<i class="fas fa-angle-down arrow"/></a><ul class="menuDropDown"><li id="header-navbar-white-item-buy-license"><a class="" href="/zh/licensing/"><span class="iwrap"><i class="fa-kit fa-licensing"/></span>许可</a></li><li id="header-navbar-white-item-eula"><a class="" href="/zh/licensing/#license-terms-modal-tabs-eula" data-modal-licensing-tab-id="license-terms-modal-tabs-eula"><span class="iwrap"><i class="fa-kit fa-eula"/></span>最终用户许可协议</a></li><li id="header-navbar-white-item-support-n-update"><a class="" href="/zh/licensing/extensions/"><span class="iwrap"><i class="fa-kit fa-support"/></span>支持与更新扩展</a></li><li id="header-navbar-white-item-license-upgrade"><a class="" href="/zh/licensing/upgrades/"><span class="iwrap"><i class="fa-kit fa-upgrades"/></span>许可证升级</a></li><li id="header-navbar-white-item-how-to-use-license"><a class="" href="/zh/how-to/license-keys/"><span class="iwrap"><i class="fa-regular fa-circle-question"/></span>如何使用许可证密钥</a></li><li class="free-trial" id="header-navbar-white-item-license-trial"><a class="js-modal-open" href="/zh/#trial-license" data-modal-id="trial-license" data-bs-toggle="modal" data-bs-target="#trial-license"><span class="iwrap"><i class="fa-regular fa-key"/></span>开始免费试用</a></li></ul></div></li><li id="header-navbar-white-item-features-in-main-nav"><a href="/features/" title="特点" class="item">特点</a></li><li id="header-navbar-white-item-demo-in-main-nav"><a href="/demos/" title="演示" class="item">演示</a></li><li id="header-navbar-white-item-docs"><div class="menuGroup"><a href="/docs/" title="文档" class="item text-nowrap">文档<i class="fas fa-angle-down arrow"/></a><ul class="menuDropDown"><li id="header-navbar-white-item-get-started"><a class="" href="/zh/docs/"><span class="iwrap"><i class="fa-regular fa-rocket-launch"/></span>入门</a></li><li id="header-navbar-white-item-code-examples"><a class="" href="/zh/examples/using-html-to-create-a-pdf/"><span class="iwrap"><i class="fa-regular fa-code"/></span>代码示例</a></li><li id="header-navbar-white-item-tutorials"><a class="" href="/zh/tutorials/html-to-pdf/"><span class="iwrap"><i class="fa-regular fa-graduation-cap fa-flip-horizontal"/></span>教程</a></li><li id="header-navbar-white-item-faq"><a class="" href="/zh/how-to/installation/"><span class="iwrap"><i class="fa-regular fa-circle-question"/></span>操作指南</a></li><li id="header-navbar-white-item-troubleshooting"><a class="" href="/zh/troubleshooting/engineering-request-pdf/"><span class="iwrap"><i class="fa-regular fa-wrench"/></span>故障排除</a></li><li id="header-navbar-white-item-changelog"><a class="" href="/zh/product-updates/changelog/"><span class="iwrap"><i class="fa-regular fa-arrows-rotate"/></span>产品更新</a></li><li class="api-ref" id="header-navbar-white-item-api-reference"><a class="" href="/zh/object-reference/api/" target="_blank"><span class="iwrap"><i class="fa-kit fa-plugconnect"/></span>API参考<i class="fa-solid fa-square-arrow-up-right"/></a></li></ul></div></li></ul></div><div class="js-search js-search__button searchBoxTop d-none d-xl-flex"><div class="searchBox search-button__link"><div class="iwrap"><i class="fa-solid fa-magnifying-glass"/></div><div class="searchText">搜索</div><div><div class="search-shortcut_btn">Ctrl</div><div class="search-shortcut_btn">K</div></div></div></div><div class="searchBoxTop d-flex d-xl-none"><div class="js-search js-search__button searchBoxRound search-button__link d-flex d-xl-none"><i class="fa-solid fa-magnifying-glass"/></div></div><div class="downloadButtonTop"><div class="download_button_2407__wrapper"><a class="download_button_2407__button js-modal-open" href="https://www.nuget.org/packages/IronPdf/" data-modal-id="trial-license-after-download" target="_blank"><span class="download_button_2407__main_icon_wrapper"><i class="fa-kit fa-nuget"/></span> 免费开始<i class="fa-solid fa-caret-down ms-2 download_button_2407__button__arrow"/></a><div class="download_button_2407__content"><div class="download_button_2407__menu"><a aria-label="" class="js-modal-open" target="_blank" href="https://www.nuget.org/packages/IronPdf/" data-modal-id="trial-license-after-download"><span class="download_button_2407__icon_wrapper"><i class="fa-kit fa-nuget"/></span> NuGet 下载 </a><a aria-label="" class="openWebsiteWithDataURL" data-url="https://ironpdf.com/packages/IronPdf.zip"><span class="download_button_2407__icon_wrapper"><i class="fa fa-download"/></span> DLL 下载 </a><a aria-label="" class="openWebsiteWithDataURL" data-url="https://ironpdf.com/packages/IronPdfInstaller.zip"><span class="download_button_2407__icon_wrapper"><i class="fab fa-microsoft"/></span> Windows 安装程序 </a><a href="#trial-license" class="the_trial" aria-label="" data-bs-toggle="modal" data-bs-target="#trial-license"><span class="download_button_2407__icon_wrapper"><i class="fa-solid fa-key"/></span>开始免费试用</a></div></div></div></div></div><div id="reading-progressbar"><div class="progress-bar"/></div></section></nav><nav id="mobile_nav" class="sticky-top d-block d-md-none"><div class="devTitleBar d-flex align-items-center shadow"><a href="#" data-bs-toggle="offcanvas" data-bs-target="#offCanvasProducts" aria-controls="menuoffcanvas" class="d-flex"><div style="background-color:#141414; height:40px; padding:0 10px;" class="d-flex align-items-center"><img loading="lazy" src="https://ironsoftware.com/img/svgs/logo-icon.svg" width="24" height="24"/><div style="font-size:10px; color:#fff;" class="align-self-end"><i class="fas fa-caret-down"/></div></div><div style="width:12px; height:40px;" class="theshard d-none"><i class="fa-kit fa-shard"/></div></a><div class="d-flex flex-grow-1 align-items-end overflow-x-hidden"><div class="product_for"><a href="/" title="IronPDF"><img loading="lazy" src="/img/products/ironpdf-text-without-icon-black.svg" alt="IronPDF - 用于.NET的库" height="16"/><div class="textFor">对于</div></a></div><div id="plang_dropdown" class="xx_dropdown-center"><button type="button" data-bs-toggle="dropdown" class="btn btn-secondary dropdown-toggle" aria-expanded="false">.NET</button><ul class="dropdown-menu shadow"><li><a href="/" title="点击查看IronPDF for .NET">.NET</a></li><li><a href="/java/" title="点击查看IronPDF for Java">Java</a></li><li><a href="/python/" title="点击查看IronPDF for Python">Python</a></li><li><a href="/nodejs/" title="点击查看 IronPDF for Node.js">Node.js</a></li></ul></div></div><div data-bs-toggle="x_collapse" data-bs-target="#collapseSearchBox" class="icon_magnify cursorPointer"><i class="fa-regular fa-magnifying-glass js-search js-search__button"/></div><div data-bs-toggle="offcanvas" data-bs-target="#offCanvasDev" aria-controls="menuoffcanvas" class="icon_bars cursorPointer"><i class="fas fa-bars"/></div></div><div id="offCanvasProducts" class="offcanvas devmode offcanvas-start" tabindex="-1" aria-labelledby="IronSoftwareProductsMenu"><div class="body transparent-scrollbar"><div class="accordion" id="accordionProductGroup"><ul class="layer1"><li class="home"><a href="https://ironsoftware.com/" title="点击查看Iron Software主页">铁软件 <em>主页</em></a></li><li><div class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#collapseProducts" aria-expanded="false" aria-controls="collapseProducts">产品</div><ul id="collapseProducts" class="collapse layer2" data-bs-parent="#accordionProductGroup"><li><a href="https://ironsoftware.com/suite/" class="productname" title="Click to view Iron Suite licensing"><div>IRON<span style="color:#e01a59;">SUITE</span></div></a></li><li><hr/></li><li><a href="/" class="productname" title="Click to view the IronPDF homepage"><div>IRON<span style="color:#e01a59;">PDF</span></div><div class="badge update">更新</div></a></li><li><a href="https://ironsoftware.com/csharp/word/" class="productname" title="Click to view the IronWord homepage"><div>IRON<span style="color:#89D3DF;">WORD</span></div></a></li><li><a href="https://ironsoftware.com/csharp/excel/" class="productname" title="Click to view the IronXL homepage"><div>IRON<span style="color:#63c1a0;">XL</span></div></a></li><li><a href="https://ironsoftware.com/csharp/ocr/" class="productname" title="Click to view the IronOCR homepage"><div>IRON<span style="color:#89d3df;">OCR</span></div></a></li><li><a href="https://ironsoftware.com/csharp/barcode/" class="productname" title="Click to view the IronBarcode homepage"><div>IRON<span style="color:#63c1a0;">BARCODE</span></div></a></li><li><a href="https://ironsoftware.com/csharp/qr/" class="productname" title="Click to view the IronQR homepage"><div>IRON<span style="color:#63c1a0;">QR</span></div></a></li><li><a href="https://ironsoftware.com/csharp/zip/" class="productname" title="Click to view the IronZIP homepage"><div>IRON<span style="color:#FDA509;">ZIP</span></div></a></li><li><a href="https://ironsoftware.com/csharp/print/" class="productname" title="Click to view the IronPRINT homepage"><div>IRON<span style="color:#FDA509;">PRINT</span></div></a></li><li><a href="https://ironsoftware.com/csharp/webscraper/" class="productname" title="Click to view the IronWebScraper homepage"><div>IRON<span style="color:#fda509;">WEBSCRAPER</span></div></a></li></ul></li><li><div class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#collapseEnterprise" aria-expanded="false" aria-controls="collapseEnterprise">企业</div><ul id="collapseEnterprise" class="layer2 collapse" data-bs-parent="#accordionProductGroup"><li><a href="https://ironsoftware.com/enterprise/securedoc/" class="productname" title="点击查看IronSECUREDOC主页"><div>铁<span style="color:#ef5214;">安全数据中心</span></div></a></li></ul></li><li><div class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#collapseOpenSource" aria-expanded="false" aria-controls="collapseOpenSource">开源</div><ul id="collapseOpenSource" class="layer2 collapse" data-bs-parent="#accordionProductGroup"><li><a href="https://ironsoftware.com/open-source/csharp/drawing/docs/" class="productname" title="点击查看IronDRAWING主页"><div>铁<span style="color:#63C1A0;">绘图</span></div></a></li><li><a href="https://ironsoftware.com/open-source/csharp/free-tools/json-to-csharp-converter/" class="productname" title="点击查看IronFREETOOLS主页"><div>铁<span style="color:#fda509;">FREETOOLS</span></div></a></li></ul></li><li><div class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#collapseAboutUs" aria-expanded="false" aria-controls="collapseOpenSource">关于我们</div><ul id="collapseAboutUs" class="layer2 collapse" data-bs-parent="#accordionProductGroup"><li><a href="https://ironsoftware.com/about-us/" title="点击查看关于我们页面"><div>关于我们</div></a></li><li><a href="https://ironsoftware.com/news/company-news/" title="点击查看公司新闻页面"><div>公司新闻</div></a></li><li><a href="https://ironsoftware.com/customers/" title="点击查看客户页面"><div>客户</div></a></li><li><a href="https://ironsoftware.com/about-us/ecogrant/" title="点击查看环境承诺页面"><div>环境承诺</div></a></li><li><a href="https://ironsoftware.com/beta/" title="点击查看测试版程序页面"><div>测试计划</div></a></li><li><a href="https://ironsoftware.com/news/company-news/2023-wrap-up/" title="点击查看2023年回顾页面"><div>2023年回顾</div></a></li><li><a href="https://ironsoftware.com/#live-chat-support" title="与我们的团队聊天" onclick="return window.HubSpotConversations.widget.open()"><div>在线聊天</div></a></li><li><a href="https://ironsoftware.com/resellers/" title="点击查看全球经销商页面"><div>全球经销商</div></a></li><li><a href="https://ironsoftware.com/careers/" title="点击查看职业页面"><div>加入我们的团队</div></a></li></ul></li><li><a href="https://ironsoftware.com/contact-us/" title="点击查看联系我们页面">联系我们</a></li></ul></div></div><div class="/h-100" data-bs-dismiss="offcanvas"/></div><div id="offCanvasDev" class="offcanvas offcanvas-end" tabindex="-1" aria-labelledby="IronSoftwareDeveloperMenu"><div class="body transparent-scrollbar /h-100"><div class="accordion" id="accordionDevGroup"><ul class="layer1"><li><a href="/" class="item"><span class="iwrap"><i class="fa-regular fa-home"/></span>主页</a></li><li><div class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#collapse-1" aria-expanded="false" aria-controls="collapseProducts"><span class="iwrap"><i class="fa-kit fa-licensing"/></span>许可</div><ul id="collapse-1" class="collapse layer2" data-bs-parent="#accordionDevGroup"><li><a class="" href="/licensing/"><span class="iwrap"><i class="fa-kit fa-licensing"/></span>许可</a></li><li><a class="" href="/licensing/#license-terms-modal-tabs-eula" data-modal-licensing-tab-id="license-terms-modal-tabs-eula"><span class="iwrap"><i class="fa-kit fa-eula"/></span>最终用户许可协议</a></li><li><a class="" href="/licensing/extensions/"><span class="iwrap"><i class="fa-kit fa-support"/></span>支持与更新扩展</a></li><li><a class="" href="/licensing/upgrades/"><span class="iwrap"><i class="fa-kit fa-upgrades"/></span>许可证升级</a></li><li><a class="" href="/how-to/license-keys/"><span class="iwrap"><i class="fa-regular fa-circle-question"/></span>如何使用许可证密钥</a></li><li><hr/></li><li><a class="js-modal-open" href="/#trial-license" data-modal-id="trial-license" data-bs-toggle="modal" data-bs-target="#trial-license"><span class="iwrap"><i class="fa-regular fa-key"/></span>开始免费试用</a></li></ul></li><li><a href="/features/" class="item"><span class="iwrap"><i class="fa-regular fa-clipboard-check"/></span>特点</a></li><li><a href="/demos/" class="item"><span class="iwrap"><i class="fa-kit fa-demo"/></span>演示</a></li><li><div class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#collapse-4" aria-expanded="false" aria-controls="collapseProducts"><span class="iwrap"><i class="fa-regular fa-book"/></span>文档</div><ul id="collapse-4" class="collapse layer2" data-bs-parent="#accordionDevGroup"><li><a class="" href="/docs/"><span class="iwrap"><i class="fa-regular fa-rocket-launch"/></span>入门</a></li><li><a class="" href="/examples/using-html-to-create-a-pdf/"><span class="iwrap"><i class="fa-regular fa-code"/></span>代码示例</a></li><li><a class="" href="/tutorials/html-to-pdf/"><span class="iwrap"><i class="fa-regular fa-graduation-cap fa-flip-horizontal"/></span>教程</a></li><li><a class="" href="/how-to/installation/"><span class="iwrap"><i class="fa-regular fa-circle-question"/></span>操作指南</a></li><li><a class="" href="/troubleshooting/engineering-request-pdf/"><span class="iwrap"><i class="fa-regular fa-wrench"/></span>故障排除</a></li><li><a class="" href="/product-updates/changelog/"><span class="iwrap"><i class="fa-regular fa-arrows-rotate"/></span>产品更新</a></li><li><hr/></li><li><a class="" href="/object-reference/api/" target="_blank"><span class="iwrap"><i class="fa-kit fa-plugconnect"/></span>API参考<i class="fa-solid fa-square-arrow-up-right"/></a></li></ul></li></ul></div><div class="/h-100" data-bs-dismiss="offcanvas"/></div></div></nav><div id="header-navbar-search" class="js-search search-box shadow" data-visible-class="search-box_visible"><div class="js-search__close search-box__backdrop"><div class="js-search__close-exception search-box__container"><div class="js-search-offset-block search-box__field"><label class="search-box__label"><span class="search-box__label-icon"><i class="fa-solid fa-magnifying-glass"/> </span><input id="header-navbar-search-input" class="js-search__input search-box__label-input" type="search" autocomplete="off" placeholder="搜索API、代码示例和教程"/></label> <button class="js-search__close search-box__close"/></div><div class="js-search__results search-box__results search-box__results_horizontal" data-visible-class="search-box__results_visible"><div class="search-box__list-wrapper"><div class="js-search__list-overflow search-box__list"><div id="header-navbar-search-results-list" class="js-search__list search-box__list-inner" data-insights-index="ironpdf__zh"/></div></div><div id="header-navbar-search-results-preview" class="search-box__preview-wrapper"><div class="js-search__preview-overflow search-box__preview"><div class="js-search__preview search-box__preview-inner"><div class="js-search__preview-icon-wrapper search-box__preview-icon-wrapper" data-visible-class="search-box__preview-icon-wrapper_visible"><i class="js-search__preview-icon search-box__preview-icon" data-added-class-before=""/></div><div class="js-search__preview-title search-box__preview-title" data-visible-class="search-box__preview-title_visible"/><div class="js-search__preview-breadcrumbs search-box__preview-breadcrumbs" data-visible-class="search-box__preview-breadcrumbs_visible"/><div class="js-search__preview-content search-box__preview-content" data-visible-class="search-box__preview-content_visible"/></div></div></div></div><div id="header-navbar-search-message" class="js-search__message search-box__results search-box__results_padding-bottom" data-visible-class="search-box__results_visible"><div class="search-box__results-icon"><img loading="lazy" class="js-search__message-icon search-box__results-icon-img" src="/img/svgs/search-no-results.svg" alt="消息图标"/></div><div class="js-search__message-text search-box__results-text"/></div></div></div></div><header id="header" class="products-header products-header_margin-top-desktop"><div id="section-banner" class="banner banner-inner banner-inner--remove-minheight-bgcolor docs-version-two-layout"><img loading="lazy" class="illustration1 add-shadow d-none d-lg-block" src="/img/svgs/licensing-branding-top-left.svg" alt="IronPDF" width="137" height="127"/><div class="container-fluid container-fluid_wide"><div class="banner__illustration2-wrapper banner__illustration2-wrapper--ironpdf d-lg-block"><img loading="lazy" class="illustration2 add-shadow banner__small-illustration2--right-ironpdf iron-pdf-top-image-right" src="/img/svgs/licensing-branding-top-right.svg" alt="IronPDF" width="164" height="278"/></div></div></div></header><main class="main-inverse three-columns-section code-examples-page docs-version-two-layout" id="main"><div class="container-fluid container-fluid_wide"><div class="row equal-height-columns"><div class="col-md-3 two-columns-left order-last order-md-first"><aside class="sidebar" id="sidebar"><div id="pages-leftmenu-nav-wrapper"><div class="pages-leftmenu-nav-wrapper__docs-explorer-menu relative-with-navbar"><div class="leftmenu-nav-wrapper__img-header"><img loading="lazy" class="product-text-img" src="/img/products/ironpdf-text-without-icon-black.svg" alt="Iron Software Product" width="128" height="20"/> <img loading="lazy" class="section-icon" src="/img/svgs/docs.svg" alt="Iron Software Documents" width="46" height="20"/></div><div class="leftmenu-nav__copy-cmd vwo-variant-2"><div class="nuget-sidebar-cli copy-cmd--ironpdf"><div class="nuget-sidebar-cli__command" data-copy-text="点击复制" data-copied-text="已复制到剪贴板"><p class="nuget-sidebar-cli__command__text"><a class="nuget-icon-continaer__link js-modal-open" href="https://www.nuget.org/packages/IronPdf" target="_blank" title="Visit IronPDF NuGet Page" data-modal-id="trial-license-after-download"><i class="nuget-icon-blue"/></a> <span class="js-nuget-sidebar-cli__command__text__prefix">PM ></span><span class="js-nuget-sidebar-cli__command__text">Install-Package IronPdf</span></p></div><div class="nuget-sidebar-cli__copy-block"><span class="fas copy-icon-white"/></div></div></div><div class="well-v2 aside-well"><ul class="nav nav-list aside-list"><li class=""><div class="first-level"><a href="/zh/docs/"><span class="navmenu-icon img-icon navmenu-icon__sidemenu-icon left-sidemenu-icon"><i class="fa-regular fa-rocket-launch"/></span><div class="flex-grow-1">入门</div><i class="fa fa-caret-down hidden"/></a></div></li><li class="active current-menuitem"><div class="first-level"><div class="active"><span class="navmenu-icon img-icon navmenu-icon__sidemenu-icon left-sidemenu-icon"><i class="fa-regular fa-code"/></span><span class="pages-nav__active-text">代码示例</span></div></div></li><li class=""><label class="tree-toggle nav-header first-level"><span class="nested-content-menuitem"><span class="navmenu-icon img-icon navmenu-icon__sidemenu-icon left-sidemenu-icon"><i class="fa-regular fa-graduation-cap fa-flip-horizontal"/></span><span class="nested-content-menuitem__text">教程</span> </span><i class="fa fa-caret-down visible"/></label><ul class="nav nav-list tree"><li class=""><a class="js-code-explorer-item-another" href="/zh/tutorials/html-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">HTML 转 PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/tutorials/dotnet-core-pdf-generating/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在C#中生成PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/tutorials/csharp-edit-pdf-complete-tutorial/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在C#中编辑PDFs</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/tutorials/pdf-viewing/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在MAUI中查看PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/tutorials/what-is-ironpdfengine/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">什么是IronPdfEngine</a></li></ul></li><li class=""><label class="tree-toggle nav-header first-level"><span class="nested-content-menuitem"><span class="navmenu-icon img-icon navmenu-icon__sidemenu-icon left-sidemenu-icon"><i class="fa-regular fa-circle-question"/></span><span class="nested-content-menuitem__text">操作指南</span> </span><i class="fa fa-caret-down visible"/></label><ul class="nav nav-list tree v2-expandable-menu-group"><li class="v2-expandable-menuitem"><i class="fa fa-solid fa-square-plus"/> <span>兼容性</span><ul class="nav nav-list tree v2-expandable-menu-group"><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/installation/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">安装和部署 IronPDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/license-keys/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用许可证密钥</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/windows/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在 Windows 上设置</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/macos/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在macOS上设置</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/linux/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在Linux上安装</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/docker-linux/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在 Docker 上设置</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/azure/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在 Azure 上设置</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/creating-pdfs-csharp-amazon-aws-lambda/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在AWS上设置</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/azure-server/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在Android上设置</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/vb-net-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用VB.NET编程</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/fsharp-pdf-library-html-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用F#编程</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/advanced-installation-nuget/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">特定平台的NuGet包</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/ironpdf-installer/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用 Windows 安装程序</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/ironpdfengine-docker/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">托管您自己的IronPDF容器</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/pull-run-ironpdfengine/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">拉取并运行IronPdfEngine</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/host-ironpdfengine/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在云上托管 IronPdfEngine</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/use-ironpdfengine/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用IronPdfEngine</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/openai/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">OpenAI for PDF</a></li></ul></li><li class="v2-expandable-menuitem"><i class="fa fa-solid fa-square-plus"/> <span>生成PDF</span><ul class="nav nav-list tree v2-expandable-menu-group"><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/html-string-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">从HTML字符串生成PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/html-file-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">从HTML文件生成PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/url-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">从URL生成PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/aspx-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">从ASPX页面生成PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/xaml-to-pdf-maui/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">XAML 转 PDF(MAUI)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/razor-to-pdf-blazor-server/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Razor生成PDF(Blazor服务器)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/cshtml-to-pdf-razor/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">CSHTML转PDF(Razor页面)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/cshtml-to-pdf-mvc-core/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">CSHTML 转 PDF (MVC Core)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/cshtml-to-pdf-mvc-framework/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">CSHTML 转 PDF (MVC 框架)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/cshtml-to-pdf-razor-headlessly/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">CSHTML 转 PDF(无头模式)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/image-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">图像转PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/rasterize-pdf-to-images/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">从PDF提取图像</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/docx-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">将DOCX转换为PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/rtf-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">将RTF转换为PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/md-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">将MD转换为PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/xml-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">将XML转换为PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/pdf-to-html/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">PDF转HTML</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/rendering-options/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">渲染选项</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/table-of-contents/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">添加目录</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/csharp-pdf-reports/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">生成PDF报告</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/blazor-tutorial/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在Blazor服务器中创建PDF文件</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/utf-8/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">支持UTF-8和国际语言</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/base-urls/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">基本URL和资产编码</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/logins/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">TLS 网站和系统登录</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/async/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">异步与多线程</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/custom-logging/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">自定义日志</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/cookies/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Cookies</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/ironpdf-2021-chrome-rendering-engine-eap/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Chrome PDF 渲染引擎</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/render-webgl/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">渲染WebGL网站</a></li></ul></li><li class="v2-expandable-menuitem"><i class="fa fa-solid fa-square-plus"/> <span>格式化PDFs</span><ul class="nav nav-list tree v2-expandable-menu-group"><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/pixel-perfect-html-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用 Chrome 调试 HTML</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/html-to-pdf-responsive-css/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">CSS(屏幕和打印)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/add-images-to-pdfs/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">图像(jpg、png、svg、gif等)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/javascript-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">JavaScript(自定义渲染延迟)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/waitfor/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用WaitFor延迟PDF渲染</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/webfonts-webicons/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">字体(Web和图标)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/SVGs/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用SVG图形</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/page-numbers/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">添加页码</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/html-to-pdf-page-breaks/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">分页符</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/viewport-zoom/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">适应纸张 & 缩放</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/custom-margins/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">设置自定义边距</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/custom-paper-size/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">自定义纸张大小</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/page-orientation-rotation/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">方向与旋转</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/color-grayscale/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">灰度</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/datauris/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">嵌入图像与DataURIs</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/images-azure-blob-storage/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">从Azure Blob存储中嵌入图像</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/pdfa/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在C#中导出PDF/A格式文档</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/pdfua/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在C#中导出PDF/UA格式文档</a></li></ul></li><li class="v2-expandable-menuitem"><i class="fa fa-solid fa-square-plus"/> <span>编辑PDF</span><ul class="nav nav-list tree v2-expandable-menu-group"><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/export-save-pdf-csharp/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">保存和导出 PDF 文档</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/pdf-memory-stream/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">加载和导出PDF到内存</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/pdf-permissions-passwords/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">设置PDF密码和权限</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/metadata/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">设置与编辑元数据</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/signing/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">签署PDFs</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/sanitize-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">清理PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/pdf-compression/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">PDF压缩</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/revision-history/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">编辑和签署修订历史</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/add-copy-delete-pages-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">添加、复制和删除PDF页面</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/merge-or-split-pdfs/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">合并或拆分PDF文件</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/rotating-text/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">旋转文本和页面</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/transform-pdf-pages/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">转换 PDF 页面</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/csharp-parse-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在 C# 中解析 PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/pdf-image-flatten-csharp/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">平展PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/split-multipage-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">拆分多页PDF</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/annotations/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">添加和编辑注释</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/add-remove-attachments/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">添加和删除附件</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/bookmarks/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">大纲和书签</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/manage-fonts/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">管理字体</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/draw-text-and-bitmap/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">绘制文本和位图</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/draw-line-and-rectangle/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">绘制线条和矩形</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/find-replace-text/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">替换PDF中的文本</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/headers-and-footers/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">添加页眉和页脚</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/stamp-text-image/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">文本和图像加盖印章</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/custom-watermark/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">自定义水印</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/background-foreground/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">背景和前景</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/create-forms/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">创建PDF表单</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/edit-forms/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">填写和编辑PDF表单</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/print-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">打印到物理打印机</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/extract-text-and-images/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">提取文本和图像</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/how-to/redact-text/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">删除文本和区域</a></li></ul></li></ul></li><li class=""><label class="tree-toggle nav-header first-level"><span class="nested-content-menuitem"><span class="navmenu-icon img-icon navmenu-icon__sidemenu-icon left-sidemenu-icon"><i class="fa-regular fa-wrench"/></span><span class="nested-content-menuitem__text">故障排除</span> </span><i class="fa fa-caret-down visible"/></label><ul class="nav nav-list tree v2-expandable-menu-group"><li class="v2-expandable-menuitem"><i class="fa fa-solid fa-square-plus"/> <span>联系技术支持</span><ul class="nav nav-list tree v2-expandable-menu-group"><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/engineering-request-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">如何提出IronPDF的工程支持请求</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/engineering-support-for-ironpdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">获得IronPDF的最佳支持</a></li></ul></li><li class="v2-expandable-menuitem"><i class="fa fa-solid fa-square-plus"/> <span>部署</span><ul class="nav nav-list tree v2-expandable-menu-group"><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/visual-c-redistributable-for-visual-studio-ironpdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">适用于 Visual Studio 的 Visual C++ 可再发行组件</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/aws-lambda-amazon-linux-2/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">AWS Lambda / Amazon Linux 2</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironcefsubprocess/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronCefSubprocess</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/debugging-azure-functions-on-local-machine-ironpdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在本地机器上调试 Azure Functions 项目</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/libcef-dll-203/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Windows Nano Server / Servercore 在 .Net6 中不支持 System.Drawing</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-runtimes-folder/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPDF Runtimes 文件夹</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/adding-ironpdf-to-a-software-program-installer/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">将IronPDF添加到软件程序安装程序中</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/red-hat-enterprise-linux-support/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Red Hat 企业 Linux (RHEL) 支持</a></li></ul></li><li class="v2-expandable-menuitem"><i class="fa fa-solid fa-square-plus"/> <span>常见问题</span><ul class="nav nav-list tree v2-expandable-menu-group"><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/bootstrap-flex-css/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Bootstrap / Flex / CSS</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/azure/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Azure计划和层级</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/initial-render-slow/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">初始渲染较慢</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/font-kerning/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">字体字距调整</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/windows-server-support/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Windows 服务器支持</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/what-version-of-ironpdf-should-i-use/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">我应该使用哪个版本的IronPDF?</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/package-size-ironpdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPDF包大小</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/fonts/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">字体</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/quick-ironpdf-troubleshooting/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">快速解决IronPDF问题</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-performance-assistance/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPDF 性能帮助</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/azure-log-files/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Azure日志文件</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/aws-log-files/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">AWS日志文件</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/render-delay-timeout/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">渲染延迟和超时</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/imagetopdf-file-size/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用 ImageToPDF 生成大输出文件</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/memory-leak-in-ironpdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPDF中的内存泄漏</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/log4j/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Log4j</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/convert-pdf-to-base64/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">将 PDF 转换为 Base64</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-security-cve/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPDF - 安全 CVE</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-using/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPDF 'using' 声明</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-blank-hyperlinks-open-in-same-browser-tab/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPDF - 在PDF中的_blank超链接在同一浏览器标签页中打开</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/pdf-version/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">PDF文件版本</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-slim/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPdf.Slim</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-linux/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPdf.Linux</a></li></ul></li><li class="v2-expandable-menuitem"><i class="fa fa-solid fa-square-plus"/> <span>疑难解答指南</span><ul class="nav nav-list tree v2-expandable-menu-group"><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/apply-a-license-key-in-ironpdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在IronPDF中应用许可密钥</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/pixel-perfect-html-formatting/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">像素完美的HTML格式化</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/blob-storage/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Azure Blob 存储</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/blazor-server-webassembly-wasm/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">Blazor 服务器 / WebAssembly (WASM)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/digital-signatures/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">数字签名</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/headers-footers-page-breaks/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">页眉/页脚和分页符</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/international-languages-and-cmjk/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">国际语言和CMJK</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-and-iis/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPDF 和 IIS</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/kerberos/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">克罗伯洛斯</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/metadata-visibility/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">元数据可见性</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/print-from-network-printer/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">从网络打印机打印</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/rasterize-to-image-using-memorystream/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用内存流光栅化为图像</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/render-view-to-string/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">渲染视图为字符串</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/system-drawing-common-ironpdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">System.Drawing.Common 替代方案(.NET 7 及非 Windows)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/table-headers/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">表头</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/use-readytorun/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">使用ReadyToRun编译</a></li></ul></li><li class="v2-expandable-menuitem"><i class="fa fa-solid fa-square-plus"/> <span>异常消息</span><ul class="nav nav-list tree v2-expandable-menu-group"><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/access-to-the-path-global-ironsoftwaredeploymentglobal-is-denied/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">拒绝访问路径'Global-IronSoftwareDeploymentGlobal'</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/502-bad-gateway/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">502 错误网关</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/error-while-deploying-chrome-dependencies/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">部署Chrome依赖项时出错</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/error-while-deploying-pdfium-dependencies/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">部署 Pdfium 依赖项时出错</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/error-while-opening-document-from-bytes-bad-allocation/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">从字节打开文档时出错:“错误分配”</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/failed-to-deploy-nuget-package/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">无法部署NuGet包</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/gpu-process-isnt-usable/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">GPU进程不可用</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/invalid-cefexecuteprocess-return-code-of-0/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">无效的CefExecuteProcess返回代码0</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-can-not-open-parse-a-specific-pdf-file/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPDF 无法打开/解析特定的 PDF 文件</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-native-exception/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPDF Native Exception</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/ironpdf-assembly-version-mismatch-exception/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">IronPdfAssemblyVersionMismatchException</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/network-service-crashed-restarting-service/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">网络服务崩溃,正在重启服务</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/no-function-was-found-setlogevent-127/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">未找到名为SetLogEvent的函数,错误代码(127)</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/registry-is-not-supported-on-this-platform/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">本平台不支持注册表</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/timeout-while-rendering-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">渲染PDF时超时</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/unhandled-case-for-adaptiverenderengine/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">AdaptiveRenderEngine未处理的案例</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/troubleshooting/license-key-web.config/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">在Web.config中设置许可证密钥</a></li></ul></li></ul></li><li class=""><label class="tree-toggle nav-header first-level"><span class="nested-content-menuitem"><span class="navmenu-icon img-icon navmenu-icon__sidemenu-icon left-sidemenu-icon"><i class="fa-regular fa-arrows-rotate"/></span><span class="nested-content-menuitem__text">产品更新</span> </span><i class="fa fa-caret-down visible"/></label><ul class="nav nav-list tree"><li class=""><a class="js-code-explorer-item-another" href="/zh/product-updates/changelog/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">更新日志</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/product-updates/milestones/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">里程碑</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/product-updates/milestones-chrome-rendering/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">里程碑: Chrome 渲染</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/product-updates/milestones-pdfium-dom/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">里程碑:PDFium DOM</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/product-updates/milestones-compatibility/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">里程碑:兼容性</a></li><li class=""><a class="js-code-explorer-item-another" href="/zh/product-updates/milestones-stability-performance/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title" data-code-explorer-item-class="active">里程碑:稳定性和性能</a></li></ul></li><li class=""><div class="first-level"><a href="/object-reference/api/" target="__blank"><span class="navmenu-icon img-icon navmenu-icon__sidemenu-icon left-sidemenu-icon"><i class="fa-kit fa-plugconnect"/></span><div class="flex-grow-1">API文档</div><i class="fa fas fa-external-link-square-alt visible"/></a></div></li></ul></div></div></div></aside></div><div class="col-12 col-md-9 two-columns-content"><div class="js-code-explorer code-explorer"><div class="code-explorer__background-wrapper"><div class="code-explorer__navigation-wrapper code-explorer__navigation-wrapper__accordion-navigation"><div class="js-code-explorer-navigation code-explorer__navigation"><div class="js-code-explorer-navigation-content code-explorer__navigation-content"><div class="code-explorer__navigation-group"><div class="code-explorer__navigation-group__wrapper code-explorer__navigation-group__wrapper_active"><button class="js-code-explorer-toggle-class-button code-explorer__navigation-group-title code-explorer__navigation-group-title_active" data-toggle-class-id="code-explorer__navigation-group_生成pdf" data-toggle-class-name="code-explorer__navigation-group-title_active">生成PDF</button><div class="js-code-explorer-toggle-class-target code-explorer__navigation-group-items code-explorer__navigation-group-items_active code-explorer__navigation-group-items_active code-explorer__navigation-group-items_active code-explorer__navigation-group-items_active" data-toggle-class-id="code-explorer__navigation-group_生成pdf" data-toggle-class-name="code-explorer__navigation-group-items_active"><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="HTML 转 PDF"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">HTML 转 PDF<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/file-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="file-to-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">HTML文件转PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item code-explorer__navigation-group-item_active" href="/zh/examples/using-html-to-create-a-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="using-html-to-create-a-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">HTML字符串转PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/converting-a-url-to-a-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="converting-a-url-to-a-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">URL 到 PDF</a></div></div><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="内容页面转PDF"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">内容页面转PDF<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/xaml-to-pdf-maui/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="xaml-to-pdf-maui" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">XAML 转 PDF(MAUI) </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/razor-to-pdf-blazor-server/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="razor-to-pdf-blazor-server" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">Razor生成PDF(Blazor服务器) </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/cshtml-to-pdf-razor/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="cshtml-to-pdf-razor" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">CSHTML转PDF(Razor页面) </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/cshtml-to-pdf-mvc-core/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="cshtml-to-pdf-mvc-core" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">CSHTML 转 PDF (MVC Core) </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/cshtml-to-pdf-mvc-framework/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="cshtml-to-pdf-mvc-framework" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">CSHTML 转 PDF (MVC 框架) </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/rendering-aspx-pages-as-pdfs/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="rendering-aspx-pages-as-pdfs" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">ASPX 页面转 PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/aspx-to-pdf-settings/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="aspx-to-pdf-settings" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">ASPX页面到PDF设置 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/angular-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="angular-to-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">Angular.JS 转 PDF</a></div></div><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="将文件转换为PDF"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">将文件转换为PDF<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/create-blank-page/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="create-blank-page" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">创建空白页 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/image-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="image-to-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">图像转换为PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/rasterize-a-pdf-to-images/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="rasterize-a-pdf-to-images" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">C# PDF转换为图像代码示例(无损失质量) </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/docx-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="docx-to-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">DOCX 转 PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/convert-rtf-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="convert-rtf-to-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">RTF 转 PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/markdown-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="markdown-to-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">Markdown转PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/multi-frame-tiff-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="multi-frame-tiff-to-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">支持多页的TIFF转PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/pdf-to-html/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="pdf-to-html" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">PDF转HTML</a></div></div><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="支持"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">支持<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/unicode/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="unicode" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">Unicode 和 UTF-8 支持 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/async/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="async" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">异步 PDF 生成 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/threading/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="threading" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">多线程生成 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/parallel/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="parallel" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">并行PDF生成 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/set-temp-path/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="set-temp-path" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">设置临时PDF文件路径 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/embed-image-base64/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="embed-image-base64" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">嵌入位图和图像 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/ironpdf-website-and-system-logins/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="ironpdf-website-and-system-logins" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">TLS 网站和系统登录</a></div></div></div></div></div><div class="code-explorer__navigation-group"><div class="code-explorer__navigation-group__wrapper"><button class="js-code-explorer-toggle-class-button code-explorer__navigation-group-title" data-toggle-class-id="code-explorer__navigation-group_格式化pdfs" data-toggle-class-name="code-explorer__navigation-group-title_active">格式化PDFs</button><div class="js-code-explorer-toggle-class-target code-explorer__navigation-group-items" data-toggle-class-id="code-explorer__navigation-group_格式化pdfs" data-toggle-class-name="code-explorer__navigation-group-items_active"><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="使用HTML资产"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">使用HTML资产<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/javascript-html-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="javascript-html-to-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">在HTML中将JavaScript转为PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/execute-custom-javascript/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="execute-custom-javascript" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">执行自定义JavaScript </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/javascript-message-listener/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="javascript-message-listener" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">JavaScript消息监听器 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/js-charts-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="js-charts-to-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">在PDF中渲染图表 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/google-fonts-htmltopdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="google-fonts-htmltopdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">在HTML到PDF中的自定义字体 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/barcode-htmltopdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="barcode-htmltopdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">在HTML到PDF中添加条形码</a></div></div><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="应用页面模板"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">应用页面模板<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/headers-and-footers/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="headers-and-footers" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">添加经典文本页眉和页脚 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/html-headers-and-footers/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="html-headers-and-footers" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">添加HTML页眉和页脚 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/adding-headers-and-footers-advanced/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="adding-headers-and-footers-advanced" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">在特定页面添加页眉/页脚 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/page-numbers-and-page-breaks/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="page-numbers-and-page-breaks" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">页码和分页符 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/pdf-cover-page/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="pdf-cover-page" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">添加封面页 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/ironpdf-set-custom-margins/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="ironpdf-set-custom-margins" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">设置自定义边距</a></div></div><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="应用页面设置"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">应用页面设置<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/viewport/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="viewport" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">响应式HTML转PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/pdf-generation-settings/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="pdf-generation-settings" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">HTML 渲染设置 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/custom-pdf-paper-size/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="custom-pdf-paper-size" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">自定义PDF尺寸 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/pdf-page-orientation/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="pdf-page-orientation" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">纵向和横向方向 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/csharp-convert-pdf-to-grayscale/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="csharp-convert-pdf-to-grayscale" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">设置为灰度</a></div></div><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="支持PDF标准"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">支持PDF标准<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/pdfua/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="pdfua" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">PDF/UA </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/pdfa/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="pdfa" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">PDF/A</a></div></div></div></div></div><div class="code-explorer__navigation-group"><div class="code-explorer__navigation-group__wrapper"><button class="js-code-explorer-toggle-class-button code-explorer__navigation-group-title" data-toggle-class-id="code-explorer__navigation-group_编辑pdf" data-toggle-class-name="code-explorer__navigation-group-title_active">编辑PDF</button><div class="js-code-explorer-toggle-class-target code-explorer__navigation-group-items" data-toggle-class-id="code-explorer__navigation-group_编辑pdf" data-toggle-class-name="code-explorer__navigation-group-items_active"><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="设置属性和安全"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">设置属性和安全<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/security-and-metadata/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="security-and-metadata" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">密码,安全性和元数据 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/encryption-and-decryption/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="encryption-and-decryption" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">PDF加密与解密 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/digitally-sign-a-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="digitally-sign-a-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">数字签名 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/pdf-compression/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="pdf-compression" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">PDF压缩</a></div></div><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="编辑文档结构"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">编辑文档结构<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/merge-pdfs/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="merge-pdfs" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">合并两个或多个PDF文件 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/split-pdf-pages-csharp/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="split-pdf-pages-csharp" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">拆分PDF并提取页面 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/copy-pdf-page-to-another-pdf-file/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="copy-pdf-page-to-another-pdf-file" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">在PDF文件之间复制页面 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/csharp-remove-page-from-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="csharp-remove-page-from-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">删除特定的PDF页面 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/annotations/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="annotations" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">注解 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/csharp-add-attachment-to-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="csharp-add-attachment-to-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">添加附件 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/bookmarks/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="bookmarks" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">大纲和书签</a></div></div><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="编辑页面内容"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">编辑页面内容<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/csharp-replace-text-in-pdf/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="csharp-replace-text-in-pdf" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">查找和替换 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/editing-pdfs/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="editing-pdfs" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">编辑PDF </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/stamping-html-pdf-multiple/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="stamping-html-pdf-multiple" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">高效添加HTML内容 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/stamping-new-content/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="stamping-new-content" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">标记新内容 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/pdf-watermarking/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="pdf-watermarking" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">水印 </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/backgrounds-and-foregrounds/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="backgrounds-and-foregrounds" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">背景和前景</a></div></div><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="使用PDF表单"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">使用PDF表单<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/form-data/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="form-data" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">PDF表单</a></div></div><div class="code-explorer__navigation-subgroup" data-code-explorer-subgroup-name="查看、读取和打印PDF文件"><div class="code-explorer__navigation-group-item code-explorer__navigation-subgroup__heading-item">查看、读取和打印PDF文件<hr/></div><div class="code-explorer__navigation-subgroup__group-items"><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/paper-printing-pdfs/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="paper-printing-pdfs" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">纸质打印PDFs </a><a class="js-code-explorer-item-button code-explorer__navigation-group-item code-explorer__navigation-subgroup-item" href="/zh/examples/reading-pdf-text/" data-code-explorer-item-group="code-explorer" data-code-explorer-item-id="reading-pdf-text" data-code-explorer-item-active-class="code-explorer__navigation-group-item_active">在C#中阅读PDF文件</a></div></div></div></div></div></div></div></div></div><div class="code-explorer__content"><div class="code-explorer__content-header"><div class="code-explorer__content-title"><h1 class="js-code-explorer-item-replacement code-explorer__content-title-text" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="title">HTML字符串转PDF</h1></div><label class="js-code-explorer-switcher-label code-explorer__switcher" data-code-explorer-switcher-inited-class="code-explorer__switcher_active"><input class="js-code-explorer-switcher code-explorer__switcher-input" type="checkbox" checked="checked" data-code-explorer-switcher-false="vb" data-code-explorer-switcher-true="cs"/> <span class="code-explorer__switcher-text-false">VB </span><span class="code-explorer__switcher-button"/> <span class="code-explorer__switcher-text-true">C#</span></label></div><div class="js-code-explorer-content-body code-explorer__content-body"><div class="code-window__action-buttons-wrapper code-window__action-buttons-wrapper--code-example-page"><button title="点击复制" class="code-window__action-button code-window__action-button--copy js-clipboard-button" data-clipboard-id="code-explorer" data-placement="bottom" data-copy-text="点击复制" data-copied-text="已复制到剪贴板"><i class="fa-kit fa-copy-example"/></button> <button title="全屏模式" class="code-window__action-button code-window__action-button--full-screen js-full-screen-code-example-modal"><i class="fas fa-expand"/></button> <button title="退出全屏" class="code-window__action-button code-window__action-button--exit-full-screen js-exit-full-screen-code-example-modal"><i class="fas fa-compress"/></button></div><pre class="js-code-explorer-code js-clipboard-target js-code-explorer-item-replacement code-explorer__code prettyprint linenums lang-cs" data-code-explorer-language="cs" data-code-explorer-active-class="code-explorer__code_active" data-clipboard-id="code-explorer" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="cs_example" data-code-explorer-item-code="cs">using IronPdf; // Disable local disk access or cross-origin requests Installation.EnableWebSecurity = true; // Instantiate Renderer var renderer = new ChromePdfRenderer(); // Create a PDF from a HTML string using C# var pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>"); // Export to a file or Stream pdf.SaveAs("output.pdf"); // Advanced Example with HTML Assets // Load external html assets: Images, CSS and JavaScript. // An optional BasePath 'C:\site\assets\' is set as the file location to load assets from var myAdvancedPdf = renderer.RenderHtmlAsPdf("<img src='icons/iron.png'>", @"C:\site\assets\"); myAdvancedPdf.SaveAs("html-with-assets.pdf");</pre><pre class="js-code-explorer-code js-clipboard-target js-code-explorer-item-replacement code-explorer__code prettyprint linenums lang-vb" data-code-explorer-language="vb" data-code-explorer-active-class="code-explorer__code_active" data-clipboard-id="code-explorer" data-code-explorer-item-group="code-explorer" data-code-explorer-item-name="vb_example" data-code-explorer-item-code="vb">Imports IronPdf ' Disable local disk access or cross-origin requests Installation.EnableWebSecurity = True ' Instantiate Renderer Dim renderer = New ChromePdfRenderer() ' Create a PDF from a HTML string using C# Dim pdf = renderer.RenderHtmlAsPdf("<h1>Hello World</h1>") ' Export to a file or Stream pdf.SaveAs("output.pdf")
推荐文章
干练的炒粉
·
深圳实验学校(集团)公布中招招生人数
6 月前
火爆的咖啡
·
通过 iTextSharp 实现PDF反转-CSDN博客
7 月前
英姿勃勃的羽毛球
·
唐棠在总文里抢主角nb笔趣阁免费阅读全文 - 唐棠在总文里抢主角nb笔趣阁小说全文完整版 - 御书房
7 月前
打篮球的啄木鸟
·
Autotools Clang Conda :: Anaconda.org
11 月前
鼻子大的柑橘
·
使用MapReduce时的常见问题_云原生大数据计算服务 MaxCompute(MaxCompute)-阿里云帮助中心
1 年前