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
17 changes: 9 additions & 8 deletions File-Formats/DocIO/Create-Word-document-in-MAUI.md
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ Refer the helper files to be added into the mentioned project. These helper file
.NET MAUI Project
</td>
<td>
[SaveService.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Services/SaveService.cs)
{{'[SaveService.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Services/SaveService.cs)' | markdownify}}
</td>
<td>Represent the base class for save operation.
</td>
Expand All @@ -334,7 +334,7 @@ Refer the helper files to be added into the mentioned project. These helper file
Windows
</td>
<td>
[SaveWindows.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/Windows/SaveWindows.cs)
{{'[SaveWindows.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/Windows/SaveWindows.cs)' | markdownify}}
</td>
<td>Save implementation for Windows.
</td>
Expand All @@ -344,8 +344,8 @@ Refer the helper files to be added into the mentioned project. These helper file
Android
</td>
<td>
[SaveAndroid.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/Android/SaveAndroid.cs)
</td>
{{'[SaveAndroid.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/Android/SaveAndroid.cs)' | markdownify}}
</td>
<td>Save implementation for Android device.
</td>
</tr>
Expand All @@ -354,8 +354,8 @@ Refer the helper files to be added into the mentioned project. These helper file
Mac Catalyst
</td>
<td>
[SaveMac.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/MacCatalyst/SaveMac.cs)
</td>
{{'[SaveMac.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/MacCatalyst/SaveMac.cs)' | markdownify}}
</td>
<td>Save implementation for Mac Catalyst device.
</td>
</tr>
Expand All @@ -364,15 +364,16 @@ Refer the helper files to be added into the mentioned project. These helper file
iOS
</td>
<td>
[SaveIOS.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/iOS/SaveIOS.cs)
{{'[SaveIOS.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/iOS/SaveIOS.cs)' | markdownify}}
</td>
<td>
Save implementation for iOS device
</td>
</tr>
<tr>
<td>
[PreviewControllerDS.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/iOS/PreviewControllerDS.cs)<br/>[QLPreviewItemFileSystem.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/iOS/QLPreviewItemFileSystem.cs)
{{'[PreviewControllerDS.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/iOS/PreviewControllerDS.cs)' | markdownify}}
<br/>{{'[QLPreviewItemFileSystem.cs](https://github.com/SyncfusionExamples/DocIO-Examples/blob/main/Getting-Started/.NET-MAUI/Create-Word-document/Platforms/iOS/QLPreviewItemFileSystem.cs)' | markdownify}}
</td>
<td>
Helper classes for viewing the <b>Word document</b> in iOS device
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
90 changes: 89 additions & 1 deletion File-Formats/PDF/Convert-HTML-To-PDF/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -731,4 +731,92 @@ You can downloaded a complete working sample from [GitHub](https://github.com/Sy

{% endhighlight %}

{% endtabs %}
{% endtabs %}

## Failed to launch chromium: Missing required dependent packages issue occurs in Azure function Linux with premium plans.

<table>
<th style="font-size:14px" width="100px">Exception</th>
<th style="font-size:14px">Failed to launch chromium: Missing required dependent packages issue occurs in Azure function Linux with premium plans.
</th>
<tr>
<th style="font-size:14px" width="100px">Reason
</th>
<td>The reported issue occurs due to missing of required Linux dependencies in Azure function to perform the conversion in premium plans (such as Ep1)
</td>
</tr>
<tr>
<th style="font-size:14px" width="100px">Solution</th>
<td>
To overcome this issue by installing the Linux dependencies package in SSH window. Please refer the below commands and screenshot,

{% tabs %}

{% highlight C# %}

apt-get update && apt-get install -yq --no-install-recommends libasound2 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 libnss3 libgbm1
{% endhighlight %}

{% endtabs %}
<br/><br/>
Please refer to the below screenshot,
<br/><br/>

<img src="htmlconversion_images/Failedtolaunchchromium.png"><br>
<br/><br/>
(Or)
<br/><br/>
We can install the required dependencies using the dependencies vis shell script. Please find the below.
<br/><br/>
<img src="htmlconversion_images/dependencies.png"><br>
<br/><br/>
code snippet:
<br/><br/>
{% tabs %}
{% highlight C# %}

private static void InstallLinuxPackages(FileInfo functionAppDirectory)
{
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
return;
}
FileAccessPermissions ExecutableFilePermissions = FileAccessPermissions.UserRead | FileAccessPermissions.UserWrite | FileAccessPermissions.UserExecute |
FileAccessPermissions.GroupRead | FileAccessPermissions.GroupExecute | FileAccessPermissions.OtherRead | FileAccessPermissions.OtherExecute;
//Install the dependencies packages for HTML to PDF conversion in Linux
string shellFilePath = Path.Combine(functionAppDirectory.Directory.Parent.FullName, @"wwwroot/data");
string tempBlinkDir = Path.GetTempPath();
string dependenciesPath = Path.Combine(tempBlinkDir, "dependenciesInstall.sh");
if (!File.Exists(dependenciesPath))
{
CopyFilesRecursively(shellFilePath, tempBlinkDir);
var execPath = Path.Combine(tempBlinkDir, "dependenciesInstall.sh");
if (File.Exists(execPath))
{
var code = Function1.Chmod(execPath, ExecutableFilePermissions);
if (code != 0)
{
throw new Exception("Chmod operation failed");
}
}
Process process = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "/bin/bash",
Arguments = "-c " + execPath,
CreateNoWindow = true,
UseShellExecute = false,
}
};
process.Start();
process.WaitForExit();
}
}

{% endhighlight %}
{% endtabs %}
</td>
</tr>

</table>