diff --git a/Demos/ASP.NET Core/src/GroupDocs.Viewer.AspNetCore.csproj b/Demos/ASP.NET Core/src/GroupDocs.Viewer.AspNetCore.csproj
index 8e935683a..3b6a04f64 100644
--- a/Demos/ASP.NET Core/src/GroupDocs.Viewer.AspNetCore.csproj
+++ b/Demos/ASP.NET Core/src/GroupDocs.Viewer.AspNetCore.csproj
@@ -10,7 +10,7 @@
-
+
diff --git a/Demos/ASP.NET MVC/src/GroupDocs.Viewer.AspNetMvc.csproj b/Demos/ASP.NET MVC/src/GroupDocs.Viewer.AspNetMvc.csproj
index b40cbc332..f4771235f 100644
--- a/Demos/ASP.NET MVC/src/GroupDocs.Viewer.AspNetMvc.csproj
+++ b/Demos/ASP.NET MVC/src/GroupDocs.Viewer.AspNetMvc.csproj
@@ -26,6 +26,8 @@
false
ClientApp\
true
+
+
true
@@ -49,8 +51,11 @@
packages\AsyncKeyedLock.6.2.1\lib\netstandard2.0\AsyncKeyedLock.dll
-
- packages\GroupDocs.Viewer.23.12.0\lib\net462\GroupDocs.Viewer.dll
+
+ packages\GroupDocs.Viewer.24.1.1\lib\net462\GroupDocs.Viewer.dll
+
+
+ packages\Microsoft.Bcl.AsyncInterfaces.6.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll
packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.3.6.0\lib\net45\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
@@ -63,17 +68,39 @@
packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll
+
+ packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
+
+
+ packages\System.Memory.4.5.4\lib\net461\System.Memory.dll
+
packages\Microsoft.AspNet.WebApi.Client.5.2.9\lib\net45\System.Net.Http.Formatting.dll
+
+
+ packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
+
packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll
+
+ packages\System.Text.Encoding.CodePages.6.0.0\lib\net461\System.Text.Encoding.CodePages.dll
+
+
+ packages\System.Text.Encodings.Web.6.0.0\lib\net461\System.Text.Encodings.Web.dll
+
+
+ packages\System.Text.Json.6.0.0\lib\net461\System.Text.Json.dll
+
packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll
+
+ packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll
+
packages\Microsoft.AspNet.Cors.5.2.9\lib\net45\System.Web.Cors.dll
@@ -279,6 +306,7 @@
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
@@ -288,4 +316,5 @@
+
\ No newline at end of file
diff --git a/Demos/ASP.NET MVC/src/Web.config b/Demos/ASP.NET MVC/src/Web.config
index 5f059ce8c..2717d9832 100644
--- a/Demos/ASP.NET MVC/src/Web.config
+++ b/Demos/ASP.NET MVC/src/Web.config
@@ -56,14 +56,9 @@
-
-
-
-
-
-
+
@@ -88,12 +83,12 @@
-
+
-
+
@@ -111,6 +106,11 @@
+
+
+
+
+
@@ -118,12 +118,12 @@
-
+
-
+
diff --git a/Demos/ASP.NET MVC/src/packages.config b/Demos/ASP.NET MVC/src/packages.config
index e1761cf18..faccbff46 100644
--- a/Demos/ASP.NET MVC/src/packages.config
+++ b/Demos/ASP.NET MVC/src/packages.config
@@ -1,7 +1,7 @@
-
+
@@ -11,11 +11,19 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Demos/ASP.NET Web Forms/src/Core/Viewers/Extensions/ViewOptionsExtensions.cs b/Demos/ASP.NET Web Forms/src/Core/Viewers/Extensions/ViewOptionsExtensions.cs
index b9727f39b..cd22b6d9e 100644
--- a/Demos/ASP.NET Web Forms/src/Core/Viewers/Extensions/ViewOptionsExtensions.cs
+++ b/Demos/ASP.NET Web Forms/src/Core/Viewers/Extensions/ViewOptionsExtensions.cs
@@ -61,7 +61,6 @@ private static void CopyHtmlViewOptions(this HtmlViewOptions dst, HtmlViewOption
private static void CopyPdfViewOptions(this PdfViewOptions dst, PdfViewOptions src)
{
- dst.JpgQuality = src.JpgQuality;
dst.Security = src.Security;
dst.ImageMaxWidth = src.ImageMaxWidth;
dst.ImageMaxHeight = src.ImageMaxHeight;
diff --git a/Demos/ASP.NET Web Forms/src/GroupDocs.Viewer.AspNetWebForms.csproj b/Demos/ASP.NET Web Forms/src/GroupDocs.Viewer.AspNetWebForms.csproj
index cc378e68e..28f163e8b 100644
--- a/Demos/ASP.NET Web Forms/src/GroupDocs.Viewer.AspNetWebForms.csproj
+++ b/Demos/ASP.NET Web Forms/src/GroupDocs.Viewer.AspNetWebForms.csproj
@@ -50,8 +50,11 @@
packages\AsyncKeyedLock.6.2.1\lib\netstandard2.0\AsyncKeyedLock.dll
-
- packages\GroupDocs.Viewer.23.10.0\lib\net462\GroupDocs.Viewer.dll
+
+ packages\GroupDocs.Viewer.24.1.1\lib\net462\GroupDocs.Viewer.dll
+
+
+ packages\Microsoft.Bcl.AsyncInterfaces.6.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll
packages\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.4.1.0\lib\net472\Microsoft.CodeDom.Providers.DotNetCompilerPlatform.dll
@@ -60,19 +63,40 @@
packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll
+
+ packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
+
+
+ packages\System.Memory.4.5.4\lib\net461\System.Memory.dll
+
+
+ packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
+
packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll
+
+ packages\System.Text.Encoding.CodePages.6.0.0\lib\net461\System.Text.Encoding.CodePages.dll
+
+
+ packages\System.Text.Encodings.Web.6.0.0\lib\net461\System.Text.Encodings.Web.dll
+
+
+ packages\System.Text.Json.6.0.0\lib\net461\System.Text.Json.dll
+
packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll
+
+ packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll
+
packages\Microsoft.AspNet.Cors.5.2.9\lib\net45\System.Web.Cors.dll
@@ -277,5 +301,7 @@
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.
+
+
\ No newline at end of file
diff --git a/Demos/ASP.NET Web Forms/src/Web.config b/Demos/ASP.NET Web Forms/src/Web.config
index 04b50dc5f..9878627c5 100644
--- a/Demos/ASP.NET Web Forms/src/Web.config
+++ b/Demos/ASP.NET Web Forms/src/Web.config
@@ -49,7 +49,7 @@
-
+
@@ -74,12 +74,12 @@
-
+
-
+
@@ -109,12 +109,12 @@
-
+
-
+
diff --git a/Demos/ASP.NET Web Forms/src/packages.config b/Demos/ASP.NET Web Forms/src/packages.config
index 838f75276..318dcb4e2 100644
--- a/Demos/ASP.NET Web Forms/src/packages.config
+++ b/Demos/ASP.NET Web Forms/src/packages.config
@@ -1,18 +1,26 @@
-
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Demos/WPF/src/GroupDocs.Viewer.WPF.csproj b/Demos/WPF/src/GroupDocs.Viewer.WPF.csproj
index f6dec4168..b2a3325d9 100644
--- a/Demos/WPF/src/GroupDocs.Viewer.WPF.csproj
+++ b/Demos/WPF/src/GroupDocs.Viewer.WPF.csproj
@@ -2,7 +2,7 @@
WinExe
- netcoreapp3.1
+ net6.0-windows
true
@@ -41,7 +41,7 @@
-
+
\ No newline at end of file
diff --git a/Demos/Windows Forms/src/App.config b/Demos/Windows Forms/src/App.config
index 5d9276fcc..1ee66b599 100644
--- a/Demos/Windows Forms/src/App.config
+++ b/Demos/Windows Forms/src/App.config
@@ -7,7 +7,7 @@
-
+
@@ -32,12 +32,12 @@
-
+
-
+
@@ -67,14 +67,18 @@
-
+
-
+
+
+
+
+
\ No newline at end of file
diff --git a/Demos/Windows Forms/src/GroupDocs.Viewer.WinForms.csproj b/Demos/Windows Forms/src/GroupDocs.Viewer.WinForms.csproj
index 3969be73f..4aa9da911 100644
--- a/Demos/Windows Forms/src/GroupDocs.Viewer.WinForms.csproj
+++ b/Demos/Windows Forms/src/GroupDocs.Viewer.WinForms.csproj
@@ -13,6 +13,8 @@
true
true
+
+
AnyCPU
@@ -34,41 +36,50 @@
4
-
- packages\GroupDocs.Viewer.23.12.0\lib\net462\GroupDocs.Viewer.dll
+
+ packages\GroupDocs.Viewer.24.1.1\lib\net462\GroupDocs.Viewer.dll
packages\Microsoft.Bcl.AsyncInterfaces.6.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll
+ True
packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll
+ True
packages\System.Memory.4.5.4\lib\net461\System.Memory.dll
+ True
packages\System.Numerics.Vectors.4.5.0\lib\net46\System.Numerics.Vectors.dll
+ True
packages\System.Runtime.CompilerServices.Unsafe.6.0.0\lib\net461\System.Runtime.CompilerServices.Unsafe.dll
+ True
packages\System.Text.Encoding.CodePages.6.0.0\lib\net461\System.Text.Encoding.CodePages.dll
+ True
packages\System.Text.Encodings.Web.6.0.0\lib\net461\System.Text.Encodings.Web.dll
+ True
packages\System.Text.Json.6.0.0\lib\net461\System.Text.Json.dll
packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll
+ True
packages\System.ValueTuple.4.5.0\lib\net47\System.ValueTuple.dll
+ True
diff --git a/Demos/Windows Forms/src/packages.config b/Demos/Windows Forms/src/packages.config
index 2fadad9ac..b8bb3071c 100644
--- a/Demos/Windows Forms/src/packages.config
+++ b/Demos/Windows Forms/src/packages.config
@@ -1,4 +1,14 @@
-
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.Core/Dockerfile b/Examples/GroupDocs.Viewer.Examples.CSharp.Core/Dockerfile
deleted file mode 100644
index 3fb145c70..000000000
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.Core/Dockerfile
+++ /dev/null
@@ -1,49 +0,0 @@
-# Navigate to 'Examples' folder
-# Build container image with `docker build -f "GroupDocs.Viewer.Examples.CSharp.Core\Dockerfile" -t groupdocs-viewer:examples .`
-# Run container `docker run -it --rm -v ${pwd}/Output:/app/Output groupdocs-viewer:examples`
-# Or run 'Docker' profile in Visual Studio
-
-FROM mcr.microsoft.com/dotnet/runtime:3.1-bionic AS base
-WORKDIR /app
-
-# begin install libgdiplus and dependencies
-RUN apt-get update \
- && apt-get install -y \
- apt-transport-https \
- dirmngr \
- gnupg \
- ca-certificates
-
-RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \
- && echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" >> /etc/apt/sources.list.d/mono-official-stable.list
-
-RUN apt-get update \
- && apt-get install -y --allow-unauthenticated \
- libc6-dev \
- libgdiplus \
- libx11-dev
-
-# begin ttf-mscorefonts-installer
-RUN echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | debconf-set-selections \
- && apt-get update \
- && apt-get install -y \
- libfontconfig1 \
- xfonts-utils \
- ttf-mscorefonts-installer
-# end ttf-mscorefonts-installer
-
-FROM mcr.microsoft.com/dotnet/sdk:3.1-bionic AS build
-WORKDIR /src
-COPY ["GroupDocs.Viewer.Examples.CSharp.Core/GroupDocs.Viewer.Examples.CSharp.Core.csproj", "GroupDocs.Viewer.Examples.CSharp.Core/"]
-RUN dotnet restore "GroupDocs.Viewer.Examples.CSharp.Core/GroupDocs.Viewer.Examples.CSharp.Core.csproj"
-COPY . .
-WORKDIR "/src/GroupDocs.Viewer.Examples.CSharp.Core"
-RUN dotnet build "GroupDocs.Viewer.Examples.CSharp.Core.csproj" -c Release -o /app/build
-
-FROM build AS publish
-RUN dotnet publish "GroupDocs.Viewer.Examples.CSharp.Core.csproj" -c Release -o /app/publish
-
-FROM base AS final
-WORKDIR /app
-COPY --from=publish /app/publish .
-ENTRYPOINT ["dotnet", "GroupDocs.Viewer.Examples.CSharp.Core.dll"]
\ No newline at end of file
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.Core/GroupDocs.Viewer.Examples.CSharp.Core.csproj b/Examples/GroupDocs.Viewer.Examples.CSharp.Core/GroupDocs.Viewer.Examples.CSharp.Core.csproj
deleted file mode 100644
index b47041026..000000000
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.Core/GroupDocs.Viewer.Examples.CSharp.Core.csproj
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
- Exe
- netcoreapp3.1
- Linux
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.Core/Properties/launchSettings.json b/Examples/GroupDocs.Viewer.Examples.CSharp.Core/Properties/launchSettings.json
deleted file mode 100644
index 57ad31b86..000000000
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.Core/Properties/launchSettings.json
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- "profiles": {
- "GroupDocs.Viewer.Examples.CSharp.Core": {
- "commandName": "Project"
- },
- "Docker": {
- "commandName": "Docker"
- }
- }
-}
\ No newline at end of file
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.Core/RunExamples.cs b/Examples/GroupDocs.Viewer.Examples.CSharp.Core/RunExamples.cs
deleted file mode 100644
index fbdc5637d..000000000
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.Core/RunExamples.cs
+++ /dev/null
@@ -1,251 +0,0 @@
-using System;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Caching;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Loading;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Loading.LoadingDocumentsFromDifferentSources;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.CommonRenderingOptions;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingArchiveFiles;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingCadDrawings;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingEMailMessages;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingImageFiles;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingMsProjectDocuments;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingOutlookDataFiles;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingPdfDocuments;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingSpreadsheets;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingWordProcessingDocuments;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingTextDocuments;
-using GroupDocs.Viewer.Examples.CSharp.BasicUsage;
-using GroupDocs.Viewer.Examples.CSharp.BasicUsage.ProcessingAttachments;
-using GroupDocs.Viewer.Examples.CSharp.BasicUsage.RenderDocumentToHtml;
-using GroupDocs.Viewer.Examples.CSharp.BasicUsage.RenderDocumentToImage;
-using GroupDocs.Viewer.Examples.CSharp.BasicUsage.RenderDocumentToPdf;
-using GroupDocs.Viewer.Examples.CSharp.HowTo;
-using GroupDocs.Viewer.Examples.CSharp.QuickStart;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingWebDocuments;
-using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingLotusNotesDataFiles;
-
-namespace GroupDocs.Viewer.Examples.CSharp
-{
- class RunExamples
- {
- static void Main()
- {
- Console.WriteLine("Open RunExamples.cs. \nIn Main() method uncomment the example that you want to run.");
- Console.WriteLine("=====================================================");
-
- #region Quick Start
-
- SetLicenseFromFile.Run();
- //SetLicenseFromStream.Run();
- //SetMeteredLicense.Run();
- HelloWorld.Run();
-
- #endregion
-
- #region Basic Usage
-
- //GetSupportedFileFormats.Run();
- //GetViewInfo.Run();
- //CheckFileIsEncrypted.Run();
-
- #region Processing attachments
-
- //RetrieveAndPrintDocumentAttachments.Run();
- //RetrieveAndSaveDocumentAttachments.Run();
- //RenderDocumentAttachments.Run();
-
- #endregion
-
- #region Render document to HTML
-
- //RenderToHtmlWithEmbeddedResources.Run();
- //RenderToHtmlWithExternalResources.Run();
-
- //ExcludingFontsFromOutputHtml.Run();
- //MinifyHtmlDocument.Run();
- //RenderToResponsiveHtml.Run();
-
- #endregion
-
- #region Render document to Image
-
- //RenderToPng.Run();
- //RenderToJpg.Run();
-
- //GetTextCoordinates.Run();
- //RenderForDisplayWithText.Run();
- //AdjustQualityWhenRenderingToJpg.Run();
- //AdjustImageSize.Run();
- //RenderingWmzAndWmf.Run();
- //RenderingEmzAndEmf.Run();
- //RenderingCdr.Run();
- //RenderingCmx.Run();
- //RenderingAi.Run();
- //RenderingTga.Run();
- //RenderingApng.Run();
-
- #endregion
-
- #region Render document to PDF
-
- //RenderToPdf.Run();
- //GetPdfStream.Run();
-
- //AdjustQualityOfJpgImages.Run();
- //ProtectPdfDocument.Run();
-
- #endregion
-
- #endregion
-
- #region Advanced Usage
-
- #region Common rendering options
-
- //AddWatermark.Run();
- //RenderDocumentWithComments.Run();
- //RenderDocumentWithNotes.Run();
- //RenderHiddenPages.Run();
- //RenderNConsecutivePages.Run();
- //RenderSelectedPages.Run();
- //ReplaceMissingFont.Run();
- //ReorderPages.Run();
- //FlipRotatePages.Run();
- //RenderWithCustomFonts.Run();
- //RenderingTxt.Run();
- //SetImageSizeLimits.Run();
- //CancelRenderWithCancellationToken.Run();
-
- #endregion
-
- #region Rendering options by document type
-
- #region Rendering CAD Files
-
- //RenderingPc3Files.Run();
-
- #endregion
-
- #region Rendering Archive Files
-
- //GetViewInfoForArchiveFile.Run();
- //RenderArchiveFolder.Run();
- //SpecifyFilenameWhenRenderingArchiveFiles.Run();
- //RenderingRar.Run();
- //RenderingArchivesToMultipleAndSinglePagesHtml.Run();
-
- #endregion
-
- #region Rendering E-Mail Messages
-
- //AdjustPageSize.Run();
- //RenameEmailFields.Run();
- //DateTimeFormatAndTimeZoneOffset.Run();
-
- #endregion
-
- #region Rendering Outlook Data Files
-
- //FilterMessages.Run();
- //GetViewInfoForOutlookDataFile.Run();
- //LimitCountOfItemsToRender.Run();
- //RenderOutlookDataFileFolder.Run();
-
- #endregion
-
- #region Rendering PDF Documents
-
- //DisableCharactersGrouping.Run();
- //EnableFontHinting.Run();
- //GetViewInfoForPdfDocument.Run();
- //AdjustImageQuality.Run();
- //EnableLayeredRendering.Run();
- //RenderOriginalPageSize.Run();
- //DisableTextSelection.Run();
- //DisableFontLicenseVerifications.Run();
-
- #endregion
-
- #region Rendering MS Project Documents
-
- //AdjustTimeUnit.Run();
- //GetViewInfoForProjectDocument.Run();
- //RenderProjectTimeInterval.Run();
-
- #endregion
-
- #region Rendering Spreadsheets
-
- //AdjustTextOverflowInCells.Run();
- //RenderGridLines.Run();
- //RenderHiddenRowsAndColumns.Run();
- //RenderPrintAreas.Run();
- //SkipRenderingOfEmptyColumns.Run();
- //SkipRenderingOfEmptyRows.Run();
- //SplitWorksheetsIntoPages.SplitByRows();
- //SplitWorksheetsIntoPages.SplitByRowsAndColumns();
- //RenderRowAndColumnHeadings.Run();
- //GetWorksheetsNames.Run();
- //RenderingNumbers.Run();
- //RenderingXmlSpreadSheetML.Run();
- //RenderingByPageBreaks.Run();
-
- #endregion
-
- #region Rendering Word Processing Documents
- //RenderTrackedChanges.Run();
- #endregion
-
- #region Rendering Web documents
- //RenderingHtmlWithUserDefinedMargins.Run();
- //RenderingChmFiles.Run();
- #endregion
-
- #region Rendering Lotus messages
-
- //RenderingNsf.Run();
- //FilterLotusNotesMessages.Run();
-
- #endregion
-
- #endregion
-
- #region Caching
-
- //UseCacheWhenProcessingDocuments.Run();
-
- #endregion
-
- #region Loading
-
- //LoadPasswordProtectedDocument.Run();
- //LoadDocumentsWithEncoding.Run();
- //SpecifyFileTypeWhenLoadingDocument.Run();
- //SetResourceLoadingTimeout.Run();
-
- #region Loading documents from different sources
-
- //LoadDocumentFromLocalDisk.Run();
- //LoadDocumentFromStream.Run();
- //LoadDocumentFromUrl.Run();
- //LoadDocumentFromFtp.Run();
-
- #endregion
-
- #endregion
-
- #endregion
-
- #region HowTo
- //HowToDetermineFileType.FromFileExtension();
- //HowToDetermineFileType.FromMediaType();
- //HowToDetermineFileType.FromStream();
-
- //HowToLogging.ToConsole();
- //HowToLogging.ToFile();
- #endregion
-
- Console.WriteLine();
- Console.WriteLine("All done.");
- }
- }
-}
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/App.config b/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/App.config
index 38ff2ec36..0a26c4f09 100644
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/App.config
+++ b/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/App.config
@@ -35,7 +35,7 @@
-
+
@@ -65,7 +65,7 @@
-
+
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/GroupDocs.Viewer.Examples.CSharp.Framework.csproj b/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/GroupDocs.Viewer.Examples.CSharp.Framework.csproj
index eaab28820..2235fcd06 100644
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/GroupDocs.Viewer.Examples.CSharp.Framework.csproj
+++ b/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/GroupDocs.Viewer.Examples.CSharp.Framework.csproj
@@ -49,8 +49,8 @@
4
-
- ..\packages\GroupDocs.Viewer.23.12.0\lib\net462\GroupDocs.Viewer.dll
+
+ ..\packages\GroupDocs.Viewer.24.1.1\lib\net462\GroupDocs.Viewer.dll
..\packages\Microsoft.Bcl.AsyncInterfaces.6.0.0\lib\net461\Microsoft.Bcl.AsyncInterfaces.dll
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/RunExamples.cs b/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/RunExamples.cs
index 92ecb404e..db2a7a91c 100644
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/RunExamples.cs
+++ b/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/RunExamples.cs
@@ -30,69 +30,69 @@ class RunExamples
{
static void Main()
{
- Console.WriteLine("Open RunExamples.cs. \nIn Main() method uncomment the example that you want to run.");
- Console.WriteLine("=====================================================");
+ Console.WriteLine("GroupDocs.Viewer for .NET examples.");
+ Console.WriteLine("=====================================================");
#region Quick Start
SetLicenseFromFile.Run();
- //SetLicenseFromStream.Run();
- //SetMeteredLicense.Run();
+ SetLicenseFromStream.Run();
+ SetMeteredLicense.Run();
HelloWorld.Run();
#endregion
#region Basic Usage
- //GetSupportedFileFormats.Run();
- //GetViewInfo.Run();
- //CheckFileIsEncrypted.Run();
+ GetSupportedFileFormats.Run();
+ GetViewInfo.Run();
+ CheckFileIsEncrypted.Run();
#region Processing attachments
- //RetrieveAndPrintDocumentAttachments.Run();
- //RetrieveAndSaveDocumentAttachments.Run();
- //RenderDocumentAttachments.Run();
+ RetrieveAndPrintDocumentAttachments.Run();
+ RetrieveAndSaveDocumentAttachments.Run();
+ RenderDocumentAttachments.Run();
#endregion
#region Render document to HTML
- //RenderToHtmlWithEmbeddedResources.Run();
- //RenderToHtmlWithExternalResources.Run();
+ RenderToHtmlWithEmbeddedResources.Run();
+ RenderToHtmlWithExternalResources.Run();
- //ExcludingFontsFromOutputHtml.Run();
- //MinifyHtmlDocument.Run();
- //RenderToResponsiveHtml.Run();
+ ExcludingFontsFromOutputHtml.Run();
+ MinifyHtmlDocument.Run();
+ RenderToResponsiveHtml.Run();
#endregion
#region Render document to Image
- //RenderToPng.Run();
- //RenderToJpg.Run();
+ RenderToPng.Run();
+ RenderToJpg.Run();
- //GetTextCoordinates.Run();
- //RenderForDisplayWithText.Run();
- //AdjustQualityWhenRenderingToJpg.Run();
- //AdjustImageSize.Run();
- //RenderingWmzAndWmf.Run();
- //RenderingEmzAndEmf.Run();
- //RenderingCdr.Run();
- //RenderingCmx.Run();
- //RenderingAi.Run();
- //RenderingTga.Run();
- //RenderingApng.Run();
+ GetTextCoordinates.Run();
+ RenderForDisplayWithText.Run();
+ AdjustQualityWhenRenderingToJpg.Run();
+ AdjustImageSize.Run();
+ RenderingWmzAndWmf.Run();
+ RenderingEmzAndEmf.Run();
+ RenderingCdr.Run();
+ RenderingCmx.Run();
+ RenderingAi.Run();
+ RenderingTga.Run();
+ RenderingApng.Run();
#endregion
#region Render document to PDF
- //RenderToPdf.Run();
- //GetPdfStream.Run();
+ RenderToPdf.Run();
+ GetPdfStream.Run();
- //AdjustQualityOfJpgImages.Run();
- //ProtectPdfDocument.Run();
+ AdjustQualityOfJpgImages.Run();
+ ProtectPdfDocument.Run();
#endregion
@@ -102,18 +102,18 @@ static void Main()
#region Common rendering options
- //AddWatermark.Run();
- //RenderDocumentWithComments.Run();
- //RenderDocumentWithNotes.Run();
- //RenderHiddenPages.Run();
- //RenderNConsecutivePages.Run();
- //RenderSelectedPages.Run();
- //ReplaceMissingFont.Run();
- //ReorderPages.Run();
- //FlipRotatePages.Run();
- //RenderWithCustomFonts.Run();
- //RenderingTxt.Run();
- //SetImageSizeLimits.Run();
+ AddWatermark.Run();
+ RenderDocumentWithComments.Run();
+ RenderDocumentWithNotes.Run();
+ RenderHiddenPages.Run();
+ RenderNConsecutivePages.Run();
+ RenderSelectedPages.Run();
+ ReplaceMissingFont.Run();
+ ReorderPages.Run();
+ FlipRotatePages.Run();
+ RenderWithCustomFonts.Run();
+ RenderingTxt.Run();
+ SetImageSizeLimits.Run();
#endregion
@@ -121,90 +121,90 @@ static void Main()
#region Rendering CAD Files
- //RenderingPc3Files.Run();
+ RenderingPc3Files.Run();
#endregion
#region Rendering Archive Files
- //GetViewInfoForArchiveFile.Run();
- //RenderArchiveFolder.Run();
- //SpecifyFilenameWhenRenderingArchiveFiles.Run();
- //RenderingRar.Run();
- //RenderingArchivesToMultipleAndSinglePagesHtml.Run();
+ GetViewInfoForArchiveFile.Run();
+ RenderArchiveFolder.Run();
+ SpecifyFilenameWhenRenderingArchiveFiles.Run();
+ RenderingRar.Run();
+ RenderingArchivesToMultipleAndSinglePagesHtml.Run();
#endregion
#region Rendering E-Mail Messages
- //AdjustPageSize.Run();
- //RenameEmailFields.Run();
- //DateTimeFormatAndTimeZoneOffset.Run();
+ AdjustPageSize.Run();
+ RenameEmailFields.Run();
+ DateTimeFormatAndTimeZoneOffset.Run();
#endregion
#region Rendering Outlook Data Files
- //FilterMessages.Run();
- //GetViewInfoForOutlookDataFile.Run();
- //LimitCountOfItemsToRender.Run();
- //RenderOutlookDataFileFolder.Run();
+ FilterMessages.Run();
+ GetViewInfoForOutlookDataFile.Run();
+ LimitCountOfItemsToRender.Run();
+ RenderOutlookDataFileFolder.Run();
#endregion
#region Rendering PDF Documents
- //DisableCharactersGrouping.Run();
- //EnableFontHinting.Run();
- //GetViewInfoForPdfDocument.Run();
- //AdjustImageQuality.Run();
- //EnableLayeredRendering.Run();
- //RenderOriginalPageSize.Run();
- //DisableTextSelection.Run();
- //DisableFontLicenseVerifications.Run();
- //DisableFontLicenseVerifications.Run();
+ DisableCharactersGrouping.Run();
+ EnableFontHinting.Run();
+ GetViewInfoForPdfDocument.Run();
+ AdjustImageQuality.Run();
+ EnableLayeredRendering.Run();
+ RenderOriginalPageSize.Run();
+ DisableTextSelection.Run();
+ DisableFontLicenseVerifications.Run();
+ DisableFontLicenseVerifications.Run();
#endregion
#region Rendering MS Project Documents
- //AdjustTimeUnit.Run();
- //GetViewInfoForProjectDocument.Run();
- //RenderProjectTimeInterval.Run();
+ AdjustTimeUnit.Run();
+ GetViewInfoForProjectDocument.Run();
+ RenderProjectTimeInterval.Run();
#endregion
#region Rendering Spreadsheets
- //AdjustTextOverflowInCells.Run();
- //RenderGridLines.Run();
- //RenderHiddenRowsAndColumns.Run();
- //RenderPrintAreas.Run();
- //SkipRenderingOfEmptyColumns.Run();
- //SkipRenderingOfEmptyRows.Run();
- //SplitWorksheetsIntoPages.SplitByRows();
- //SplitWorksheetsIntoPages.SplitByRowsAndColumns();
- //RenderRowAndColumnHeadings.Run();
- //GetWorksheetsNames.Run();
- //RenderingNumbers.Run();
- //RenderingXmlSpreadSheetML.Run();
- //RenderingByPageBreaks.Run();
+ AdjustTextOverflowInCells.Run();
+ RenderGridLines.Run();
+ RenderHiddenRowsAndColumns.Run();
+ RenderPrintAreas.Run();
+ SkipRenderingOfEmptyColumns.Run();
+ SkipRenderingOfEmptyRows.Run();
+ SplitWorksheetsIntoPages.SplitByRows();
+ SplitWorksheetsIntoPages.SplitByRowsAndColumns();
+ RenderRowAndColumnHeadings.Run();
+ GetWorksheetsNames.Run();
+ RenderingNumbers.Run();
+ RenderingXmlSpreadSheetML.Run();
+ RenderingByPageBreaks.Run();
#endregion
#region Rendering Word Processing Documents
- //RenderTrackedChanges.Run();
+ RenderTrackedChanges.Run();
#endregion
#region Rendering Web documents
- //RenderingHtmlWithUserDefinedMargins.Run();
- //RenderingChmFiles.Run();
+ RenderingHtmlWithUserDefinedMargins.Run();
+ RenderingChmFiles.Run();
#endregion
#region Rendering Lotus messages
- //RenderingNsf.Run();
- //FilterLotusNotesMessages.Run();
+ RenderingNsf.Run();
+ FilterLotusNotesMessages.Run();
#endregion
@@ -212,23 +212,22 @@ static void Main()
#region Caching
- //UseCacheWhenProcessingDocuments.Run();
+ UseCacheWhenProcessingDocuments.Run();
#endregion
#region Loading
- //LoadPasswordProtectedDocument.Run();
- //LoadDocumentsWithEncoding.Run();
- //SpecifyFileTypeWhenLoadingDocument.Run();
- //SetResourceLoadingTimeout.Run();
+ LoadPasswordProtectedDocument.Run();
+ LoadDocumentsWithEncoding.Run();
+ SpecifyFileTypeWhenLoadingDocument.Run();
+ SetResourceLoadingTimeout.Run();
#region Loading documents from different sources
- //LoadDocumentFromLocalDisk.Run();
- //LoadDocumentFromStream.Run();
- //LoadDocumentFromUrl.Run();
- //LoadDocumentFromFtp.Run();
+ LoadDocumentFromLocalDisk.Run();
+ LoadDocumentFromStream.Run();
+ LoadDocumentFromUrl.Run();
#endregion
@@ -237,12 +236,12 @@ static void Main()
#endregion
#region HowTo
- //HowToDetermineFileType.FromFileExtension();
- //HowToDetermineFileType.FromMediaType();
- //HowToDetermineFileType.FromStream();
+ HowToDetermineFileType.FromFileExtension();
+ HowToDetermineFileType.FromMediaType();
+ HowToDetermineFileType.FromStream();
- //HowToLogging.ToConsole();
- //HowToLogging.ToFile();
+ HowToLogging.ToConsole();
+ HowToLogging.ToFile();
#endregion
Console.WriteLine();
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/packages.config b/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/packages.config
index 84a295bc2..0249b5ed2 100644
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/packages.config
+++ b/Examples/GroupDocs.Viewer.Examples.CSharp.Framework/packages.config
@@ -1,6 +1,6 @@
-
+
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/GroupDocs.Viewer.Examples.CSharp.NET6.csproj b/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/GroupDocs.Viewer.Examples.CSharp.NET6.csproj
index 6460e8bb7..c85340fa1 100644
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/GroupDocs.Viewer.Examples.CSharp.NET6.csproj
+++ b/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/GroupDocs.Viewer.Examples.CSharp.NET6.csproj
@@ -1,4 +1,4 @@
-
+
Exe
@@ -8,7 +8,7 @@
-
+
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/RunExamples.cs b/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/RunExamples.cs
index d353a234f..83a9ea0f0 100644
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/RunExamples.cs
+++ b/Examples/GroupDocs.Viewer.Examples.CSharp.NET6/RunExamples.cs
@@ -22,220 +22,235 @@
using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingWebDocuments;
using GroupDocs.Viewer.Examples.CSharp.AdvancedUsage.Rendering.RenderingOptionsByDocumentType.RenderingLotusNotesDataFiles;
- Console.WriteLine("Open RunExamples.cs. \nIn Main() method uncomment the example that you want to run.");
- Console.WriteLine("=====================================================");
+namespace GroupDocs.Viewer.Examples.CSharp
+{
+ internal class Program
+ {
+ public static void Main(string[] args)
+ {
+ Console.WriteLine("GroupDocs.Viewer for .NET examples.");
+ Console.WriteLine("=====================================================");
- #region Quick Start
+ #region Quick Start
- SetLicenseFromFile.Run();
- //SetLicenseFromStream.Run();
- //SetMeteredLicense.Run();
- HelloWorld.Run();
+ SetLicenseFromFile.Run();
+ SetLicenseFromStream.Run();
+ SetMeteredLicense.Run();
+ HelloWorld.Run();
-#endregion
+ #endregion
-#region Basic Usage
+ #region Basic Usage
-//GetSupportedFileFormats.Run();
-//GetViewInfo.Run();
-//CheckFileIsEncrypted.Run();
+ GetSupportedFileFormats.Run();
+ GetViewInfo.Run();
+ CheckFileIsEncrypted.Run();
-#region Processing attachments
+ #region Processing attachments
-//RetrieveAndPrintDocumentAttachments.Run();
-//RetrieveAndSaveDocumentAttachments.Run();
-//RenderDocumentAttachments.Run();
+ RetrieveAndPrintDocumentAttachments.Run();
+ RetrieveAndSaveDocumentAttachments.Run();
+ RenderDocumentAttachments.Run();
-#endregion
+ #endregion
-#region Render document to HTML
+ #region Render document to HTML
-//RenderToHtmlWithEmbeddedResources.Run();
-//RenderToHtmlWithExternalResources.Run();
+ RenderToHtmlWithEmbeddedResources.Run();
+ RenderToHtmlWithExternalResources.Run();
-//ExcludingFontsFromOutputHtml.Run();
-//MinifyHtmlDocument.Run();
-//RenderToResponsiveHtml.Run();
+ ExcludingFontsFromOutputHtml.Run();
+ MinifyHtmlDocument.Run();
+ RenderToResponsiveHtml.Run();
-#endregion
+ #endregion
-#region Render document to Image
+ #region Render document to Image
-//RenderToPng.Run();
-//RenderToJpg.Run();
+ RenderToPng.Run();
+ RenderToJpg.Run();
-//GetTextCoordinates.Run();
-//RenderForDisplayWithText.Run();
-//AdjustQualityWhenRenderingToJpg.Run();
-//AdjustImageSize.Run();
-//RenderingWmzAndWmf.Run();
-//RenderingEmzAndEmf.Run();
-//RenderingCdr.Run();
-//RenderingCmx.Run();
-//RenderingAi.Run();
-//RenderingTga.Run();
-//RenderingApng.Run();
+ GetTextCoordinates.Run();
+ RenderForDisplayWithText.Run();
+ AdjustQualityWhenRenderingToJpg.Run();
+ AdjustImageSize.Run();
+ RenderingWmzAndWmf.Run();
+ RenderingEmzAndEmf.Run();
+ RenderingCdr.Run();
+ RenderingCmx.Run();
+ RenderingAi.Run();
+ RenderingTga.Run();
+ RenderingApng.Run();
-#endregion
+ #endregion
-#region Render document to PDF
+ #region Render document to PDF
-//RenderToPdf.Run();
-//GetPdfStream.Run();
+ RenderToPdf.Run();
+ GetPdfStream.Run();
-//AdjustQualityOfJpgImages.Run();
-//ProtectPdfDocument.Run();
+ AdjustQualityOfJpgImages.Run();
+ ProtectPdfDocument.Run();
-#endregion
+ #endregion
-#endregion
+ #endregion
-#region Advanced Usage
+ #region Advanced Usage
-#region Common rendering options
+ #region Common rendering options
-//AddWatermark.Run();
-//RenderDocumentWithComments.Run();
-//RenderDocumentWithNotes.Run();
-//RenderHiddenPages.Run();
-//RenderNConsecutivePages.Run();
-//RenderSelectedPages.Run();
-//ReplaceMissingFont.Run();
-//ReorderPages.Run();
-//FlipRotatePages.Run();
-//RenderWithCustomFonts.Run();
-//RenderingTxt.Run();
-//SetImageSizeLimits.Run();
-//CancelRenderWithCancellationToken.Run();
+ AddWatermark.Run();
+ RenderDocumentWithComments.Run();
+ RenderDocumentWithNotes.Run();
+ RenderHiddenPages.Run();
+ RenderNConsecutivePages.Run();
+ RenderSelectedPages.Run();
+ ReplaceMissingFont.Run();
+ ReorderPages.Run();
+ FlipRotatePages.Run();
+ RenderWithCustomFonts.Run();
+ RenderingTxt.Run();
+ SetImageSizeLimits.Run();
+ CancelRenderWithCancellationToken.Run();
-#endregion
+ #endregion
-#region Rendering options by document type
+ #region Rendering options by document type
-#region Rendering CAD Files
+ #region Rendering CAD Files
-//RenderingPc3Files.Run();
+ RenderingPc3Files.Run();
-#endregion
+ #endregion
-#region Rendering Archive Files
+ #region Rendering Archive Files
-//GetViewInfoForArchiveFile.Run();
-//RenderArchiveFolder.Run();
-//SpecifyFilenameWhenRenderingArchiveFiles.Run();
-//RenderingRar.Run();
-//RenderingArchivesToMultipleAndSinglePagesHtml.Run();
+ GetViewInfoForArchiveFile.Run();
+ RenderArchiveFolder.Run();
+ SpecifyFilenameWhenRenderingArchiveFiles.Run();
+ RenderingRar.Run();
+ RenderingArchivesToMultipleAndSinglePagesHtml.Run();
-#endregion
+ #endregion
-#region Rendering E-Mail Messages
+ #region Rendering E-Mail Messages
-//AdjustPageSize.Run();
-//RenameEmailFields.Run();
-//DateTimeFormatAndTimeZoneOffset.Run();
+ AdjustPageSize.Run();
+ RenameEmailFields.Run();
+ DateTimeFormatAndTimeZoneOffset.Run();
-#endregion
+ #endregion
-#region Rendering Outlook Data Files
+ #region Rendering Outlook Data Files
-//FilterMessages.Run();
-//GetViewInfoForOutlookDataFile.Run();
-//LimitCountOfItemsToRender.Run();
-//RenderOutlookDataFileFolder.Run();
+ FilterMessages.Run();
+ GetViewInfoForOutlookDataFile.Run();
+ LimitCountOfItemsToRender.Run();
+ RenderOutlookDataFileFolder.Run();
-#endregion
+ #endregion
-#region Rendering PDF Documents
+ #region Rendering PDF Documents
-//DisableCharactersGrouping.Run();
-//EnableFontHinting.Run();
-//GetViewInfoForPdfDocument.Run();
-//AdjustImageQuality.Run();
-//EnableLayeredRendering.Run();
-//RenderOriginalPageSize.Run();
-//DisableTextSelection.Run();
-//DisableFontLicenseVerifications.Run();
+ DisableCharactersGrouping.Run();
+ EnableFontHinting.Run();
+ GetViewInfoForPdfDocument.Run();
+ AdjustImageQuality.Run();
+ EnableLayeredRendering.Run();
+ RenderOriginalPageSize.Run();
+ DisableTextSelection.Run();
+ DisableFontLicenseVerifications.Run();
-#endregion
+ #endregion
-#region Rendering MS Project Documents
+ #region Rendering MS Project Documents
-//AdjustTimeUnit.Run();
-//GetViewInfoForProjectDocument.Run();
-//RenderProjectTimeInterval.Run();
+ AdjustTimeUnit.Run();
+ GetViewInfoForProjectDocument.Run();
+ RenderProjectTimeInterval.Run();
-#endregion
+ #endregion
-#region Rendering Spreadsheets
+ #region Rendering Spreadsheets
-//AdjustTextOverflowInCells.Run();
-//RenderGridLines.Run();
-//RenderHiddenRowsAndColumns.Run();
-//RenderPrintAreas.Run();
-//SkipRenderingOfEmptyColumns.Run();
-//SkipRenderingOfEmptyRows.Run();
-//SplitWorksheetsIntoPages.SplitByRows();
-//SplitWorksheetsIntoPages.SplitByRowsAndColumns();
-//RenderRowAndColumnHeadings.Run();
-//GetWorksheetsNames.Run();
-//RenderingNumbers.Run();
-//RenderingXmlSpreadSheetML.Run();
-//RenderingByPageBreaks.Run();
+ AdjustTextOverflowInCells.Run();
+ RenderGridLines.Run();
+ RenderHiddenRowsAndColumns.Run();
+ RenderPrintAreas.Run();
+ SkipRenderingOfEmptyColumns.Run();
+ SkipRenderingOfEmptyRows.Run();
+ SplitWorksheetsIntoPages.SplitByRows();
+ SplitWorksheetsIntoPages.SplitByRowsAndColumns();
+ RenderRowAndColumnHeadings.Run();
+ GetWorksheetsNames.Run();
+ RenderingNumbers.Run();
+ RenderingXmlSpreadSheetML.Run();
+ RenderingByPageBreaks.Run();
-#endregion
+ #endregion
-#region Rendering Word Processing Documents
-//RenderTrackedChanges.Run();
-#endregion
+ #region Rendering Word Processing Documents
-#region Rendering Web documents
-//RenderingHtmlWithUserDefinedMargins.Run();
-//RenderingChmFiles.Run();
-#endregion
+ RenderTrackedChanges.Run();
-#region Rendering Lotus messages
+ #endregion
-//RenderingNsf.Run();
-//FilterLotusNotesMessages.Run();
+ #region Rendering Web documents
-#endregion
+ RenderingHtmlWithUserDefinedMargins.Run();
+ RenderingChmFiles.Run();
-#endregion
+ #endregion
-#region Caching
+ #region Rendering Lotus messages
-//UseCacheWhenProcessingDocuments.Run();
+ RenderingNsf.Run();
+ FilterLotusNotesMessages.Run();
-#endregion
+ #endregion
-#region Loading
+ #endregion
-//LoadPasswordProtectedDocument.Run();
-//LoadDocumentsWithEncoding.Run();
-//SpecifyFileTypeWhenLoadingDocument.Run();
-//SetResourceLoadingTimeout.Run();
+ #region Caching
-#region Loading documents from different sources
+ UseCacheWhenProcessingDocuments.Run();
-//LoadDocumentFromLocalDisk.Run();
-//LoadDocumentFromStream.Run();
-//LoadDocumentFromUrl.Run();
-// LoadDocumentFromFtp.Run();
+ #endregion
-#endregion
+ #region Loading
-#endregion
+ LoadPasswordProtectedDocument.Run();
+ LoadDocumentsWithEncoding.Run();
+ SpecifyFileTypeWhenLoadingDocument.Run();
+ SetResourceLoadingTimeout.Run();
-#endregion
+ #region Loading documents from different sources
-#region HowTo
-//HowToDetermineFileType.FromFileExtension();
-//HowToDetermineFileType.FromMediaType();
-//HowToDetermineFileType.FromStream();
+ LoadDocumentFromLocalDisk.Run();
+ LoadDocumentFromStream.Run();
+ LoadDocumentFromUrl.Run();
+ LoadDocumentFromFtp.Run();
-//HowToLogging.ToConsole();
-//HowToLogging.ToFile();
-#endregion
+ #endregion
- Console.WriteLine();
- Console.WriteLine("All done.");
+ #endregion
+
+ #endregion
+
+ #region HowTo
+
+ HowToDetermineFileType.FromFileExtension();
+ HowToDetermineFileType.FromMediaType();
+ HowToDetermineFileType.FromStream();
+
+ HowToLogging.ToConsole();
+ HowToLogging.ToFile();
+
+ #endregion
+
+ Console.WriteLine();
+ Console.WriteLine("All done.");
+ }
+ }
+}
\ No newline at end of file
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp.sln b/Examples/GroupDocs.Viewer.Examples.CSharp.sln
index 7e8b7bd02..1dbb4e23a 100644
--- a/Examples/GroupDocs.Viewer.Examples.CSharp.sln
+++ b/Examples/GroupDocs.Viewer.Examples.CSharp.sln
@@ -7,9 +7,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GroupDocs.Viewer.Examples.C
EndProject
Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "GroupDocs.Viewer.Examples.CSharp", "GroupDocs.Viewer.Examples.CSharp\GroupDocs.Viewer.Examples.CSharp.shproj", "{52FCB48E-82A0-4201-ACA1-E9B6047E2047}"
EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GroupDocs.Viewer.Examples.CSharp.Core", "GroupDocs.Viewer.Examples.CSharp.Core\GroupDocs.Viewer.Examples.CSharp.Core.csproj", "{A5DDB218-44E3-4006-B89B-DDC227C973F7}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GroupDocs.Viewer.Examples.CSharp.NET6", "GroupDocs.Viewer.Examples.CSharp.NET6\GroupDocs.Viewer.Examples.CSharp.NET6.csproj", "{A4D33401-0075-4676-B4DD-50A423AA33F0}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GroupDocs.Viewer.Examples.CSharp.NET6", "GroupDocs.Viewer.Examples.CSharp.NET6\GroupDocs.Viewer.Examples.CSharp.NET6.csproj", "{A4D33401-0075-4676-B4DD-50A423AA33F0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -21,10 +19,6 @@ Global
{FE0B7FB6-3D10-4952-9178-EC52E591B3D2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FE0B7FB6-3D10-4952-9178-EC52E591B3D2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FE0B7FB6-3D10-4952-9178-EC52E591B3D2}.Release|Any CPU.Build.0 = Release|Any CPU
- {A5DDB218-44E3-4006-B89B-DDC227C973F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {A5DDB218-44E3-4006-B89B-DDC227C973F7}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {A5DDB218-44E3-4006-B89B-DDC227C973F7}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {A5DDB218-44E3-4006-B89B-DDC227C973F7}.Release|Any CPU.Build.0 = Release|Any CPU
{A4D33401-0075-4676-B4DD-50A423AA33F0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A4D33401-0075-4676-B4DD-50A423AA33F0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A4D33401-0075-4676-B4DD-50A423AA33F0}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -39,7 +33,6 @@ Global
GlobalSection(SharedMSBuildProjectFiles) = preSolution
GroupDocs.Viewer.Examples.CSharp\GroupDocs.Viewer.Examples.CSharp.projitems*{52fcb48e-82a0-4201-aca1-e9b6047e2047}*SharedItemsImports = 13
GroupDocs.Viewer.Examples.CSharp\GroupDocs.Viewer.Examples.CSharp.projitems*{a4d33401-0075-4676-b4dd-50a423aa33f0}*SharedItemsImports = 5
- GroupDocs.Viewer.Examples.CSharp\GroupDocs.Viewer.Examples.CSharp.projitems*{a5ddb218-44e3-4006-b89b-ddc227c973f7}*SharedItemsImports = 5
GroupDocs.Viewer.Examples.CSharp\GroupDocs.Viewer.Examples.CSharp.projitems*{fe0b7fb6-3d10-4952-9178-ec52e591b3d2}*SharedItemsImports = 4
EndGlobalSection
EndGlobal
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp/AdvancedUsage/Loading/LoadingDocumentsFromDifferentSources/LoadDocumentFromFtp.cs b/Examples/GroupDocs.Viewer.Examples.CSharp/AdvancedUsage/Loading/LoadingDocumentsFromDifferentSources/LoadDocumentFromFtp.cs
index fdb93a589..617ba78ee 100644
--- a/Examples/GroupDocs.Viewer.Examples.CSharp/AdvancedUsage/Loading/LoadingDocumentsFromDifferentSources/LoadDocumentFromFtp.cs
+++ b/Examples/GroupDocs.Viewer.Examples.CSharp/AdvancedUsage/Loading/LoadingDocumentsFromDifferentSources/LoadDocumentFromFtp.cs
@@ -14,7 +14,14 @@ public static void Run()
{
string outputDirectory = Utils.GetOutputDirectoryPath();
string pageFilePathFormat = Path.Combine(outputDirectory, "page_{0}.html");
- string filePath = "ftp://localhost/sample.doc";
+ string filePath = ""; // e.g. ftp://localhost/sample.doc
+
+ if (string.IsNullOrEmpty(filePath))
+ {
+ Console.WriteLine("\n[LoadDocumentFromFtp] Please make sure to set a proper path to the file.");
+ return;
+ }
+
Stream stream = GetFileFromFtp(filePath);
using (Viewer viewer = new Viewer(stream))
{
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp/AdvancedUsage/Rendering/CommonRenderingOptions/SetImageSizeLimits.cs b/Examples/GroupDocs.Viewer.Examples.CSharp/AdvancedUsage/Rendering/CommonRenderingOptions/SetImageSizeLimits.cs
index 80b95bdde..9d5b0c1d5 100644
--- a/Examples/GroupDocs.Viewer.Examples.CSharp/AdvancedUsage/Rendering/CommonRenderingOptions/SetImageSizeLimits.cs
+++ b/Examples/GroupDocs.Viewer.Examples.CSharp/AdvancedUsage/Rendering/CommonRenderingOptions/SetImageSizeLimits.cs
@@ -14,7 +14,7 @@ public static void Run()
string outputDirectory = Utils.GetOutputDirectoryPath();
string outputFile = Path.Combine(outputDirectory, "result_image_size_limit.jpg");
- using (Viewer viewer = new Viewer(TestFiles.SAMPLE_CF2))
+ using (Viewer viewer = new Viewer(TestFiles.SAMPLE_DOCX))
{
JpgViewOptions options =
new JpgViewOptions(outputFile);
diff --git a/Examples/GroupDocs.Viewer.Examples.CSharp/QuickStart/SetMeteredLicense.cs b/Examples/GroupDocs.Viewer.Examples.CSharp/QuickStart/SetMeteredLicense.cs
index 70aa4836e..c5b6847a5 100644
--- a/Examples/GroupDocs.Viewer.Examples.CSharp/QuickStart/SetMeteredLicense.cs
+++ b/Examples/GroupDocs.Viewer.Examples.CSharp/QuickStart/SetMeteredLicense.cs
@@ -10,8 +10,14 @@ class SetMeteredLicense
{
public static void Run()
{
- string publicKey = "*****";
- string privateKey = "*****";
+ string publicKey = "";
+ string privateKey = "";
+
+ if (string.IsNullOrEmpty(publicKey))
+ {
+ Console.WriteLine("\n[SetMeteredLicense] Please make sure to set Metered keys. Lear more at https://purchase.groupdocs.com/faqs/licensing/metered.");
+ return;
+ }
Metered metered = new Metered();
metered.SetMeteredKey(publicKey, privateKey);