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
24 changes: 15 additions & 9 deletions .github/workflows/gitleaks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4.2.2
- name: Install the gitleaks
run: wget https://github.com/zricethezav/gitleaks/releases/download/v8.15.2/gitleaks_8.15.2_linux_x64.tar.gz
shell: pwsh
Expand All @@ -21,18 +21,24 @@ jobs:
continue-on-error: true
- name: Setup NuGet.exe
if: steps.gitleaks.outcome != 'success'
uses: nuget/setup-nuget@v1
uses: nuget/setup-nuget@v2
with:
nuget-version: latest
- name: Install the dotnet
- name: Install Mono
if: steps.gitleaks.outcome != 'success'
uses: actions/setup-dotnet@v3
with:
dotnet-version: '3.1.x'
run: |
sudo apt update
sudo apt install -y mono-complete
- name: Install the dotnet SDK to a custom directory
if: steps.gitleaks.outcome != 'success'
run: |
mkdir -p $GITHUB_WORKSPACE/dotnet
curl -sSL https://dot.net/v1/dotnet-install.sh | bash /dev/stdin --install-dir $GITHUB_WORKSPACE/dotnet --channel 6.0
- name: Install the report tool packages
if: steps.gitleaks.outcome != 'success'
run: |
export PATH=$GITHUB_WORKSPACE/dotnet:$PATH
nuget install "Syncfusion.Email" -source ${{ secrets.NexusFeedLink }} -ExcludeVersion
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/netcoreapp3.1/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
exit 1
dir $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0
dotnet $GITHUB_WORKSPACE/Syncfusion.Email/lib/net6.0/GitleaksReportMail.dll ${{ secrets.CITEAMCREDENTIALS }} "$GITHUB_REF_NAME" ${{ secrets.NETWORKCREDENTIALS }} ${{ secrets.NETWORKKEY }} "$GITHUB_WORKSPACE" ${{ secrets.ORGANIZATIONNAME }}
exit 1
47 changes: 45 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# WPF PDFViewer Samples
Repository contains various WPF PDFViewer samples.
This repository contains various sample projects of WPF PDF Viewer control.

## About WPF PDF Viewer
In WPF applications, the [WPF PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/wpf-pdf-viewer?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples) lets you view, review, and print PDF files in WPF applications. The thumbnail, bookmark, hyperlink, and table of contents support provides easy navigation within and outside the PDF files. The form-filling support provides a platform to fill, flatten, save, and print PDF files with AcroForm. The PDF files can be reviewed with the abundant available annotation tools.

## Requirements to run the Samples
* Operating System: Windows 11 or Windows 10 (version 1809, build 17763 or later).
* Development Environment: Visual Studio 2022 or later.

## How to run the Samples
* Clone the repository to your local machine.
* Open the desired sample solution (.sln) file in Visual Studio.
* Restore the required NuGet packages automatically through Visual Studio.
* Build and run the selected sample project to explore its functionality.

## Features and Benefits:
* High performance: Fast loading and optimized memory usage for smooth PDF rendering.
* [Magnification and view modes](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/magnifying-pdf-documents): Enhanced viewing experience with zoom and layout options.
* Image rendering: Export PDF pages as images in various formats.
* [Text interaction](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/extract-text-from-pdf): Select, copy, highlight, and search text within PDF documents.
* Form filling and [annotation](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/working-with-annotations/ink-annotation): Fill interactive PDF forms and annotate documents with highlights, shapes, and notes.
* Digital signatures: Sign PDF documents digitally within the viewer.
* [Navigation tools](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/working-with-thumbnail-navigation): Use bookmarks and table of contents for easy document navigation.
* Printing support: Print documents directly from the viewer.
* Highly customizable: Configure viewer behavior and appearance to match your application needs.

## List of sample in the WPF PDFViewer Samples

1. [How to print PDF files without using adobe reader in WPF PDFViewer?](https://www.syncfusion.com/kb/10906/how-to-print-pdf-files-without-using-adobe-reader) - [Demo](https://github.com/SyncfusionExamples/WPF-PDFViewer-Samples/tree/main/How-to-print-pdf-files-without-using-adobe-reader)
2. [How to convert PDF to image in WPF PDFViewer?](https://www.syncfusion.com/kb/10903/how-to-convert-pdf-to-image) - [Demo](https://github.com/SyncfusionExamples/WPF-PDFViewer-Samples/tree/main/How-to-convert-pdf-to-image)
Expand All @@ -20,4 +46,21 @@ Repository contains various WPF PDFViewer samples.
17. [How to include popup annotation in PDF document using WPF PDFViewer?](https://www.syncfusion.com/kb/5839/how-to-include-popup-annotation-in-pdf-document-using-pdf-viewer-for-wpf) - [Demo](https://github.com/SyncfusionExamples/WPF-PDFViewer-Samples/tree/main/How-to-Include-popup-annotation-in-pdf-document-using-wpf-pdf-viewer)
18. [How to crop portions of PDF document and save it as image in WPF PDFViewer?](https://www.syncfusion.com/kb/4976/how-to-crop-portions-of-pdf-document-and-save-it-as-image) - [Demo](https://github.com/SyncfusionExamples/WPF-PDFViewer-Samples/tree/main/How-to-crop-portions-of-pdf-document-and-save-it-as-image)
19. [How to supports silent printing particular page range from the PDF document in WPF PDFViewer?](https://www.syncfusion.com/kb/3666/does-the-pdf-viewer-wpf-supports-silent-printing-particular-page-range-from-the-pdf) - [Demo](https://github.com/SyncfusionExamples/WPF-PDFViewer-Samples/tree/main/How-to-supports-silent-printing-particular-page-range-from-pdf-document)
20. [How to add fitpage and fitwidth functionalities while using custom toolbar in WPF PDFViewer?](https://www.syncfusion.com/kb/3402/how-to-add-fitpage-and-fitwidth-functionalities-while-using-custom-toolbar) - [Demo](https://github.com/SyncfusionExamples/WPF-PDFViewer-Samples/tree/main/How-to-add-fitpage-and-fitwidth-functionalities-while-using-custom-roolbar)
20. [How to add fitpage and fitwidth functionalities while using custom toolbar in WPF PDFViewer?](https://www.syncfusion.com/kb/3402/how-to-add-fitpage-and-fitwidth-functionalities-while-using-custom-toolbar) - [Demo](https://github.com/SyncfusionExamples/WPF-PDFViewer-Samples/tree/main/How-to-add-fitpage-and-fitwidth-functionalities-while-using-custom-roolbar)


## Related links

[Learn More about WPF PDF Viewer](https://www.syncfusion.com/pdf-viewer-sdk/wpf-pdf-viewer?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples)

[Documentation](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/wpf/getting-started)

[Knowledge base](https://www.syncfusion.com/kb?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples)

[Suggest a feature](https://www.syncfusion.com/feedback/wpf)

## About Syncfusion®

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion® has more than 27,000 customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today we provide 1700+ controls and frameworks for web ([Blazor](https://www.syncfusion.com/blazor-components?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [ASP.NET Core](https://www.syncfusion.com/aspnet-core-ui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [ASP.NET MVC](https://www.syncfusion.com/aspnet-mvc-ui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [ASP.NET WebForms](https://www.syncfusion.com/jquery/aspnet-webforms-ui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [JavaScript](https://www.syncfusion.com/javascript-ui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [Angular](https://www.syncfusion.com/angular-ui-components?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [React](https://www.syncfusion.com/react-ui-components?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [Vue](https://www.syncfusion.com/vue-ui-components?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), and [Flutter](https://www.syncfusion.com/flutter-widgets?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples)), mobile ([Xamarin](https://www.syncfusion.com/xamarin-ui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [Flutter](https://www.syncfusion.com/flutter-widgets?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [UWP](https://www.syncfusion.com/uwp-ui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [JavaScript](https://www.syncfusion.com/javascript-ui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), and [MAUI(Preview)](https://www.syncfusion.com/maui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples)), and desktop development ([Windows Forms](https://www.syncfusion.com/winforms-ui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [WPF](https://www.syncfusion.com/wpf-ui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [WinUI](https://www.syncfusion.com/winui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [UWP](https://www.syncfusion.com/uwp-ui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), [Flutter](https://www.syncfusion.com/flutter-widgets?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples), and [MAUI(Preview)](https://www.syncfusion.com/maui-controls?utm_source=github&utm_medium=listing&utm_campaign=winforms-pdf-viewer-github-samples)). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.
Loading