添加链接
注册
登录
link管理
链接快照平台
输入网页链接,自动生成快照
标签化管理网页链接
相关文章推荐
年轻有为的茴香
·
Coverity ...
·
1 月前
·
俊秀的灌汤包
·
怎么在Excel中给不足位数的数字前面补0, ...
·
3 月前
·
任性的消炎药
·
Veraction Merges With ...
·
5 月前
·
微醺的墨镜
·
PropertyDescriptor ...
·
5 月前
·
活泼的水煮肉
·
[Question, Feature] ...
·
6 月前
·
link管理
›
PdfiumViewer Print PDF in C# Alternatives (vs IronPDF)
https://ironsoftware.com/csharp/print/blog/compare-to-other-components/pdfiumviewer-print-pdf-in-csharp-alternatives/
温文尔雅的蘑菇
2 月前
</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="/"><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">PRODUCTS<i class="fas fa-caret-down"/></a></li><li><a href="" class="collapseHover" data-bs-target="#collapseMenuEnterprise">ENTERPRISE<i class="fas fa-caret-down"/></a></li><li><a href="" class="collapseHover" data-bs-target="#collapseMenuOpenSource">OPEN SOURCE<i class="fas fa-caret-down"/></a></li><li><a href="" class="collapseHover" data-bs-target="#collapseMenuAboutUs">ABOUT US<i class="fas fa-caret-down"/></a></li><li><a href="/contact-us/" target="_blank" class="">CONTACT US</a></li></ul><div class="titleRight"><div class="d-none d-xl-block iron_address overflow-hidden">205 N. Michigan Ave. Chicago, IL 60601, USA</div><div class="d-block" style="flex:0 1 15px;"/><div class="d-none d-xl-block iron_phone">+1 (312) 500-3060</div><div class="d-block" style="flex:0 1 32px;"/><div class="iron_slack d-none d-lg-block"><a class="d-flex align-items-center" href="/company/iron-slack-community/"><span class="iron_slack_logo d-block"><svg width="14" height="14" viewbox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" class=""><path d="M2.95147 8.85032C2.95147 9.66401 2.29435 10.3217 1.4813 10.3217C0.668258 10.3217 0.0111376 9.66401 0.0111376 8.85032C0.0111376 8.03662 0.668258 7.37898 1.4813 7.37898H2.95147V8.85032ZM3.68655 8.85032C3.68655 8.03662 4.34368 7.37898 5.15672 7.37898C5.96977 7.37898 6.62689 8.03662 6.62689 8.85032V12.5287C6.62689 13.3424 5.96977 14 5.15672 14C4.34368 14 3.68655 13.3424 3.68655 12.5287V8.85032Z" fill="#E01E5A"/><path d="M5.15672 2.94268C4.34368 2.94268 3.68655 2.28503 3.68655 1.47134C3.68655 0.657643 4.34368 0 5.15672 0C5.96977 0 6.62689 0.657643 6.62689 1.47134V2.94268H5.15672ZM5.15672 3.68949C5.96977 3.68949 6.62689 4.34713 6.62689 5.16083C6.62689 5.97452 5.96977 6.63217 5.15672 6.63217H1.47017C0.65712 6.63217 0 5.97452 0 5.16083C0 4.34713 0.65712 3.68949 1.47017 3.68949H5.15672Z" fill="#36C5F0"/><path d="M11.0485 5.16083C11.0485 4.34713 11.7056 3.68949 12.5187 3.68949C13.3317 3.68949 13.9889 4.34713 13.9889 5.16083C13.9889 5.97452 13.3317 6.63217 12.5187 6.63217H11.0485V5.16083ZM10.3134 5.16083C10.3134 5.97452 9.65632 6.63217 8.84328 6.63217C8.03023 6.63217 7.37311 5.97452 7.37311 5.16083V1.47134C7.37311 0.657643 8.03023 0 8.84328 0C9.65632 0 10.3134 0.657643 10.3134 1.47134V5.16083Z" fill="#2EB67D"/><path d="M8.84328 11.0573C9.65632 11.0573 10.3134 11.715 10.3134 12.5287C10.3134 13.3424 9.65632 14 8.84328 14C8.03023 14 7.37311 13.3424 7.37311 12.5287V11.0573H8.84328ZM8.84328 10.3217C8.03023 10.3217 7.37311 9.66401 7.37311 8.85032C7.37311 8.03662 8.03023 7.37898 8.84328 7.37898H12.5298C13.3429 7.37898 14 8.03662 14 8.85032C14 9.66401 13.3429 10.3217 12.5298 10.3217H8.84328Z" fill="#ECB22E"/></svg></span>Join Iron Slack</a></div><div class="d-block" style="flex:0 1 32px;"/><div class="iron_lang-menu d-none d-md-inline"><div class="current-language"><img loading="lazy" class="iron_lang-menu__current-language-img" src="/img/svgs/united-states.svg" alt="English" width="24" height="25"/> <i class="fa fa-caret-down iron_lang-menu__dropdown-menu-arrow"/></div><div class="tooltip language-dropdown-tooltip language-dropdown__header-tooltip bs-tooltip-auto fade show"><div class="tooltip-arrow"/><div class="tooltip-inner"><div class="language-dropdown-tooltip__inner"><div class="language-dropdown-tooltip__select-language-text">Select your Language</div><div class="language-dropdown-tooltip__menuitem"><img loading="lazy" class="menuitem__language-flag" src="/img/svgs/spain.svg" width="24" height="25"/><span class="menuitem__language-name" data-language-code="es">Español</span></div></div></div></div></div></div></div><section id="collapseMenuAboutUs" class="collapse menuCollapse"><div class="wrapper mx-auto justify-content-center" style=""><section class="menu_block"><h2>Our Company</h2><ul class="listing"><li><a href="/about-us/">About Us <i class="fa fa-caret-right"/></a></li><li><a href="/trust-center/">Trust Center <i class="fa fa-caret-right"/></a></li><li><a href="/news/company-news/">Company News <i class="fa fa-caret-right"/></a></li><li><a href="/customers/">Customers <i class="fa fa-caret-right"/></a></li><li><a href="/about-us/ecogrant/">Environmental Commitments <i class="fa fa-caret-right"/></a></li><li><a href="/beta/">Beta Program <i class="fa fa-caret-right"/></a></li><li><a href="/news/company-news/2023-wrap-up/">Year in Review: 2023 <i class="fa fa-caret-right"/></a></li></ul></section><section class="menu_block"><h2>Sales Partners</h2><ul class="listing"><li><a href="/resellers/">Global Resellers <i class="fa fa-caret-right"/></a></li><li><a href="/merchant-of-record/">Merchant of Record <i class="fa fa-caret-right"/></a></li><li><a href="/partners/itconsultancy/">Consulting Partners <i class="fa fa-caret-right"/></a></li><li><a href="/partners/technology/">Technology Partners <i class="fa fa-caret-right"/></a></li><li><a href="/partners/microsoftmvp/">Microsoft MVPs <i class="fa fa-caret-right"/></a></li><li><a href="/partners/affiliate/">Affiliate <i class="fa fa-caret-right"/></a></li></ul></section><section class="menu_block"><h2>Contact Us</h2><ul class="listing"><li><a href="#live-chat-support" onclick="return window.HubSpotConversations.widget.open()"><div class="flex_wrapper"><i class="far fa-comment-alt leading_icon"/><span>Live Chat <i class="fa fa-caret-right"/></span></div></a></li><li><a href="mailto:sales@ironsoftware.com"><div class="flex_wrapper"><i class="far fa-envelope leading_icon"/><span>Send an Email <i class="fa fa-caret-right"/></span></div></a></li></ul><div class="hr"/><div class="address_info"><div class="flex_wrapper"><i class="fa fa-phone-volume leading_icon"/><span>+1 (312) 500-3060</span></div><div class="flex_wrapper"><i class="fa fa-location-dot leading_icon"/><span>205 N. Michigan Ave.<br/>Chicago, IL 60601, USA</span></div></div></section><section class="menu_block"><h2>Careers at Iron</h2><div style=" left:0; right:0; height:204px; bottom:0px;"><div class="careers_image_layer"><img loading="lazy" src="/img/company/about/who_we_are.webp" alt="Join our team" class="img-fluid"/><a href="/careers/" class="button" target="_blank">Join Our Team</a><div class="highlight">We're Hiring</div></div></div></section></div></section><section id="collapseMenuProducts" class="collapse menuCollapse"><div class="wrapper mx-auto justify-content-center" style=""><div class="ironproduct-wrapper"><section class="menu_outer"><a class="menubox" href="https://ironpdf.com" title="Click to view the IronPDF homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironpdf-logo.svg" class="productSymbol" width="130" height="130" alt="ironpdf_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironpdf-text.svg" height="15" alt="ironpdf_logo"/><div class="mainProLn">for <label class="progItem openWebsiteWithDataURL" data-url="https://ironpdf.com">.NET</label></div><div class="break add_margin_top"/><div class="menuProgLn"><label class="progItem openWebsiteWithDataURL" data-url="https://ironpdf.com/java/">Java</label><label class="progItem openWebsiteWithDataURL" data-url="https://ironpdf.com/python/">Python</label><label class="progItem openWebsiteWithDataURL" data-url="https://ironpdf.com/nodejs/">Node.js</label></div></div><div class="textDesc">Create, read, and edit PDFs</div></a></section><section class="menu_outer"><a class="menubox" href="/csharp/word/" title="Click to view the IronWord homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironword-logo.svg" class="productSymbol" width="130" height="130" alt="ironword_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironword-text-without-icon-white.svg" height="15" alt="ironword_logo"/><div class="break_top"/><div class="mainProLn">for <label class="progItem openWebsiteWithDataURL" data-url="/csharp/word/">.NET</label></div></div><div class="textDesc">Edit DOCX Word Files<br/>No Office Interop required</div></a></section><section class="menu_outer"><a class="menubox" href="/csharp/excel/" title="Click to view the IronXL homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironxl-logo.svg" class="productSymbol" width="130" height="130" alt="ironxl_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironxl-text.svg" height="15" alt="ironxl_logo"/><div class="mainProLn">for <label class="progItem openWebsiteWithDataURL" data-url="/csharp/excel/">.NET</label></div><div class="break add_margin_top"/><div class="menuProgLn"><label class="progItem openWebsiteWithDataURL" data-url="/python/excel/">Python</label></div></div><div class="textDesc">Edit Excel & CSV Files.<br/>No Office Interop required</div></a></section><section class="menu_outer"><a class="menubox" href="/csharp/ocr/" title="Click to view the IronOCR homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironocr-logo.svg" class="productSymbol" width="130" height="130" alt="ironocr_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironocr-text.svg" height="15" alt="ironocr_logo"/><div class="mainProLn">for <label class="progItem openWebsiteWithDataURL" data-url="/csharp/ocr/">.NET</label></div></div><div class="textDesc">Image to text in 127 languages</div></a></section><section class="menu_outer"><a class="menubox" href="/csharp/barcode/" title="Click to view the IronBarcode homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironbarcode-logo.svg" class="productSymbol" width="130" height="130" alt="ironbarcode_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironbarcode-text.svg" height="15" alt="ironbarcode_logo"/><div class="break_top"/><div class="mainProLn">for <label class="progItem openWebsiteWithDataURL" data-url="/csharp/barcode/">.NET</label></div></div><div class="textDesc">Read and write Barcodes</div></a></section><section class="menu_outer"><a class="menubox" href="/csharp/qr/" title="Click to view the IronQR homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironqr-logo.svg" class="productSymbol" width="130" height="130" alt="ironqr_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironqr-text.svg" height="15" alt="ironqr_logo"/><div class="mainProLn">for <label class="progItem openWebsiteWithDataURL" data-url="/csharp/qr/">.NET</label></div></div><div class="textDesc">Read & write QR codes with ML detection</div></a></section><section class="menu_outer"><a class="menubox" href="/csharp/zip/" title="Click to view the IronZIP homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironzip-logo.svg" class="productSymbol" width="130" height="130" alt="ironzip_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironzip-text.svg" height="15" alt="ironzip_logo"/><div class="mainProLn">for <label class="progItem openWebsiteWithDataURL" data-url="/csharp/zip/">.NET</label></div></div><div class="textDesc">Zip and unzip archives</div></a></section><section class="menu_outer"><a class="menubox" href="/csharp/print/" title="Click to view the IronPrint homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironprint-logo.svg" class="productSymbol" width="130" height="130" alt="ironprint_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironprint-text.svg" height="15" alt="ironprint_logo"/><div class="break_top"/><div class="mainProLn">for <label class="progItem openWebsiteWithDataURL" data-url="/csharp/print/">.NET</label></div></div><div class="textDesc">Customized Printing of Files</div></a></section><section class="menu_outer"><a class="menubox" href="/csharp/webscraper/" title="Click to view the IronWebScraper homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironwebscraper-logo.svg" class="productSymbol" width="130" height="130" alt="ironwebscraper_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironwebscraper-text.svg" height="15" alt="ironwebscraper_logo"/><div class="break_top"/><div class="mainProLn">for <label class="progItem openWebsiteWithDataURL" data-url="/csharp/webscraper/">.NET</label></div></div><div class="textDesc">Extract structured data from websites</div></a></section></div><div class="suite-offer-wrapper"><section class="menu_outer"><a class="menubox promotionBox" href="/suite/" title="Click to view Iron Suite licensing"><img loading="lazy" class="ironsuite-logo-white" src="/img/products/suite-logo-text-dotnet-large-white-v2.svg" width="154" height="136"/> <img loading="lazy" class="ironsuite-logo-white mobile-view" src="/img/products/suite-logo-text-dotnet-large-white-v3.svg" width="215" height="116"/> <span class="title">All 9 for<br/>the Price of 2 </span><span class="action"><span class="promotionButton">Save 75% with Iron Suite</span></span><div class="position-absolute" style="right:25px; bottom:8px;"><img loading="lazy" src="/img/svgs/teamseas-logo-for-dropdown.svg" alt="Iron Suites - Donate $50" class="img-fluid" width="94" height="36"/></div></a></section></div></div></section><section id="collapseMenuEnterprise" class="collapse menuCollapse"><div class="wrapper mx-auto" style=""><section class="menu_outer"><a class="menubox" href="/enterprise/securedoc/" title="Click to view the IronSecureDoc homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironsecuredoc-logo.svg" class="productSymbol" width="130" height="130" alt="ironsecuredoc_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironsecuredoc-text-without-icon-white.svg" height="15" alt="ironsecuredoc_logo"/></div><div class="textDesc">PDF Security & Compliance</div></a></section></div></section><section id="collapseMenuOpenSource" class="collapse menuCollapse"><div class="wrapper mx-auto" style=""><section class="menu_outer"><a class="menubox" href="/open-source/csharp/drawing/" title="Click to view the IronDrawing homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/irondrawing-logo.svg" class="productSymbol" width="130" height="130" alt="irondrawing_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/irondrawing-text-without-icon-white_2.svg" height="15" alt="irondrawing_logo"/><div class="mainProLn">for <label class="progItem openWebsiteWithDataURL" data-url="/open-source/csharp/drawing/">.NET</label></div></div><div class="textDesc">System.Drawing.Common Replacement</div></a></section><section class="menu_outer"><a class="menubox" href="/open-source/csharp/free-tools/json-to-csharp-converter/" title="Click to view the IronFreeTools homepage"><div class="productLogo"><img loading="lazy" src="/img/svgs/navbar/ironfreetools-logo.svg" class="productSymbol" width="130" height="130" alt="ironfreetools_logo"/><div class="shadow_overlay"/></div><div class="productLogoText d-flex flex-row align-items-end"><img loading="lazy" src="/img/products/ironfreetools-text-without-icon-white-text.svg" height="15" alt="ironfreetools_logo"/></div><div class="textDesc">Free Software Development Tools</div></a></section></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="productLogoWrapper d-flex align-items-end dropdown-center"><div><a href="/csharp/print/" title="Click to view the IronPrint homepage"><img loading="lazy" src="/img/products/ironprint-logo-text-dotnet.svg" alt="IronPrint Homepage" width="auto" height="34"/></a></div></div><div class="flex-grow-1"/><div><ul class="devMenu"><li class="devHomeMenu"><a href="/csharp/print/" title="Home" class="item active">Home</a></li><li id="header-navbar-white-item-licensing"><div class="menuGroup"><a href="/csharp/print/licensing/" title="Licensing" class="item text-nowrap">Licensing<i class="fas fa-angle-down arrow"/></a><ul class="menuDropDown"><li id="header-navbar-white-item-buy-license"><a class="" href="/csharp/print/licensing/"><span class="iwrap"><i class="fa-kit fa-licensing"/></span>Licensing</a></li><li id="header-navbar-white-item-eula"><a class="" href="/csharp/print/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>EULA</a></li><li id="header-navbar-white-item-support-n-update"><a class="" href="/csharp/print/licensing/extensions/"><span class="iwrap"><i class="fa-kit fa-support"/></span>Support & Update Extensions</a></li><li id="header-navbar-white-item-license-upgrade"><a class="" href="/csharp/print/licensing/upgrades/"><span class="iwrap"><i class="fa-kit fa-upgrades"/></span>License Upgrades</a></li><li id="header-navbar-white-item-how-to-use-license"><a class="" href="/csharp/print/how-to/license-keys/"><span class="iwrap"><i class="fa-regular fa-circle-question"/></span>How to Use License Keys</a></li><li class="free-trial" id="header-navbar-white-item-license-trial"><a class="js-modal-open" href="/csharp/print/#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>Start Free Trial</a></li></ul></div></li><li id="header-navbar-white-item-docs"><div class="menuGroup"><a href="/csharp/print/docs/" title="Docs" class="item text-nowrap">Docs<i class="fas fa-angle-down arrow"/></a><ul class="menuDropDown"><li id="header-navbar-white-item-get-started"><a class="" href="/csharp/print/docs/"><span class="iwrap"><i class="fa-regular fa-rocket-launch"/></span>Get Started</a></li><li id="header-navbar-white-item-code-examples"><a class="" href="/csharp/print/examples/print/"><span class="iwrap"><i class="fa-regular fa-code"/></span>Code Examples</a></li><li id="header-navbar-white-item-tutorials"><a class="" href="/csharp/print/tutorials/print-document/"><span class="iwrap"><i class="fa-regular fa-graduation-cap fa-flip-horizontal"/></span>Tutorials</a></li><li id="header-navbar-white-item-faqs"><a class="" href="/csharp/print/how-to/license-keys/"><span class="iwrap"><i class="fa-regular fa-circle-question"/></span>How-Tos</a></li><li id="header-navbar-white-item-troubleshooting"><a class="" href="/csharp/print/troubleshooting/engineering-request-print/"><span class="iwrap"><i class="fa-regular fa-wrench"/></span>Troubleshooting</a></li><li id="header-navbar-white-item-changelog"><a class="" href="/csharp/print/product-updates/changelog/"><span class="iwrap"><i class="fa-regular fa-arrows-rotate"/></span>Product Updates</a></li><li class="api-ref" id="header-navbar-white-item-api-reference"><a class="" href="/csharp/print/object-reference/api/" target="_blank"><span class="iwrap"><i class="fa-kit fa-plugconnect"/></span>API Reference <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">Search</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"><a id="header-navbar-white-cta-button" class="js-modal-open btn btn-red btn--twolines text-nowrap w-100 vwo-homepage-start-trial-cta-button--control" href="https://www.nuget.org/packages/IronPrint/" target="_blank" data-modal-id="trial-license-after-download" title="Click to view IronPrint on NuGet website"><i class="nuget-icon-white2"/> <span>Free NuGet Download</span><span class="header-navbar-white-cta-button--total-download"><span class="vwo-cta-total-downloads-wording">Total downloads: </span>6,171</span></a><div class="download_button_2407__wrapper"><a class="download_button_2407__button js-modal-open" href="https://www.nuget.org/packages/IronPrint/" data-modal-id="trial-license-after-download" target="_blank"><span class="download_button_2407__main_icon_wrapper"><i class="fa-kit fa-nuget"/></span> Start for Free<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/IronPrint/" data-modal-id="trial-license-after-download"><span class="download_button_2407__icon_wrapper"><i class="fa-kit fa-nuget"/></span> NuGet Download </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>Start Free Trial</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"><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="/csharp/print/" title="IronPrint"><img loading="lazy" src="/img/products/ironprint-text-without-icon-black.svg" alt="IronPrint Homepage" height="16"/><div class="textFor">for</div><div class="pLang">.NET</div></a></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="/" title="Click to view the Iron Software homepage">IRONSOFTWARE <em>HOME</em></a></li><li><div class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#collapseProducts" aria-expanded="false" aria-controls="collapseProducts">PRODUCTS</div><ul id="collapseProducts" class="collapse layer2" data-bs-parent="#accordionProductGroup"><li><a href="/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="https://ironpdf.com/" class="productname" title="Click to view the IronPDF homepage"><div>IRON<span style="color:#e01a59;">PDF</span></div><div class="badge update">UPDATED</div></a></li><li><a href="/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="/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="/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="/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="/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="/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="/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="/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">ENTERPRISE</div><ul id="collapseEnterprise" class="layer2 collapse" data-bs-parent="#accordionProductGroup"><li><a href="/enterprise/securedoc/" class="productname" title="Click to view the IronSECUREDOC homepage"><div>IRON<span style="color:#ef5214;">SECUREDOC</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">OPEN SOURCE</div><ul id="collapseOpenSource" class="layer2 collapse" data-bs-parent="#accordionProductGroup"><li><a href="/open-source/csharp/drawing/docs/" class="productname" title="Click to view the IronDRAWING homepage"><div>IRON<span style="color:#63C1A0;">DRAWING</span></div></a></li><li><a href="/open-source/csharp/free-tools/json-to-csharp-converter/" class="productname" title="Click to view the IronFREETOOLS homepage"><div>IRON<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">ABOUT US</div><ul id="collapseAboutUs" class="layer2 collapse" data-bs-parent="#accordionProductGroup"><li><a href="/about-us/" title="Click to view the About Us page"><div>About Us</div></a></li><li><a href="/news/company-news/" title="Click to view the company news page"><div>Company News</div></a></li><li><a href="/customers/" title="Click to view the customers page"><div>Customers</div></a></li><li><a href="/about-us/ecogrant/" title="Click to view the environmental commitments page"><div>Environmental Commitments</div></a></li><li><a href="/beta/" title="Click to view the beta program page"><div>Beta Program</div></a></li><li><a href="/news/company-news/2023-wrap-up/" title="Click to view the year in review 2023 page"><div>Year in Review: 2023</div></a></li><li><a href="/#live-chat-support" title="Chat with our team" onclick="return window.HubSpotConversations.widget.open()"><div>Live Chat</div></a></li><li><a href="/resellers/" title="Click to view global resellers page"><div>Global Resellers</div></a></li><li><a href="/careers/" title="Click to view careers page"><div>Join our team</div></a></li></ul></li><li><a href="/contact-us/" title="Click to view the contact us page">CONTACT US</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="/csharp/print/" class="item"><span class="iwrap"><i class="fa-regular fa-home"/></span>HOME</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>LICENSING</div><ul id="collapse-1" class="collapse layer2" data-bs-parent="#accordionDevGroup"><li><a class="" href="/csharp/print/licensing/"><span class="iwrap"><i class="fa-kit fa-licensing"/></span>Licensing</a></li><li><a class="" href="/csharp/print/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>EULA</a></li><li><a class="" href="/csharp/print/licensing/extensions/"><span class="iwrap"><i class="fa-kit fa-support"/></span>Support & Update Extensions</a></li><li><a class="" href="/csharp/print/licensing/upgrades/"><span class="iwrap"><i class="fa-kit fa-upgrades"/></span>License Upgrades</a></li><li><a class="" href="/csharp/print/how-to/license-keys/"><span class="iwrap"><i class="fa-regular fa-circle-question"/></span>How to Use License Keys</a></li><li><hr/></li><li><a class="js-modal-open" href="/csharp/print/#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>Start Free Trial</a></li></ul></li><li><div class="accordion-button collapsed" data-bs-toggle="collapse" data-bs-target="#collapse-2" aria-expanded="false" aria-controls="collapseProducts"><span class="iwrap"><i class="fa-regular fa-book"/></span>DOCS</div><ul id="collapse-2" class="collapse layer2" data-bs-parent="#accordionDevGroup"><li><a class="" href="/csharp/print/docs/"><span class="iwrap"><i class="fa-regular fa-rocket-launch"/></span>Get Started</a></li><li><a class="" href="/csharp/print/examples/print/"><span class="iwrap"><i class="fa-regular fa-code"/></span>Code Examples</a></li><li><a class="" href="/csharp/print/tutorials/print-document/"><span class="iwrap"><i class="fa-regular fa-graduation-cap fa-flip-horizontal"/></span>Tutorials</a></li><li><a class="" href="/csharp/print/how-to/license-keys/"><span class="iwrap"><i class="fa-regular fa-circle-question"/></span>How-Tos</a></li><li><a class="" href="/csharp/print/troubleshooting/engineering-request-print/"><span class="iwrap"><i class="fa-regular fa-wrench"/></span>Troubleshooting</a></li><li><a class="" href="/csharp/print/product-updates/changelog/"><span class="iwrap"><i class="fa-regular fa-arrows-rotate"/></span>Product Updates</a></li><li><hr/></li><li><a class="" href="/csharp/print/object-reference/api/" target="_blank"><span class="iwrap"><i class="fa-kit fa-plugconnect"/></span>API Reference <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="Search the API, code examples, and tutorials"/></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="ironprint"/></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="Message icon"/></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 class="banner banner--padding-30 banner__product-home-top-image--left-ironprint banner__blog-header-w-code-example"><div class="row mx-auto container-fluid banner__container_margin-bottom banner__container--padding-left"><div class="col-12 col-md-5 position-for-dark-mode"><p class="product-homepage-header product-homepage-header--ironprint">The C# Printing Library</p><ul class="list-unstyled banner-list"><li>Highly deployable printing library</li><li>Choose to print with dialog or silent printing</li><li>Built for WebApps, MAUI, Avalonia, and more</li><li>Fully supports .NET 8, 7, 6, Framework, and Core</li></ul><div class="banner__buttons banner__buttons--blog"><a class="btn btn-red btn-red--margin-right-20 blog-explore-cta-ab" href="/csharp/print/">Explore IronPrint <i class="navbar__item-icon fas fa-chevron-right fa-chevron-right--font-size-13"/> </a><a id="page-home-section-banner-cta-button" class="js-modal-open banner__link-white-text btn--twolines" href="https://www.nuget.org/packages/IronPrint/" target="_blank" data-modal-id="trial-license-after-download" title="Click to view IronPrint on NuGet website"><i class="nuget-icon-white2 nuget-icon-white2--top-1"/> <span>Free NuGet Download</span> <i class="navbar__item-icon fas fa-chevron-right fa-chevron-right--font-size-13"/> </a><a class="js-modal-open banner__link-white-text banner__link-white-text--start-free-trial" data-modal-id="trial-license" href="#trial-license"><i class="fas fa-key"/> Start Free Trial</a></div></div><div class="tutorial-examples tutorial-examples--blog col-md-7" id="code-examples"><div class="tutorial-examples__background-linear-gradient"/><div class="examples-box examples-box_margin-left examples-box--ironprint-blog"><div class="hidden col left-bar"><h2 style="font-family: 'Gotham-Black';">Examples</h2><div id="code-dropdown"><select class="selectpicker" data-style="btn-iron" data-width="100%"/></div><div class="nav-side-menu" style="height: 277px;"><i class="fa fa-bars fa-2x toggle-btn" data-toggle="collapse" data-target="#menu-content"/><div class="menu-list"><ul id="menu-content" class="menu-content collapse out" data-collapse-proxy="#code-dropdown select"><li data-code-content="sample-print-settings" data-hash-url="true"><a href="javascript:void(0)">Print Settings</a></li></ul></div></div></div><div class="col right-bar"><div class="code-content lander show" id="sample-print-settings"><div class="code_window add-shadow"><div class="code_window_title"><span style="margin-right: 10px;"><i class="vs-icon2"/> </span><span class="filename" style="margin-left: 0; margin-right: 19px;">Print Settings</span></div><div class="code_window_content"><pre class="prettyprint linenums lang-cs"><code>using IronPrint; // Configure print setting PrintSettings printSettings = new PrintSettings(); printSettings.Dpi = 150; printSettings.NumberOfCopies = 2; printSettings.PaperOrientation = PaperOrientation.Portrait; // Print the document Printer.Print("newDoc.pdf", printSettings);</code></pre></div><div class="code_window_bottom"/></div><div class="copy-nuget-section copy-nuget-section--blog-ab-test" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Click to copy" data-bs-custom-class="tooltipCopyToClipboardWhite" data-copy-text="Click to copy" data-copied-text="Copied to clipboard"><div class="copy-nuget-row vwo-nuget-copy"><div class="nuget-icon-continaer"><a id="js-nuget-icon-continaer" class="nuget-icon-continaer__link js-modal-open" href="https://www.nuget.org/packages/IronPrint" target="_blank" title="Visit IronPrint NuGet Page" data-modal-id="trial-license-after-download"><img src="https://img.shields.io/nuget/dt/IronPrint?style=flat&logo=nuget&label=Downloads&labelColor=4D4D4D&color=4382BF&cacheSeconds=432000" alt="" loading="lazy" class="nuget-icon-continaer__nuget-badge"/></a></div><pre class="install-script install-script--product-homepage">Install-Package IronPrint</pre><div class="copy-button text-end"><button class="btn btn-default copy-nuget-script" type="button" data-toggle="popover" data-placement="bottom" data-content="Copy the Package Manager command" aria-label="Copy the Package Manager command" data-original-title="" title=""><span class="fas copy-icon-white"/></button></div></div></div></div></div></div></div><img loading="lazy" class="add-shadow banner__product-home-top-image banner__product-home-top-image--right-ironprint" src="/img/products/ironprint-hero-symbol.svg" alt="IronPrint"/></div></div></header><main class="product page_blog_post"><section class="section_header"><div class="container-fluid"><ol class="breadcrumb"><li class="breadcrumb-item"><a href="/csharp/print/">IronPrint</a></li><li class="breadcrumb-item"><a href="/csharp/print/blog/">IronPrint Blog</a></li><li class="breadcrumb-item"><a href="/csharp/print/blog/compare-to-other-components/">Compare To Other Components</a></li><li class="breadcrumb-item active">PdfiumViewer Print PDF in C#</li></ol></div></section><div class="container-fluid"><div class="row g-5"><div class="col-12 col-md-8"><div class="blog_category_name">PRODUCT COMPARISONS</div><h1>PdfiumViewer Print PDF in C# (Alternative Tutorial)</h1><div class="d-flex my-4 gap-3 align-items-center"><div class="blog_date flex-grow-1">Updated November 13, 2023</div><div class="d-flex blog_social_icons align-items-center"><div class="text">Share:</div><div class="icon"><a href="https://www.facebook.com/sharer/sharer.php?u=https://ironsoftware.com/csharp/print/blog/compare-to-other-components/pdfiumviewer-print-pdf-in-csharp-alternatives/" title="Share on Facebook" target="_blank"><i class="fa-brands fa-facebook"/></a></div><div class="icon"><a href="https://twitter.com/intent/tweet?url=https://ironsoftware.com/csharp/print/blog/compare-to-other-components/pdfiumviewer-print-pdf-in-csharp-alternatives/" title="Share on Twitter (X Platform)" target="_blank"><i class="fa-brands fa-x-twitter"/></a></div><div class="icon"><a href="https://www.linkedin.com/sharing/share-offsite/?url=https://ironsoftware.com/csharp/print/blog/compare-to-other-components/pdfiumviewer-print-pdf-in-csharp-alternatives/" title="Share on Linkedin" target="_blank"><i class="fa-brands fa-linkedin"/></a></div><div class="icon"><a href="https://ironsoftware.com/csharp/print/blog/compare-to-other-components/pdfiumviewer-print-pdf-in-csharp-alternatives/" title="Copy link to share" target="_blank" class="js-copyPageURLToClipboard" data-text-after-clicked="<i class='fa-solid fa-check'></i>"><i class="fa-regular fa-copy"/></a></div></div></div><div class="blog_content" data-bs-spy="scroll" data-bs-target="#blog_right_scrollspy_menu" data-bs-root-margin="0px 0px -75%" data-bs-smooth-scroll="true" tabindex="0"><div class="alert alert-info iron-variant-1" role="alert"><a href="/csharp/print/">IronPrint</a> is Iron Software's brand new .NET printing library, offering compatibility across a wide range of platforms, including Windows, macOS, Android and iOS. <a href="/csharp/print/docs/">Get started with IronPrint</a> now!</div><p>PDF documents play a crucial role in various software applications, including generating invoices, displaying reports, and sharing information. When it comes to working with PDFs in C#, developers have multiple options. This article explores two popular libraries for printing PDFs using Microsoft Print in C#:</p><ul><li>IronPDF</li><li>PDFiumViewer</li></ul><p>Let's delve into their features, and ease of use, and compare their printing capabilities to help you make an informed decision for your next C# project.</p><h2 id="anchor-ironpdf">IronPDF</h2><h3 id="anchor-overview-of-ironpdf">Overview of IronPDF</h3><p><a href="/" target="_blank" rel="nofollow noopener noreferrer">IronPDF</a> is a robust C# library designed for creating, manipulating, and processing PDFs effortlessly. It offers a wide range of features, making it a preferred choice among developers. IronPDF stands out for its ability to</p><ul><li>Convert HTML, CSS, and images to PDF files.</li><li>Generate PDF file document from scratch for the user.</li><li>Edit existing PDFs.</li><li>Support various PDF document elements like images, text, tables, and forms.</li><li>Provide advanced functionalities such as digital signatures, watermarks, and encryption.</li><li>Enable silent printing without any third-party tools or libraries.</li><li>Offer a user-friendly interface and comprehensive documentation.</li></ul><h2 id="anchor-pdfiumviewer">PDFiumViewer</h2><h3 id="anchor-overview-of-pdfiumviewer">Overview of PDFiumViewer</h3><p>PDFiumViewer is another popular option for working with PDFs in C#. Built on top of the open-source PDFium project, it provides a .NET wrapper for its functionality. PDFiumViewer offers:</p><ul><li>The ability to render PDFs and display them in Windows Forms applications.</li><li>Support for navigation, zooming, and text selection within PDF documents.</li><li>A straightforward integration process for Windows Forms projects.</li></ul><h2 id="anchor-installing-ironpdf">Installing IronPDF</h2><p>To start using IronPDF, follow these steps to install it using the NuGet Package Manager in Visual Studio:</p><ol><li><p>Open Visual Studio and create a new Console Application or open an existing one.</p><p><img src="/static-assets/pdf/blog/pdfiumviewer-print-pdf-in-csharp-alternatives/pdfiumviewer-print-pdf-in-csharp-alternatives-1.webp" alt="PdfiumViewer Print PDF in C# (Alternative Tutorial) Figure 1 - New Project- PDFiumViewer Print PDF C#" loading="lazy" class="img-responsive add-shadow img-popup" width="1265" height="842"/></p></li><li>Right-click on the project in the Solution Explorer and select "Manage NuGet Packages."</li><li><p>Switch to the "Browse" tab, search for "IronPDF," and click "Install."</p><p><img src="/static-assets/pdf/blog/pdfiumviewer-print-pdf-in-csharp-alternatives/pdfiumviewer-print-pdf-in-csharp-alternatives-2.webp" alt="PdfiumViewer Print PDF in C# (Alternative Tutorial) Figure 2 - IronPDF Installation" loading="lazy" class="img-responsive add-shadow img-popup" width="1531" height="722"/></p></li></ol><p>With IronPDF successfully installed, we can begin using it for printing PDFs and other PDF document-related tasks. Before that, let's also install PDFiumViewer in our system.</p><h2 id="anchor-installing-pdfiumviewer">Installing PDFiumViewer</h2><p>You can install PDFiumViewer via the NuGet Package Manager as well. Here's how:</p><ol><li><p>Open your Visual Studio project and create a Windows Forms application.</p><p><img src="/static-assets/pdf/blog/pdfiumviewer-print-pdf-in-csharp-alternatives/pdfiumviewer-print-pdf-in-csharp-alternatives-3.webp" alt="PdfiumViewer Print PDF in C# (Alternative Tutorial) Figure 3 - New Project" loading="lazy" class="img-responsive add-shadow img-popup" width="1261" height="846"/></p></li><li><p>Drag a button to the Form and name it "Print PDF".</p><p><img src="/static-assets/pdf/blog/pdfiumviewer-print-pdf-in-csharp-alternatives/pdfiumviewer-print-pdf-in-csharp-alternatives-4.webp" alt="PdfiumViewer Print PDF in C# (Alternative Tutorial) Figure 4 - Print Button" loading="lazy" class="img-responsive add-shadow img-popup" width="802" height="487"/></p></li><li>Right-click on the project in the Solution Explorer and choose "Manage NuGet Packages."</li><li><p>In the "NuGet Package Manager" window, switch to the "Browse" tab, search for "PDFiumViewer" and click "Install."</p><p><img src="/static-assets/pdf/blog/pdfiumviewer-print-pdf-in-csharp-alternatives/pdfiumviewer-print-pdf-in-csharp-alternatives-5.webp" alt="PdfiumViewer Print PDF in C# (Alternative Tutorial) Figure 5 - PDFiumViewer Installation" loading="lazy" class="img-responsive add-shadow img-popup" width="1528" height="721"/></p></li><li><p>Alternatively, to install the PDFium DLL, you can search for "PDFiumViewer.Native" 32-bit or 64-bit, depending on your OS requirements. This DLL is necessary to load PDF files or pages using PDFiumViewer in a Windows Forms application.</p><p><img src="/static-assets/pdf/blog/pdfiumviewer-print-pdf-in-csharp-alternatives/pdfiumviewer-print-pdf-in-csharp-alternatives-6.webp" alt="PdfiumViewer Print PDF in C# (Alternative Tutorial) Figure 6 - PDFiumViewer.Native " loading="lazy" class="img-responsive add-shadow img-popup" width="1502" height="722"/></p></li></ol><p>Once the installation is complete, you can start using PDFiumViewer for printing PDF files and other PDF-related tasks.</p><h2 id="anchor-printing-pdfs-with-ironpdf">Printing PDFs with IronPDF</h2><p><a href="https://ironpdf.com/examples/paper-printing-pdfs/">Printing PDFs</a> using IronPDF is straightforward. Here's the source code example demonstrating how to print a PDF file without a printer name:</p><pre class="naked-code"><code class="language-cs">using IronPdf; var renderer = new ChromePdfRenderer(); PdfDocument pdf = renderer.RenderUrlAsPdf("https://ironpdf.com"); pdf.Print(300, true);</code></pre><div class="code-content code-content-inner"><div class="code_window"><div class="language-selection__content-page-wrapper"/><div class="code_window_content"><div class="code-window__action-buttons-wrapper code-window__action-buttons-wrapper--content-page"><button title="Click to copy" class="code-window__action-button code-window__action-button--copy copy-clipboard" data-copy-text="Click to copy" data-copied-text="Copied to clipboard" data-clipboard-id="code-explorer" data-placement="bottom"><i class="fa-kit fa-copy-example"/></button> <button title="Full Screen Mode" 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="Exit Full Screen" 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="prettyprint linenums lang-cs"><code>using IronPdf; var renderer = new ChromePdfRenderer(); PdfDocument pdf = renderer.RenderUrlAsPdf("https://ironpdf.com"); pdf.Print(300, true);</code></pre><pre class="prettyprint linenums lang-vb"><code>Imports IronPdf Private renderer = New ChromePdfRenderer() Private pdf As PdfDocument = renderer.RenderUrlAsPdf("https://ironpdf.com") pdf.Print(300, True)</code></pre></div><div class="code_window_bottom"><span class="language_selection"><span class="ls-span">VB </span> <span><label class="switch"><input type="checkbox" checked="checked"/> <span class="slider round"/></label> </span><span class="ls-span">C#</span></span></div></div></div><p>In this code example, IronPDF efficiently renders a PDF from a URL and sends it to the default printer for printing. In this case, the string printer is "Microsoft Print to PDF". IronPDF also provides multiple printer settings. You print through a specific printer by setting parameters for the printer name, pages to print, print directly without user interaction, and much more. For more detailed information on advanced printing options, please visit the <a href="https://ironpdf.com/how-to/csharp-print-pdf/" target="__blank"><strong>C# Print PDF Documents</strong></a>.</p><h3 id="anchor-output">Output</h3><p>On executing the project, the Print method displays a print dialog to save the file as PDF. If the default printer is set to the system or actual printer, the document will get printed directly.</p><p><img src="/static-assets/pdf/blog/pdfiumviewer-print-pdf-in-csharp-alternatives/pdfiumviewer-print-pdf-in-csharp-alternatives-7.webp" alt="PdfiumViewer Print PDF in C# (Alternative Tutorial) Figure 7 - Print Dialog" loading="lazy" class="img-responsive add-shadow img-popup" width="1102" height="642"/></p><p>The output saved is a pixel-perfect PDF document:</p><p><img src="/static-assets/pdf/blog/pdfiumviewer-print-pdf-in-csharp-alternatives/pdfiumviewer-print-pdf-in-csharp-alternatives-8.webp" alt="PdfiumViewer Print PDF in C# (Alternative Tutorial) Figure 8 - PDF Output" loading="lazy" class="img-responsive add-shadow img-popup" width="1920" height="1080"/></p><h2 id="anchor-printing-pdfs-with-pdfiumviewer">Printing PDFs with PDFiumViewer</h2><p>While PDFiumViewer excels in rendering and displaying PDFs, it doesn't provide native PDF printing capabilities. To print a PDF document using PDFiumViewer, you'll need to utilize additional third-party drawing tools or libraries. To print directly using PDFiumViewer, we need to use Microsoft's System.Drawing.Printing assembly along with PDFiumViewer library.</p><p>In the following code, first, we load the PDF using the <code>PdfDocument</code> method. Then, we create a printing object called <code>printDocument</code> using the <code>CreatePrintDocument</code> method, which comes from the <code>System.Drawing.Printing</code> namespace. Finally, we use the <code>Print</code> method to send the loaded PDF to the printer for printing.</p><pre class="naked-code"><code class="language-cs">using System.Drawing.Printing; using PdfiumViewer; private void btnPrintPDF_Click(object sender, EventArgs e) string doc = @"C:\assets\input.pdf"; // absolute path with filename var pdf = PdfDocument.Load(doc); var printDocument = pdf.CreatePrintDocument(); printDocument.Print(); }</code></pre><div class="code-content code-content-inner"><div class="code_window"><div class="language-selection__content-page-wrapper"/><div class="code_window_content"><div class="code-window__action-buttons-wrapper code-window__action-buttons-wrapper--content-page"><button title="Click to copy" class="code-window__action-button code-window__action-button--copy copy-clipboard" data-copy-text="Click to copy" data-copied-text="Copied to clipboard" data-clipboard-id="code-explorer" data-placement="bottom"><i class="fa-kit fa-copy-example"/></button> <button title="Full Screen Mode" 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="Exit Full Screen" 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="prettyprint linenums lang-cs"><code>using System.Drawing.Printing; using PdfiumViewer; private void btnPrintPDF_Click(object sender, EventArgs e) string doc = @"C:\assets\input.pdf"; // absolute path with filename var pdf = PdfDocument.Load(doc); var printDocument = pdf.CreatePrintDocument(); printDocument.Print(); }</code></pre><pre class="prettyprint linenums lang-vb"><code>Imports System.Drawing.Printing Imports PdfiumViewer
推荐文章
年轻有为的茴香
·
Coverity CMake构建错误-腾讯云开发者社区-腾讯云
1 月前
俊秀的灌汤包
·
怎么在Excel中给不足位数的数字前面补0,方法二你肯定想不到|字符串|代码_网易订阅
3 月前
任性的消炎药
·
Veraction Merges With Trax Technologies: A Q&A with CEO Chris Connell
5 月前
微醺的墨镜
·
PropertyDescriptor (Java Platform SE 8 )
5 月前
活泼的水煮肉
·
[Question, Feature] How to catch up Map widget zoom event and do some custom action? · Issue #6429 ·
6 月前