Skip to content
Open
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
58 changes: 46 additions & 12 deletions Document-Processing/PDF/PDF-Library/NET/Assemblies-Required.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ The following assemblies need to be referenced in your application based on the
Syncfusion.Pdf.UWP
</td>
</tr>
<tr>
<td>
{{'[Xamarin](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/create-pdf-file-in-xamarin)'| markdownify }}
</td>
<td>
Syncfusion.Pdf.Portable<br/>
Syncfusion.Compression.Portable
</td>
</tr>
<tr>
<td>
{{'[Blazor](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/create-pdf-document-in-blazor)'| markdownify }},
Expand Down Expand Up @@ -140,6 +131,15 @@ The following assemblies need to be referenced in your application based on the
Syncfusion.Compression.Base
</td>
</tr>
<tr>
<td>
{{'[Xamarin](https://help.syncfusion.com/document-processing/pdf/pdf-library/net/create-pdf-file-in-xamarin)'| markdownify }}
</td>
<td>
Syncfusion.Pdf.Portable<br/>
Syncfusion.Compression.Portable
</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -254,7 +254,7 @@ For converting a Word document to PDF, the following assemblies need to be refer
</td>
</tr>
<tr>
<td>ASP.NET Core, Xamarin and Blazor</td>
<td>ASP.NET Core and Blazor</td>
<td>
Syncfusion.DocIO.Portable<br/>
Syncfusion.Compression.Portable<br/>
Expand Down Expand Up @@ -305,6 +305,18 @@ For converting a Word document to PDF, the following assemblies need to be refer
Syncfusion.DocToPdfConverter.Base
</td>
</tr>
<tr>
<td>Xamarin</td>
<td>
Syncfusion.DocIO.Portable<br/>
Syncfusion.Compression.Portable<br/>
Syncfusion.OfficeChart.Portable<br/>
Syncfusion.Pdf.Portable<br/>
Syncfusion.DocIORenderer.Portable<br/>
SkiaSharp.HarfBuzz<br/>
Syncfusion.SkiaSharpHelper.Portable
</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -344,7 +356,7 @@ For converting an Excel document to PDF, the following assemblies need to be ref
</td>
</tr>
<tr>
<td>UWP, .NET Core, Xamarin, and Blazor (Server-Side)</td>
<td>UWP, .NET Core, and Blazor (Server-Side)</td>
<td>
Syncfusion.Compression.Portable<br/>
Syncfusion.XlsIO.Portable<br/>
Expand Down Expand Up @@ -387,6 +399,16 @@ For converting an Excel document to PDF, the following assemblies need to be ref
Syncfusion.ExcelToPDFConverter.Base
</td>
</tr>
<tr>
<td>Xamarin</td>
<td>
Syncfusion.Compression.Portable<br/>
Syncfusion.XlsIO.Portable<br/>
Syncfusion.Pdf.Portable<br/>
Syncfusion.SkiaSharpHelper.Portable<br/>
Syncfusion.XlsIORenderer.Portable
</td>
</tr>
</tbody>
</table>

Expand All @@ -413,7 +435,7 @@ For converting a PowerPoint Presentation to PDF, the following assemblies needed
</td>
</tr>
<tr>
<td>ASP.NET Core, Xamarin, and Blazor</td>
<td>ASP.NET Core, and Blazor</td>
<td>
Syncfusion.Presentation.Portable<br/>
Syncfusion.Compression.Portable<br/>
Expand Down Expand Up @@ -480,6 +502,18 @@ The following assemblies are required to be referred in addition to the above me
Syncfusion.PresentationToPDFConverter.Base
</td>
</tr>
<tr>
<td>Xamarin</td>
<td>
Syncfusion.Presentation.Portable<br/>
Syncfusion.Compression.Portable<br/>
Syncfusion.OfficeChart.Portable<br/>
Syncfusion.Pdf.Portable<br/>
Syncfusion.PresentationRenderer.Portable<br/>
Syncfusion.SkiaSharpHelper.Portable<br/>
SkiaSharp
</td>
</tr>
</tbody>
</table>

Expand Down
72 changes: 36 additions & 36 deletions Document-Processing/PDF/PDF-Library/NET/NuGet-Packages-Required.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,6 @@ Blazor
</tr>
<tr>
<td>
Xamarin
</td>
<td>
{{'[Syncfusion.Xamarin.Pdf.nupkg](https://www.nuget.org/packages/Syncfusion.Xamarin.Pdf/)'| markdownify }}
</td>
</tr>
<tr>
<td>
Windows UI (WinUI) <br/>
.NET Multi-platform App UI (.NET MAUI)
</td>
Expand Down Expand Up @@ -98,6 +90,14 @@ Windows UI (WinUI) <br/>
{{'[Syncfusion.Pdf.AspNet.nupkg]( https://www.nuget.org/packages/Syncfusion.Pdf.AspNet/)'| markdownify }}
</td>
</tr>
<tr>
<td>
Xamarin
</td>
<td>
{{'[Syncfusion.Xamarin.Pdf.nupkg](https://www.nuget.org/packages/Syncfusion.Xamarin.Pdf/)'| markdownify }}
</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -199,31 +199,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, NET 8.0, NET 9.0 and NET 10.0)
</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, NET 8.0, NET 9.0, NET 10.0)
</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, NET 8.0, NET 9.0, NET 10.0)
</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, NET 8.0, NET 9.0, NET 10.0)
</td>
<td>
{{'[Syncfusion.HtmlToPdfConverter.Net.Aws.nupkg](https://www.nuget.org/packages/Syncfusion.HtmlToPdfConverter.Net.Aws/)'| markdownify }}
Expand Down Expand Up @@ -404,14 +404,6 @@ Blazor
{{'[Syncfusion.DocIORenderer.Net.Core.nupkg](https://www.nuget.org/packages/Syncfusion.DocIORenderer.Net.Core/)'| markdownify }}
</td>
</tr>
<tr>
<td>
Xamarin
</td>
<td>
{{'[Syncfusion.Xamarin.DocIORenderer.nupkg](https://www.nuget.org/packages/Syncfusion.Xamarin.DocIORenderer/)'| markdownify }}
</td>
</tr>
</table>

### RETIRED PRODUCTS
Expand All @@ -432,6 +424,14 @@ Xamarin
{{'[Syncfusion.DocToPdfConverter.AspNet.nupkg](https://www.nuget.org/packages/Syncfusion.DocToPDFConverter.AspNet/)'| markdownify }}
</td>
</tr>
<tr>
<td>
Xamarin
</td>
<td>
{{'[Syncfusion.Xamarin.DocIORenderer.nupkg](https://www.nuget.org/packages/Syncfusion.Xamarin.DocIORenderer/)'| markdownify }}
</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -483,14 +483,6 @@ Console Application (Targeting .NET Core)
</tr>
<tr>
<td>
Xamarin
</td>
<td>
{{'[Syncfusion.Xamarin.XlsIORenderer.nupkg](https://www.nuget.org/packages/Syncfusion.Xamarin.XlsIORenderer/)'| markdownify }}
</td>
</tr>
<tr>
<td>
Blazor (Server-App)
</td>
<td>
Expand All @@ -517,6 +509,14 @@ Blazor (Server-App)
{{'[Syncfusion.ExcelToPdfConverter.AspNet.nupkg](https://www.nuget.org/packages/Syncfusion.ExcelToPdfConverter.AspNet/)'| markdownify }}
</td>
</tr>
<tr>
<td>
Xamarin
</td>
<td>
{{'[Syncfusion.Xamarin.XlsIORenderer.nupkg](https://www.nuget.org/packages/Syncfusion.Xamarin.XlsIORenderer/)'| markdownify }}
</td>
</tr>
</tbody>
</table>

Expand Down Expand Up @@ -566,14 +566,6 @@ Blazor
{{'[Syncfusion.PresentationRenderer.Net.Core.nupkg](https://www.nuget.org/packages/Syncfusion.PresentationRenderer.Net.Core/)'| markdownify }}
</td>
</tr>
<tr>
<td>
Xamarin
</td>
<td>
{{'[Syncfusion.Xamarin.PresentationRenderer.nupkg](https://www.nuget.org/packages/Syncfusion.Xamarin.PresentationRenderer/)'| markdownify }}
</td>
</tr>
</table>

### RETIRED PRODUCTS
Expand All @@ -594,6 +586,14 @@ Xamarin
{{'[Syncfusion.PresentationToPdfConverter.AspNet.nupkg](https://www.nuget.org/packages/Syncfusion.PresentationToPdfConverter.AspNet/)'| markdownify }}
</td>
</tr>
<tr>
<td>
Xamarin
</td>
<td>
{{'[Syncfusion.Xamarin.PresentationRenderer.nupkg](https://www.nuget.org/packages/Syncfusion.Xamarin.PresentationRenderer/)'| markdownify }}
</td>
</tr>
</tbody>
</table>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ You can open an existing PDF document by using the [PdfLoadedDocument](https://h
{% highlight c# tabtitle="C# [Cross-platform]" %}

//Open an existing PDF document from stream through constructor of `PdfLoadedDocument` class.
FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(@"Input.pdf");

{% endhighlight %}

Expand Down Expand Up @@ -129,9 +128,8 @@ You can open an existing encrypted PDF document from either the file system or t

{% highlight c# tabtitle="C# [Cross-platform]" %}

//Open an encrypted PDF document from stream through constructor of `PdfLoadedDocument` class.
FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream, "password");
//Open an encrypted PDF document from stream through constructor of `PdfLoadedDocument` class.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(@"Input.pdf", "password");

{% endhighlight %}

Expand Down Expand Up @@ -210,9 +208,8 @@ You can open a corrupted PDF document from either the file system or the stream

{% highlight c# tabtitle="C# [Cross-platform]" %}

//Open an existing corrupted PDF document from stream through constructor of `PdfLoadedDocument` class.
FileStream inputPDFStream = new FileStream(@"Input.pdf", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(inputPDFStream, true);
//Open an existing corrupted PDF document from stream through constructor of `PdfLoadedDocument` class.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(@"Input.pdf", true);

{% endhighlight %}

Expand Down Expand Up @@ -295,8 +292,7 @@ You can save the manipulated PDF document to file system using [Save](https://he
{% highlight c# tabtitle="C# [Cross-platform]" %}

//Load an existing PDF document.
FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//To-Do some manipulation
//To-Do some manipulation
//Save the PDF document into stream.
Expand Down Expand Up @@ -392,13 +388,13 @@ You can also resave the manipulated PDF document to the same file using overload

{% tabs %}

{% highlight c# tabtitle="ASP.NET Core" %}
{% highlight c# tabtitle="C# [Cross-platform]" %}

//PDF doesn't supports saving a PDF document into the same file on the C#/.NET Cross platforms.

{% endhighlight %}

{% highlight c# tabtitle="C#" %}
{% highlight c# tabtitle="C# [Windows-specific]" %}

//Load an existing PDF document.
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
Expand Down Expand Up @@ -463,8 +459,7 @@ After the document manipulation and save operation are completed, you should clo
{% highlight c# tabtitle="C# [Cross-platform]" %}

//Load an existing PDF document.
FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(docStream);
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf");
//To-Do some manipulation
//To-Do some manipulation
//Save the document into stream.
Expand Down Expand Up @@ -515,12 +510,11 @@ You can catch the secured document exception by opening an existing encrypted PD
{% highlight c# tabtitle="C# [Cross-platform]" %}

//Load an existing PDF document.
FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument document = null;
try
{
//Open an existing PDF document from a stream.
document = new PdfLoadedDocument(docStream, "password");
document = new PdfLoadedDocument("Input.pdf", "password");
}
catch (Syncfusion.Pdf.PdfInvalidPasswordException exception)
{
Expand Down Expand Up @@ -590,12 +584,11 @@ II. Please find some of the possible offset error messages that may be repairab
{% highlight c# tabtitle="C# [Cross-platform]" %}

//Load a PDF document.
FileStream docStream = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read);
PdfLoadedDocument document = null;
try
{
//Open an existing PDF document from the stream.
document = new PdfLoadedDocument(docStream, true);
document = new PdfLoadedDocument("Input.pdf", true);
}
catch (PdfException exception)
{
Expand Down
Loading