Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Document-Processing-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2650,7 +2650,7 @@
<li><a href="/document-processing/word/word-processor/angular/right-to-left">RTL</a></li>
<li><a href="/document-processing/word/word-processor/angular/chart">Chart</a></li>
<li><a href="/document-processing/word/word-processor/angular/content-control">Content Control</a></li>
<li><a href="/document-processing/word/word-processor/angular/document-management">Document Management</a></li>
<li><a href="/document-processing/word/word-processor/angular/restrict-editing">Restrict Editing</a></li>
<li><a href="/document-processing/word/word-processor/angular/spell-check">SpellCheck</a></li>
<li><a href="/document-processing/word/word-processor/angular/global-local">Globalization</a></li>
<li><a href="/document-processing/word/word-processor/angular/notes">Footnotes and Endnotes</a></li>
Expand Down Expand Up @@ -6709,7 +6709,7 @@
<ul>
<li>
Weekly Nuget Release
<ul><li><a href="/document-processing/release-notes/v31.1.22">v31.1.22</a></li>
<ul><li><a href="/document-processing/release-notes/v31.1.23">v31.1.23</a></li><li><a href="/document-processing/release-notes/v31.1.22">v31.1.22</a></li>
<li><a href="/document-processing/release-notes/v31.1.21">v31.1.21</a></li>
<li><a href="/document-processing/release-notes/v31.1.20">v31.1.20</a></li>
<li><a href="/document-processing/release-notes/v31.1.19">v31.1.19</a></li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ Syncfusion<sup>&reg;</sup> HTML-to-PDF converter will work seamlessly in various
* Converts any [webpage to PDF](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#url-to-pdf).
* Converts any raw [HTML string to PDF](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#html-string-to-pdf).
* Converts [HTML form to fillable PDF form](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#html-form-to-pdf-form).
* Automatically creates [Table of Contents](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#table-of-contents).
* Automatically creates [Table of Contents](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#table-of-contents-with-custom-style).
* Automatically creates [bookmark hierarchy](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#bookmarks).
* Converts only a [part of the web page to PDF](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#partial-webpage-to-pdf).
* Supports PDF header and PDF footer.
* Supports PDF [header and PDF footer](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#header-and-footer).
* Repeats HTML table header and footer in PDF.
* Supports HTML5, CSS3, SVG, and Web fonts.
* Converts any [HTML to an image](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#url-to-image).
* Converts any [SVG to image](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#url-to-image).
* Converts any [SVG to image](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#svg-file-to-image).
* Supports accessing HTML pages using both [HTTP POST and GET](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#http-get-and-post).
* Supports [cookies-based form authentication](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#form-authentication).
* Thread safe.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,31 @@ N> The HTML to PDF converter library internally uses the Blink rendering engine
</tr>
<tr>
<td>
(.NET Core, .NET 5, .NET 6 and .NET 8) Windows
Windows (.NET Core, .NET8, and .NET9)
</td>
<td>
{{'[Syncfusion.HtmlToPdfConverter.Net.Windows.nupkg](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Windows/)'| markdownify }}
</td>
</tr>
<tr>
<td>
(.NET Core, .NET 5, .NET 6 and .NET 8) Linux
Linux (.NET Core, .NET8, and .NET9)
</td>
<td>
{{'[Syncfusion.HtmlToPdfConverter.Net.Linux.nupkg](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Linux/)'| markdownify }}
</td>
</tr>
<tr>
<td>
(.NET Core, .NET 5, .NET 6 and .NET 8) Mac
Mac (.NET Core, .NET8, and .NET9)
</td>
<td>
{{'[Syncfusion.HtmlToPdfConverter.Net.Mac.nupkg](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Mac/)'| markdownify }}
</td>
</tr>
<tr>
<td>
(.NET Core, .NET 5, .NET 6 and .NET 8) Aws
AWS (.NET Core, .NET8, and .NET9)
</td>
<td>
{{'[Syncfusion.HtmlToPdfConverter.Net.Aws.nupkg](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Aws/)'| markdownify }}
Expand Down
9 changes: 4 additions & 5 deletions Document-Processing/PDF/Conversions/HTML-To-PDF/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ Syncfusion<sup>&reg;</sup> HTML-to-PDF converter will work seamlessly in various
* Converts any [webpage to PDF](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#url-to-pdf).
* Converts any raw [HTML string to PDF](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#html-string-to-pdf).
* Converts [HTML form to fillable PDF form](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#html-form-to-pdf-form).
* Automatically creates [Table of Contents](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#table-of-contents).
* Automatically creates [Table of Contents](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#table-of-contents-with-custom-style).
* Automatically creates [bookmark hierarchy](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#bookmarks).
* Converts only a [part of the web page to PDF](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#partial-webpage-to-pdf).
* Supports PDF header and PDF footer.
* Supports PDF [header and PDF footer](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#header-and-footer).
* Repeats HTML table header and footer in PDF.
* Supports HTML5, CSS3, SVG, and Web fonts.
* Converts any [HTML to an image](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#url-to-image).
* Converts any [SVG to image](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#url-to-image).
* Supports accessing HTML pages using both [HTTP POST and GET](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#http-get-and-post) methods.
* Supports [HTTP cookies](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#form-authentication).
* Converts any [SVG to image](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#svg-file-to-image).
* Supports accessing HTML pages using both [HTTP POST and GET](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#http-get-and-post).
* Supports [cookies-based form authentication](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#form-authentication).
* Thread safe.
* Supports internal and external [hyperlinks](https://help.syncfusion.com/document-processing/pdf/conversions/html-to-pdf/net/features#hyperlinks).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,21 @@ Step 3: Click **Create** button.
Step 4: Install the [Syncfusion.Pdf.Net.Core](https://www.nuget.org/packages/Syncfusion.Pdf.Net.Core/) NuGet package as a reference to your project from [NuGet.org](https://www.nuget.org/).
![Install Syncfusion.Pdf.Net.Core NuGet package](AKS_images/NuGet_package.png)


Step 5: A default action method named Index will be present in *HomeController.cs*. Right click on Index method and select Go To View where you will be directed to its associated view page *Index.cshtml*. Add a new button in the *Index.cshtml* as shown below.

{% tabs %}

{% highlight c# tabtitle="C#" %}

@{
Html.BeginForm("CreatePDFDocument", "Home", FormMethod.Get);
{
<div>
<input type="submit" value="Create PDF Document" style="width:200px;height:27px" />
</div>
}
Html.EndForm();
@{
Html.BeginForm("CreatePDFDocument", "Home", FormMethod.Get);
{
<div>
<input type="submit" value="Create PDF Document" style="width:200px;height:27px" />
</div>
}
Html.EndForm();
}

{% endhighlight %}

Expand All @@ -50,10 +49,10 @@ Step 6: Include the following namespaces in *HomeController.cs*.

{% highlight c# tabtitle="C#" %}

using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf;
using System.Diagnostics;
using Syncfusion.Drawing;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf;
using System.Diagnostics;
using Syncfusion.Drawing;

{% endhighlight %}

Expand All @@ -65,7 +64,7 @@ Step 7: Add a new action method named CreatePDFDocument in HomeController.cs fil

{% highlight c# tabtitle="C#" %}

public IActionResult CreatePDFDocument()
public IActionResult CreatePDFDocument()
{
//Create a new PDF document.
PdfDocument document = new PdfDocument();
Expand Down Expand Up @@ -165,7 +164,7 @@ Step 2: You need to gather the credentials in order to interact with the cluster

{% highlight c# tabtitle="C#" %}

az aks get-credentials --resource-group CreatePdfDocument --name aks-uk-demo-msdn
az aks get-credentials --resource-group CreatePdfDocument --name aks-uk-demo-msdn

{% endhighlight %}

Expand All @@ -175,7 +174,7 @@ Step 3: You can review the credentials with the following command:
{% tabs %}
{% highlight c# tabtitle="C#" %}

cat .kube/config
cat .kube/config

{% endhighlight %}

Expand All @@ -187,7 +186,7 @@ Step 4: Now in the Cloud Shell, create a new file called deploy.yaml as follows:
{% tabs %}
{% highlight c# tabtitle="C#" %}

code deploy.yaml
code deploy.yaml

{% endhighlight %}

Expand Down Expand Up @@ -236,7 +235,7 @@ Step 6: Once you save and close the code editor, it’s finally time to apply th
{% tabs %}
{% highlight c# tabtitle="C#" %}

kubectl apply -f deploy.yaml
kubectl apply -f deploy.yaml

{% endhighlight %}

Expand All @@ -250,10 +249,10 @@ Step 8: You can run the following commands:
{% tabs %}
{% highlight c# tabtitle="C#" %}

kubectl get pods
kubectl get nodes
kubectl get service
kubectl describe deployment
kubectl get pods
kubectl get nodes
kubectl get service
kubectl describe deployment

{% endhighlight %}
{% endtabs %}
Expand All @@ -262,7 +261,7 @@ or
{% tabs %}
{% highlight c# tabtitle="C#" %}

kubectl get all
kubectl get all

{% endhighlight %}
{% endtabs %}
Expand All @@ -286,8 +285,8 @@ If you want to clean up the cluster, you can run the following commands:
{% tabs %}
{% highlight c# tabtitle="C#" %}

kubectl delete -f deploy.yaml
kubectl delete svc asp-docker-app --namespace=default
kubectl delete -f deploy.yaml
kubectl delete svc asp-docker-app --namespace=default

{% endhighlight %}
{% endtabs %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ Step 4: A default controller named HomeController.cs gets added to create the AS
{% tabs %}
{% highlight c# tabtitle="C#" %}

using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf.Parsing;
using Syncfusion.Drawing;
using Syncfusion.Pdf;
using Syncfusion.Pdf.Graphics;
using Syncfusion.Pdf.Grid;
using Syncfusion.Pdf.Parsing;
using Syncfusion.Drawing;

{% endhighlight %}
{% endtabs %}
Expand All @@ -43,18 +43,18 @@ Step 5: Add a new button in index.cshtml as follows
{% tabs %}
{% highlight c# tabtitle="C#" %}

@{
Html.BeginForm("CreatePDF", "Home", FormMethod.Get);
{
<div>
<input type="submit" value="Create PDF" style="width:150px;height:27px" />
<br />
<div class="text-danger">
@ViewBag.Message
</div>
@{
Html.BeginForm("CreatePDF", "Home", FormMethod.Get);
{
<div>
<input type="submit" value="Create PDF" style="width:150px;height:27px" />
<br />
<div class="text-danger">
@ViewBag.Message
</div>
}
Html.EndForm();
</div>
}
Html.EndForm();
}

{% endhighlight %}
Expand All @@ -65,43 +65,43 @@ Step 6: Add a new action method named CreatePDF in HomeController.cs file and in
{% tabs %}
{% highlight c# tabtitle="C#" %}

public IActionResult CreatePDF()
{
//Open an existing PDF document.
FileStream fileStream = new FileStream("Data/Input.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument document = new PdfLoadedDocument(fileStream);

//Get the first page from a document.
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;

//Create PDF graphics for the page.
PdfGraphics graphics = page.Graphics;

//Create a PdfGrid.
PdfGrid pdfGrid = new PdfGrid();
//Add values to the list.
List<object> data = new List<object>();
data.Add(new { Product_ID = "1001", Product_Name = "Bicycle", Price = "10,000" });
data.Add(new { Product_ID = "1002", Product_Name = "Head Light", Price = "3,000" });
data.Add(new { Product_ID = "1003", Product_Name = "Break wire", Price = "1,500" });

//Assign data source.
pdfGrid.DataSource = data;

//Apply built-in table style.
pdfGrid.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable4Accent3);

//Draw the grid to the page of PDF document.
pdfGrid.Draw(graphics, new RectangleF(40, 400, page.Size.Width - 80, 0));
//Create the memory stream.
MemoryStream stream = new MemoryStream();
//Save the document to the memory stream.
document.Save(stream);
//Close the documet
document.Close(true);
//Return the PDF file as a download
return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Application.Pdf, "Output.pdf");
}
public IActionResult CreatePDF()
{
//Open an existing PDF document.
FileStream fileStream = new FileStream("Data/Input.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument document = new PdfLoadedDocument(fileStream);

//Get the first page from a document.
PdfLoadedPage page = document.Pages[0] as PdfLoadedPage;

//Create PDF graphics for the page.
PdfGraphics graphics = page.Graphics;

//Create a PdfGrid.
PdfGrid pdfGrid = new PdfGrid();
//Add values to the list.
List<object> data = new List<object>();
data.Add(new { Product_ID = "1001", Product_Name = "Bicycle", Price = "10,000" });
data.Add(new { Product_ID = "1002", Product_Name = "Head Light", Price = "3,000" });
data.Add(new { Product_ID = "1003", Product_Name = "Break wire", Price = "1,500" });

//Assign data source.
pdfGrid.DataSource = data;

//Apply built-in table style.
pdfGrid.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable4Accent3);

//Draw the grid to the page of PDF document.
pdfGrid.Draw(graphics, new RectangleF(40, 400, page.Size.Width - 80, 0));
//Create the memory stream.
MemoryStream stream = new MemoryStream();
//Save the document to the memory stream.
document.Save(stream);
//Close the documet
document.Close(true);
//Return the PDF file as a download
return File(stream.ToArray(), System.Net.Mime.MediaTypeNames.Application.Pdf, "Output.pdf");
}

{% endhighlight %}
{% endtabs %}
Expand Down
Loading