- #Gembox word tables double line border conversion pdf how to#
- #Gembox word tables double line border conversion pdf pdf#
- #Gembox word tables double line border conversion pdf code#
- #Gembox word tables double line border conversion pdf trial#
- #Gembox word tables double line border conversion pdf professional#
Get the GemBox.Document Professional for unlimited use
#Gembox word tables double line border conversion pdf trial#
If you want to see how fast and efficient GemBox.Document performs for large files, you can enable Trial mode right from within the free version. You can use the free version for any purpose, including commercial applications. However, the Free version is limited to 20 paragraphs. GemBox.Document Free delivers the same performance and set of features as the Professional version.
#Gembox word tables double line border conversion pdf pdf#
Public Overrides Sub VerifyRenderingInServerForm(control As Control)įor a more detailed example, see Convert Word and HTML to PDF in C# and VB.NET from GemBox.Document Examples.ĭownload the Free Version of GemBox.Document ' Convert ASPX to PDF by exporting, downloading, ' DocumentModel in PDF format from ASP.NET application.Įnd Sub ' Required to avoid the runtime error. Dim html As String = sw.ToString()ĭ(html, LoadOptions.HtmlDefault) ' Render ASPX page as HTML formatted string. AddHandler ComponentInfo.FreeLimitReached, Sub(sen, ev) ev.FreeLimitReachedAction = FreeLimitReachedAction.ContinueAsTrialĮnd Sub Protected Sub Button1_Click(sender As Object, e As EventArgs) ' Continue to use the component in a Trial mode when free limit is reached. ComponentInfo.SetLicense( "FREE-LIMITED-KEY") ' Set license key to use GemBox.Document in a Free mode. Partial Public Class About Inherits Page Protected Sub Page_Load(sender As Object, e As EventArgs)
#Gembox word tables double line border conversion pdf code#
The following code is the content of “” file, the page’s code behind in VB.NET language. public override void VerifyRenderingInServerForm( Control control) Convert ASPX to PDF by exporting, downloading, // DocumentModel in PDF format from ASP.NET application.ĭocument.Save( this.Response, "About.pdf") string html = sw.ToString() ĭocumentModel document = new DocumentModel() ĭ(html, LoadOptions.HtmlDefault)
HtmlTextWriter htw = new HtmlTextWriter(sw) Protected void Button1_Click( object sender, EventArgs e)
ComponentInfo.FreeLimitReached += (sen, ev) => ev.FreeLimitReachedAction = FreeLimitReachedAction.ContinueAsTrial
Set license key to use GemBox.Document in a Free mode. Protected void Page_Load( object sender, EventArgs e) The following code is the content of “” file, the page’s code behind in C# language. ĭuis mattis est quis mauris pulvinar, aliquet mollis dui sagittis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. "Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit." This is required in order to avoid the runtime error when calling Page.Render method. Notice that the page’s “EnableEventValidation” attribute is set to “false”. The following code is the content of “About.aspx” file. The following screenshot shows the resulting PDF file. Notice that it contains a button control (“Convert ASPX page to PDF”) which on click event downloads the PDF file created by converting the page’s ASPX code. The following screenshot shows an ASP.NET web page that is converted to PDF. Then that HTML formatted content is loaded into a new document and that document is written, in PDF format, directly to HttpResponse.OutputStream. This is achieved by using a Page.Render method, in the code behind of the desired page, to obtain ASPX content in HTML format.
#Gembox word tables double line border conversion pdf how to#
The following example demonstrates how to convert an ASP.NET web page (a simple “About.aspx” page) into a PDF format and stream (download) the generated PDF file to client’s browser. So we suggest you download the Free version of GemBox.Document and follow this example with your content to see how it works for your exact needs. Some CSS features like pseudo-elements and floated items might not work perfectly. Any text, lists, tables, images, forms and page layout can be converted to look almost identical to the web page in the browser. GemBox.Document library does a good job of converting most content types from ASPX to HTML and then render it as a PDF file. Navigate to Page Setup with your Word file.Ĭlick + to create a new custom size, call it Borderless or Print PDF Without BorderĬlick the paper size boxes to make it the size you need (Letter is 8.5 x 11 / A4 is 8.3 x 11.When you need to convert ASPX web pages to PDF files within your application, the easiest way to get the job done is to use a dedicated. Fear not, it’s a simple fix…įollow these clear instructions on How To Print to PDF without borders or margins… So, you’ve written and designed your perfect Resume / CV, everything is looking great and you can’t wait to apply to that job opening, but hang on, you go to save it as a PDF ( the best format for a CV) and the Margins / Borders are cutting out part of the document.