
URL2PDF ASP.NET PDF Converter

Description
URL2PDF for ASP.NET
Converts HTML websites to PDF instantly using an ASP.NET Class Library and a command-line tool in the background.
- Generate PDF files from Internet pages
- Multiple options provided in the Class Library, in order to encapsulate complexity.
- If your application is hosted, make sure your web host allows running an executable process within the web application. For more information please comment or send me a message before you buy.
Overview
After my research for PDF conversion tools (which is a part of the documentation), I found that one of the best, up-to-date, usable solution that doesn’t cost hundreads of dollars, is wkhtmltopdf.
This is an assembly that wrapps the windows binaries.
Source code and demo project are provided.
Use this for
- creating pdf buttons to convert the current page (with Request.Url.ToString())
- converting a specific internal of external location
- creating a printable version of your site/page in pdf, tweaking the print.css
Version History
v1.1
- changed main method name from OpenPDFfromURL to GenerateAndGetLocation
- changed return value from script tag to relative url only (/pdf/12345.pdf). ”.pdf” extension still already added by method. this requires more code on the front end but enables working with the url as desired. script tags are automatically added by the “true” paremeter of RegisterStartupScript
- included two way example
- auto generation and open (popups may be blocked at first attempt)
- two button. one generates the pdf. another opens the pdf in a new window. no popup issues
- or just open in the same window!
- usage:
string location = pdf.GenerateAndGetLocation();
string script = “window.open(’” + location + ”’, ‘_blank’);”;
ClientScript.RegisterStartupScript(this.GetType(), “pdfscript”, script, true);
or just
ClientScript.RegisterStartupScript(this.GetType(), “pdfscript”, “window.open(’” + pdf.GenerateAndGetLocation()+ ”’, ‘_blank’);”, true);
v1.0
- uses Response.Write to inject javascript
- main method, OpenPDFfromURL, returns a script tag
- usage: Response.Write(pdf.OpenPDFfromURL());
Future improvement areas
- Try to overcome some browsers popup blocking and user action required to enable it
Thirt party application problematic areas
- may show login page if site requires authentication/redirection
- may show blank area for iframes
Help me helping you
If you purchase, please take a brief moment to rate this productExternal listing. code.market does not sell this product and does not process payment for it. Pricing, payment, delivery, licensing, refunds, and support are handled by the third-party merchant on its own website. We may earn an affiliate commission from a referral. Details.
Products of the Week.
Submit🥇
STOP GUESSING WHAT TO POST
AI that learns your brand voice and builds a month of consistent, on-brand social content: carousels, posts and hooks that sound like you, not like everyone else's AI.
SaaS · 4,282 views · 38 clicksSaaS · Week 45 · 4,282 views · 38 clicks
🥈
Conversational Backlinks for Busy Founders
Place Backlink Relevant Conversation for your domain across Forums and Conversations
Website · 41,992 views · 223 clicksWebsite · Week 45 · 41,992 views · 223 clicks
🥉
upvote.club
Free Social Media Engagement that Helps Boost Your Content. Upvote Club supports 19 social networks with 100+ engagement actions in one dashboard. Add links to your posts and get free engagement from real users.
SaaS · 40,034 views · 117 clicksSaaS · Week 45 · 40,034 views · 117 clicks
#4
Substack Posting API
Onboard your Agent to Substack. Write Publish on Substack via API
SaaS · 59,044 views · 198 clicksSaaS · Week 45 · 59,044 views · 198 clicks
#5
Seenshot App
Free, Fast, MacOS Screenshot app. Make Screenshot cmd+shift+2 and send it via link
Desktop App · 28,416 views · 122 clicksDesktop App · Week 45 · 28,416 views · 122 clicks
#6
Hand-Placed Backlinks $9.99 per link. Flat rate.
Buy hand-placed forum, Q-A and directory backlinks. Flat $9.99 per link, no subscriptions — you only pay for approved listings.
Website · 4,252 views · 19 clicksWebsite · Week 45 · 4,252 views · 19 clicks
#7
Free Invoice Generator - PDF Invoices in Your Browser, No Sign-Up
A free invoice maker for freelancers and small businesses: fill in the invoice, check the live preview, and download a PDF that looks exactly like it. Any currency, tax per item, three templates, no sign-up, and nothing leaves your device.
2,930 views · 17 clicksWeek 45 · 2,930 views · 17 clicks
#8
Merge PDF Files Free - Combine PDFs in Your Browser, No Upload
A free PDF merger for office workers, students, and freelancers: combine PDFs and images into one file in the browser, reorder files and pages, pick page ranges, keep bookmarks, and open password-protected PDFs. Nothing is uploaded, no sign-up, no watermark.
2,706 views · 13 clicksWeek 45 · 2,706 views · 13 clicks