Skip to content

Commit 0ee2b4b

Browse files
Merge pull request #1840 from Syncfusion-Content/hotfix/hotfix-v31.2.12
DOCINFRA-2341_merged_using_automation
2 parents c2f2547 + 717de0c commit 0ee2b4b

10 files changed

+514
-57
lines changed

Document-Processing-toc.html

Lines changed: 96 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5114,48 +5114,49 @@
51145114
</li>
51155115
</ul>
51165116
</li>
5117-
<li>Installation<ul>
5118-
<li>Web Installer
5119-
<ul>
5120-
<li>
5121-
<a href="/document-processing/excel/excel-library/net/installation/web-installer/how-to-download">How to Download?</a>
5122-
</li>
5123-
<li>
5124-
<a href="/document-processing/excel/excel-library/net/installation/web-installer/how-to-install">How to Install?</a>
5125-
</li>
5126-
</ul>
5127-
</li>
5128-
<li>Offline Installer
5129-
<ul>
5130-
<li>
5131-
<a href="/document-processing/excel/excel-library/net/installation/offline-installer/how-to-download">How to Download?</a>
5132-
</li>
5133-
<li>
5134-
<a href="/document-processing/excel/excel-library/net/installation/offline-installer/how-to-install">How to Install?</a>
5135-
</li>
5136-
</ul>
5137-
</li>
5138-
<li>Mac Installer
5117+
<li>Installation
51395118
<ul>
5140-
<li>
5141-
<a href="/document-processing/excel/excel-library/net/installation/mac-installer/how-to-download">How to Download?</a>
5119+
<li>Web Installer
5120+
<ul>
5121+
<li>
5122+
<a href="/document-processing/excel/excel-library/net/installation/web-installer/how-to-download">How to Download?</a>
5123+
</li>
5124+
<li>
5125+
<a href="/document-processing/excel/excel-library/net/installation/web-installer/how-to-install">How to Install?</a>
5126+
</li>
5127+
</ul>
51425128
</li>
5143-
<li>
5144-
<a href="/document-processing/excel/excel-library/net/installation/mac-installer/how-to-install">How to Install?</a>
5129+
<li>Offline Installer
5130+
<ul>
5131+
<li>
5132+
<a href="/document-processing/excel/excel-library/net/installation/offline-installer/how-to-download">How to Download?</a>
5133+
</li>
5134+
<li>
5135+
<a href="/document-processing/excel/excel-library/net/installation/offline-installer/how-to-install">How to Install?</a>
5136+
</li>
5137+
</ul>
51455138
</li>
5146-
</ul>
5147-
</li>
5148-
<li>Linux Installer
5149-
<ul>
5150-
<li>
5151-
<a href="/document-processing/excel/excel-library/net/installation/linux-installer/how-to-download">How to Download?</a>
5139+
<li>Mac Installer
5140+
<ul>
5141+
<li>
5142+
<a href="/document-processing/excel/excel-library/net/installation/mac-installer/how-to-download">How to Download?</a>
5143+
</li>
5144+
<li>
5145+
<a href="/document-processing/excel/excel-library/net/installation/mac-installer/how-to-install">How to Install?</a>
5146+
</li>
5147+
</ul>
51525148
</li>
5153-
<li>
5154-
<a href="/document-processing/excel/excel-library/net/installation/linux-installer/how-to-install">How to Install?</a>
5149+
<li>Linux Installer
5150+
<ul>
5151+
<li>
5152+
<a href="/document-processing/excel/excel-library/net/installation/linux-installer/how-to-download">How to Download?</a>
5153+
</li>
5154+
<li>
5155+
<a href="/document-processing/excel/excel-library/net/installation/linux-installer/how-to-install">How to Install?</a>
5156+
</li>
5157+
</ul>
51555158
</li>
51565159
</ul>
5157-
</li>
5158-
</ul>
51595160
</li>
51605161
<li>
51615162
<a href="/document-processing/excel/excel-library/net/document-object-model">Document Object Model</a>
@@ -5436,6 +5437,9 @@
54365437
<li>
54375438
<a href="/document-processing/excel/excel-library/net/Performance-Metrics">Performance Metrics</a>
54385439
</li>
5440+
<li>
5441+
<a href="/document-processing/excel/excel-library/net/Linux">Linux</a>
5442+
</li>
54395443
<li>
54405444
<a href="/document-processing/excel/excel-library/net/faq">FAQ</a>
54415445
<ul>
@@ -5790,6 +5794,60 @@
57905794
<li>
57915795
<a href="/document-processing/excel/excel-library/net/faqs/how-to-avoid-conflicts-when-using-multiple-versions-of-Syncfusion-libraries">How to avoid conflicts when using multiple versions of Syncfusion libraries?</a>
57925796
</li>
5797+
<li>
5798+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-converting-an-xlsb-file-to-xlsx">Does XlsIO support converting an XLSB file to XLSX?</a>
5799+
</li>
5800+
<li>
5801+
<a href="/document-processing/excel/excel-library/net/faqs/can-xlsio-determine-PDF-page-count-before-Excel-to-PDF-conversion">Can XlsIO determine PDF page count before Excel to PDF conversion?</a>
5802+
</li>
5803+
<li>
5804+
<a href="/document-processing/excel/excel-library/net/faqs/how-many-hyperlinks-can-a-single-cell-contain-in-Excel">How many hyperlinks can a single cell contain in Excel?</a>
5805+
</li>
5806+
<li>
5807+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-apply-custom-filtering-to-string-data-types-using-XlsIO">How to apply custom filtering to string data types using XlsIO?</a>
5808+
</li>
5809+
<li>
5810+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-get-RGB-values-of-a-cells-background-color">How to get RGB values of a cell's background color?</a>
5811+
</li>
5812+
<li>
5813+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-opacity-or-transparency-for-cell-background-colors-in-Excel">Does XlsIO support opacity or transparency for cell background colors in Excel?</a>
5814+
</li>
5815+
<li>
5816+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-internal-links-when-converting-Excel-to-PDF">Does XlsIO support internal links when converting Excel to PDF?</a>
5817+
</li>
5818+
<li>
5819+
<a href="/document-processing/excel/excel-library/net/faqs/what-ExcelKnownColors-are-available-in-syncfusion-xlsio">What ExcelKnownColors are available in Syncfusion XlsIO?</a>
5820+
</li>
5821+
<li>
5822+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-autofit-for-merged-cells">Does XlsIO support autofit for merged cells?</a>
5823+
</li>
5824+
<li>
5825+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-multiple-markers-in-a-single-Excel-cell">Does XlsIO support multiple markers in a single Excel cell?</a>
5826+
</li>
5827+
<li>
5828+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-setting-row-height-for-individual-cells-in-Excel">Does XlsIO support setting row height for individual cells in Excel?</a>
5829+
</li>
5830+
<li>
5831+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-access-the-built-in-properties-of-Excel-documents">How to access the built-in properties of Excel documents?</a>
5832+
</li>
5833+
<li>
5834+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-get-the-column-width-and-row-height-in-pixels">How to get the column width and row height in pixels?</a>
5835+
</li>
5836+
<li>
5837+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-sensititivity-labels">Does XlsIO support sensitivity labels?</a>
5838+
</li>
5839+
<li>
5840+
<a href="/document-processing/excel/excel-library/net/faqs/how-to-set-hex-color-value-to-the-cell">How to set a hex color value for a cell?</a>
5841+
</li>
5842+
<li>
5843+
<a href="/document-processing/excel/excel-library/net/faqs/in-which-situation-we-use-EnablePartialTrustCode-property">When should use EnablePartialTrustCode property?</a>
5844+
</li>
5845+
<li>
5846+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-reading-Excel-from-azure-blob-storage">Does XlsIO support reading Excel from Azure Blob Storage?</a>
5847+
</li>
5848+
<li>
5849+
<a href="/document-processing/excel/excel-library/net/faqs/does-xlsio-support-auto-correcting formulas">Does XlsIO support auto-correcting formulas?</a>
5850+
</li>
57935851
</ul>
57945852
</li>
57955853
</ul>
@@ -5821,7 +5879,7 @@
58215879
<a href="/document-processing/excel/conversions/excel-to-pdf/net/NuGet-Packages-Required-for-Excel-to-PDF">NuGet Packages Required</a>
58225880
</li>
58235881
<li>Getting Started
5824-
<ul>
5882+
<ul>
58255883
<li>
58265884
<a href="/document-processing/excel/conversions/excel-to-pdf/net/convert-excel-to-pdf-in-asp-net-core">ASP.NET Core</a>
58275885
</li>
@@ -5914,7 +5972,7 @@
59145972
<li>
59155973
<a href="/document-processing/excel/conversions/excel-to-pdf/net/faqs/is-it-possible-to-use-skiasharp-version-different-than-xlsiorenderer">Is it possible to use skiasharp version different than XlsIORenderer?</a>
59165974
</li>
5917-
<li>
5975+
<li>
59185976
<a href="/document-processing/excel/conversions/excel-to-pdf/net/faqs/does-xlsio-support-background-image-preserved-in-excel-to-pdf-conversion">Does XlsIO support background image in Excel to PDF conversion?</a>
59195977
</li>
59205978
</ul>

Document-Processing/Excel/Conversions/Chart-to-Image/NET/Chart-to-Image-Conversion.md

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,30 +19,36 @@ The following code snippet shows how to convert an Excel chart to an image using
1919
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/Chart%20to%20Image/Chart%20to%20Image/.NET/Chart%20to%20Image/Chart%20to%20Image/Program.cs,180" %}
2020
using (ExcelEngine excelEngine = new ExcelEngine())
2121
{
22-
IApplication application = excelEngine.Excel;
23-
application.DefaultVersion = ExcelVersion.Xlsx;
22+
//Initialize application
23+
IApplication application = excelEngine.Excel;
24+
25+
//Set the default version as Xlsx
26+
application.DefaultVersion = ExcelVersion.Xlsx;
2427

25-
// Initialize XlsIORenderer
26-
application.XlsIORenderer = new XlsIORenderer();
28+
//Initialize XlsIORenderer
29+
application.XlsIORenderer = new XlsIORenderer();
2730

28-
//Set converter chart image format to PNG
29-
application.XlsIORenderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png;
31+
//Set converter chart image format to PNG or JPEG
32+
application.XlsIORenderer.ChartRenderingOptions.ImageFormat = ExportImageFormat.Png;
3033

31-
FileStream inputStream = new FileStream(Path.GetFullPath(@"Data/InputTemplate.xlsx"), FileMode.Open, FileAccess.Read);
32-
IWorkbook workbook = application.Workbooks.Open(inputStream);
33-
IWorksheet worksheet = workbook.Worksheets[0];
34+
//Set the chart image quality to best
35+
application.XlsIORenderer.ChartRenderingOptions.ScalingMode = ScalingMode.Best;
3436

35-
IChart chart = worksheet.Charts[0];
37+
//Open existing workbook with chart
38+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
39+
IWorksheet worksheet = workbook.Worksheets[0];
40+
41+
//Access the chart from the worksheet
42+
IChart chart = worksheet.Charts[0];
3643

37-
#region Save
38-
//Saving the workbook
39-
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Image.png"), FileMode.Create, FileAccess.Write);
40-
chart.SaveAsImage(outputStream);
41-
#endregion
44+
#region Save
45+
//Exporting the chart as image
46+
FileStream outputStream = new FileStream(Path.GetFullPath("Output/Image.png"), FileMode.Create, FileAccess.Write);
47+
chart.SaveAsImage(outputStream);
48+
#endregion
4249

43-
//Dispose streams
44-
outputStream.Dispose();
45-
inputStream.Dispose();
50+
//Dispose streams
51+
outputStream.Dispose();
4652
}
4753
{% endhighlight %}
4854

Document-Processing/Excel/Excel-Library/NET/Worksheet/Page-Setup-Options.md

Lines changed: 115 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,4 +1024,118 @@ End Using
10241024
{% endhighlight %}
10251025
{% endtabs %}
10261026

1027-
A complete working example to add headers and footers in an Excel document using C# is present on [this GitHub page.](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Worksheet%20Features/Header%20and%20Footer/.NET/Header%20and%20Footer)
1027+
A complete working example to add headers and footers in an Excel document using C# is present on [this GitHub page.](https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Worksheet%20Features/Header%20and%20Footer/.NET/Header%20and%20Footer)
1028+
1029+
## Paper Size
1030+
1031+
The <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.Interfaces.IPageSetupBase.html#Syncfusion_XlsIO_Interfaces_IPageSetupBase_PaperSize">PaperSize</a> functionality allows you to specify the paper size for worksheet.
1032+
1033+
The following code snippet shows how to use PaperSize.
1034+
1035+
{% tabs %}
1036+
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/Worksheet%20Features/PaperSize/.NET/PaperSize/PaperSize/Program.cs,180" %}
1037+
using (ExcelEngine excelEngine = new ExcelEngine())
1038+
{
1039+
IApplication application = excelEngine.Excel;
1040+
application.DefaultVersion = ExcelVersion.Xlsx;
1041+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
1042+
IWorksheet worksheet = workbook.Worksheets[0];
1043+
1044+
//Set the paper size to A4
1045+
worksheet.PageSetup.PaperSize = ExcelPaperSize.PaperA4;
1046+
1047+
//Saving the workbook
1048+
workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
1049+
}
1050+
{% endhighlight %}
1051+
1052+
{% highlight c# tabtitle="C# [Windows-specific]" %}
1053+
using (ExcelEngine excelEngine = new ExcelEngine())
1054+
{
1055+
IApplication application = excelEngine.Excel;
1056+
application.DefaultVersion = ExcelVersion.Xlsx;
1057+
IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx");
1058+
IWorksheet worksheet = workbook.Worksheets[0];
1059+
1060+
//Set the paper size to A4
1061+
worksheet.PageSetup.PaperSize = ExcelPaperSize.PaperA4;
1062+
1063+
//Saving the workbook
1064+
workbook.SaveAs("Output.xlsx");
1065+
}
1066+
{% endhighlight %}
1067+
1068+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
1069+
Using excelEngine As ExcelEngine = New ExcelEngine()
1070+
Dim application As IApplication = excelEngine.Excel
1071+
application.DefaultVersion = ExcelVersion.Xlsx
1072+
Dim workbook As IWorkbook = application.Workbooks.Open("InputTemplate.xlsx")
1073+
Dim worksheet As IWorksheet = workbook.Worksheets(0)
1074+
1075+
'Set the paper size to A4
1076+
worksheet.PageSetup.PaperSize = ExcelPaperSize.PaperA4
1077+
1078+
'Saving the workbook
1079+
workbook.SaveAs("Output.xlsx")
1080+
End Using
1081+
{% endhighlight %}
1082+
{% endtabs %}
1083+
1084+
A complete working example to set the paper size in C# is present on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Worksheet%20Features/PaperSize/.NET/PaperSize">this GitHub page</a>.
1085+
1086+
## Orientation
1087+
1088+
The <a href="https://help.syncfusion.com/cr/document-processing/Syncfusion.XlsIO.Interfaces.IPageSetupBase.html#Syncfusion_XlsIO_Interfaces_IPageSetupBase_Orientation">Orientation</a> functionality allows you to specify the orientation for worksheet.
1089+
1090+
The following code snippet shows how to use Orientation.
1091+
1092+
{% tabs %}
1093+
{% highlight c# tabtitle="C# [Cross-platform]" playgroundButtonLink="https://raw.githubusercontent.com/SyncfusionExamples/XlsIO-Examples/master/Worksheet%20Features/Orientation/.NET/Orientation/Orientation/Program.cs,180" %}
1094+
using (ExcelEngine excelEngine = new ExcelEngine())
1095+
{
1096+
IApplication application = excelEngine.Excel;
1097+
application.DefaultVersion = ExcelVersion.Xlsx;
1098+
IWorkbook workbook = application.Workbooks.Open(Path.GetFullPath(@"Data/InputTemplate.xlsx"));
1099+
IWorksheet worksheet = workbook.Worksheets[0];
1100+
1101+
//Set the page orientation
1102+
worksheet.PageSetup.Orientation = ExcelPageOrientation.Landscape;
1103+
1104+
//Saving the workbook
1105+
workbook.SaveAs(Path.GetFullPath("Output/Output.xlsx"));
1106+
}
1107+
{% endhighlight %}
1108+
1109+
{% highlight c# tabtitle="C# [Windows-specific]" %}
1110+
using (ExcelEngine excelEngine = new ExcelEngine())
1111+
{
1112+
IApplication application = excelEngine.Excel;
1113+
application.DefaultVersion = ExcelVersion.Xlsx;
1114+
IWorkbook workbook = application.Workbooks.Open("InputTemplate.xlsx");
1115+
IWorksheet worksheet = workbook.Worksheets[0];
1116+
1117+
//Set the page orientation
1118+
worksheet.PageSetup.Orientation = ExcelPageOrientation.Landscape;
1119+
1120+
//Saving the workbook
1121+
workbook.SaveAs("Output.xlsx");
1122+
}
1123+
{% endhighlight %}
1124+
1125+
{% highlight vb.net tabtitle="VB.NET [Windows-specific]" %}
1126+
Using excelEngine As ExcelEngine = New ExcelEngine()
1127+
Dim application As IApplication = excelEngine.Excel
1128+
application.DefaultVersion = ExcelVersion.Xlsx
1129+
Dim workbook As IWorkbook = application.Workbooks.Open("InputTemplate.xlsx")
1130+
Dim worksheet As IWorksheet = workbook.Worksheets(0)
1131+
1132+
'Set the page orientation
1133+
worksheet.PageSetup.Orientation = ExcelPageOrientation.Landscape
1134+
1135+
'Saving the workbook
1136+
workbook.SaveAs("Output.xlsx")
1137+
End Using
1138+
{% endhighlight %}
1139+
{% endtabs %}
1140+
1141+
A complete working example to set the page orientation in C# is present on <a href="https://github.com/SyncfusionExamples/XlsIO-Examples/tree/master/Worksheet%20Features/Orientation/.NET/Orientation">this GitHub page</a>.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: XlsIO support for page count before PDF conversion | Syncfusion
3+
description: This page explains whether Syncfusion XlsIO can determine the total number of pages of the PDF file before Excel to PDF conversion.
4+
platform: document-processing
5+
control: XlsIO
6+
documentation: UG
7+
---
8+
9+
# Can XlsIO determine PDF page count before Excel to PDF conversion?
10+
11+
No. XlsIO does not support determining the page count of the PDF document before Excel to PDF conversion. The final page count depends on factors such as print settings, page layout, scaling options, and content distribution. These elements can only be assessed during the conversion process, so calculating the page count in advance is not possible.

0 commit comments

Comments
 (0)