Skip to content

DOCINFRA-2341_merged_using_automation #466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 26 commits into from
Dec 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
05b4693
WPF-62075 UG Documentation Correction for WPF and WinForms PdfViewer
RajaVigneshB Nov 15, 2022
5bb3c49
Addressed the CI failure Issues
RajaVigneshB Nov 15, 2022
8a3d303
Committed the image Size changes
RajaVigneshB Nov 15, 2022
a721118
Made the Maximum size and border changes
RajaVigneshB Nov 16, 2022
9390485
Addressed the CI failure issue
RajaVigneshB Nov 16, 2022
ce96f71
Merge pull request #443 from Syncfusion-Content/hotfix/hotfix-v20.3.0.56
SyncfusionBuild Nov 25, 2022
9bdb2aa
Merge pull request #446 from Syncfusion-Content/hotfix/hotfix-v20.3.0.56
SyncfusionBuild Nov 28, 2022
fb6d0af
Merge pull request #449 from Syncfusion-Content/hotfix/hotfix-v20.3.0.56
SyncfusionBuild Nov 29, 2022
60f0fda
Merge branch 'development' of https://github.com/syncfusion-content/w…
RajaVigneshB Nov 30, 2022
f162cc5
Addressed the feedback's provided
RajaVigneshB Nov 30, 2022
ccf61cf
Merge pull request #439 from syncfusion-content/UG_Correction
Vikassekar Nov 30, 2022
12e3e5a
Merge pull request #452 from Syncfusion-Content/hotfix/hotfix-v20.3.0.56
SyncfusionBuild Dec 5, 2022
729f0b5
Merge pull request #453 from Syncfusion-Content/hotfix/hotfix-v20.3.0.56
SyncfusionBuild Dec 6, 2022
6cea0fa
WPF-62236 Need to update arm pdfium details in UG documentation
RajaVigneshB Dec 8, 2022
621ad1c
Merge pull request #455 from syncfusion-content/UG_Correction
Vikassekar Dec 8, 2022
15459d7
WPF-62236 Need to update arm pdfium details in UG documentation
RajaVigneshB Dec 12, 2022
4b6f2a1
Merge pull request #456 from syncfusion-content/UG_Correction
Vikassekar Dec 12, 2022
c414ce1
Merge pull request #459 from Syncfusion-Content/hotfix/hotfix-v20.3.0.56
SyncfusionBuild Dec 12, 2022
37a72b0
Merge pull request #460 from Syncfusion-Content/hotfix/hotfix-v20.3.0.56
SyncfusionBuild Dec 14, 2022
8e9bb7f
Added the release notes MD file and corresponding node entry in the T…
Dec 15, 2022
744d9f7
Added the release notes MD file and corresponding node entry in the T…
DeepakRajSundar Dec 15, 2022
f796261
EXT-6982
Kesavaraman123 Dec 16, 2022
6c0b58d
EXT-6982
Kesavaraman123 Dec 20, 2022
c95d617
Merge pull request #462 from syncfusion-content/EXT-6982
GanesanRengasamy Dec 20, 2022
5f98091
Merge pull request #465 from Syncfusion-Content/hotfix/hotfix-v20.3.0.56
SyncfusionBuild Dec 20, 2022
f5bba72
Added the release notes MD file and corresponding node entry in the T…
DeepakRajSundar Dec 20, 2022
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
2 changes: 1 addition & 1 deletion wpf-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2424,7 +2424,7 @@
</li>
<li>
Release Notes
<ul><li>2022 Volume 3 - v20.3.0.*<ul><li> Weekly Nuget Release <ul><li><a href="/wpf/release-notes/v20.3.0.61">v20.3.0.61</a></li><li><a href="/wpf/release-notes/v20.3.0.60">v20.3.0.60</a></li><li><a href="/wpf/release-notes/v20.3.0.59">v20.3.0.59</a></li><li><a href="/wpf/release-notes/v20.3.0.58">v20.3.0.58</a></li><li><a href="/wpf/release-notes/v20.3.0.57">v20.3.0.57</a></li><li><a href="/wpf/release-notes/v20.3.0.52">v20.3.0.52</a></li><li><a href="/wpf/release-notes/v20.3.0.50">v20.3.0.50</a></li><li><a href="/wpf/release-notes/v20.3.0.49">v20.3.0.49</a></li><li><a href="/wpf/release-notes/v20.3.0.48">v20.3.0.48</a></li></ul></li><li><a href="/wpf/release-notes/v20.3.0.56">v20.3.0.56 Service Pack Release</a></li><li><a href="/wpf/release-notes/v20.3.0.47">v20.3.0.47 Main Release</a></li></ul></li><li>2022 Volume 2 - v20.2.0.*<ul><li> Weekly Nuget Release <ul><li><a href="/wpf/release-notes/v20.2.0.50">v20.2.0.50</a></li><li><a href="/wpf/release-notes/v20.2.0.49">v20.2.0.49</a></li><li><a href="/wpf/release-notes/v20.2.0.48">v20.2.0.48</a></li><li><a href="/wpf/release-notes/v20.2.0.46">v20.2.0.46</a></li><li><a href="/wpf/release-notes/v20.2.0.45">v20.2.0.45</a></li><li><a href="/wpf/release-notes/v20.2.0.44">v20.2.0.44</a></li><li><a href="/wpf/release-notes/v20.2.0.40">v20.2.0.40</a></li><li><a href="/wpf/release-notes/v20.2.0.39">v20.2.0.39</a></li><li><a href="/wpf/release-notes/v20.2.0.38">v20.2.0.38</a></li></ul></li><li><a href="/wpf/release-notes/v20.2.0.43">v20.2.0.43 Service Pack Release</a></li><li><a href="/wpf/release-notes/v20.2.0.36">v20.2.0.36 Main release</a></li></ul></li><li>2022 volume 1 - v20.1.0.*<ul><li> Weekly Nuget Release <ul><li><a href="/wpf/release-notes/v20.1.0.61">v20.1.0.61</a></li><li><a href="/wpf/release-notes/v20.1.0.60">v20.1.0.60</a></li><li><a href="/wpf/release-notes/v20.1.0.59">v20.1.0.59</a></li><li><a href="/wpf/release-notes/v20.1.0.58">v20.1.0.58</a></li><li><a href="/wpf/release-notes/v20.1.0.57">v20.1.0.57</a></li><li><a href="/wpf/release-notes/v20.1.0.56">v20.1.0.56</a></li><li><a href="/wpf/release-notes/v20.1.0.52">v20.1.0.52</a></li><li><a href="/wpf/release-notes/v20.1.0.51">v20.1.0.51</a></li><li><a href="/wpf/release-notes/v20.1.0.50">v20.1.0.50</a></li><li><a href="/wpf/release-notes/v20.1.0.48">v20.1.0.48</a></li></ul></li><li><a href="/wpf/release-notes/v20.1.0.55">v20.1.0.55 Service Pack Release</a></li><li><a href="/wpf/release-notes/v20.1.0.47">v20.1.0.47 Main Release</a></li></ul></li>
<ul><li>2022 Volume 4 - v20.4.0.*<ul><li><a href="/wpf/release-notes/v20.4.0.38">v20.4.0.38 Main Release</a></li></ul></li><li>2022 Volume 3 - v20.3.0.*<ul><li> Weekly Nuget Release <ul><li><a href="/wpf/release-notes/v20.3.0.61">v20.3.0.61</a></li><li><a href="/wpf/release-notes/v20.3.0.60">v20.3.0.60</a></li><li><a href="/wpf/release-notes/v20.3.0.59">v20.3.0.59</a></li><li><a href="/wpf/release-notes/v20.3.0.58">v20.3.0.58</a></li><li><a href="/wpf/release-notes/v20.3.0.57">v20.3.0.57</a></li><li><a href="/wpf/release-notes/v20.3.0.52">v20.3.0.52</a></li><li><a href="/wpf/release-notes/v20.3.0.50">v20.3.0.50</a></li><li><a href="/wpf/release-notes/v20.3.0.49">v20.3.0.49</a></li><li><a href="/wpf/release-notes/v20.3.0.48">v20.3.0.48</a></li></ul></li><li><a href="/wpf/release-notes/v20.3.0.56">v20.3.0.56 Service Pack Release</a></li><li><a href="/wpf/release-notes/v20.3.0.47">v20.3.0.47 Main Release</a></li></ul></li><li>2022 Volume 2 - v20.2.0.*<ul><li> Weekly Nuget Release <ul><li><a href="/wpf/release-notes/v20.2.0.50">v20.2.0.50</a></li><li><a href="/wpf/release-notes/v20.2.0.49">v20.2.0.49</a></li><li><a href="/wpf/release-notes/v20.2.0.48">v20.2.0.48</a></li><li><a href="/wpf/release-notes/v20.2.0.46">v20.2.0.46</a></li><li><a href="/wpf/release-notes/v20.2.0.45">v20.2.0.45</a></li><li><a href="/wpf/release-notes/v20.2.0.44">v20.2.0.44</a></li><li><a href="/wpf/release-notes/v20.2.0.40">v20.2.0.40</a></li><li><a href="/wpf/release-notes/v20.2.0.39">v20.2.0.39</a></li><li><a href="/wpf/release-notes/v20.2.0.38">v20.2.0.38</a></li></ul></li><li><a href="/wpf/release-notes/v20.2.0.43">v20.2.0.43 Service Pack Release</a></li><li><a href="/wpf/release-notes/v20.2.0.36">v20.2.0.36 Main release</a></li></ul></li><li>2022 volume 1 - v20.1.0.*<ul><li> Weekly Nuget Release <ul><li><a href="/wpf/release-notes/v20.1.0.61">v20.1.0.61</a></li><li><a href="/wpf/release-notes/v20.1.0.60">v20.1.0.60</a></li><li><a href="/wpf/release-notes/v20.1.0.59">v20.1.0.59</a></li><li><a href="/wpf/release-notes/v20.1.0.58">v20.1.0.58</a></li><li><a href="/wpf/release-notes/v20.1.0.57">v20.1.0.57</a></li><li><a href="/wpf/release-notes/v20.1.0.56">v20.1.0.56</a></li><li><a href="/wpf/release-notes/v20.1.0.52">v20.1.0.52</a></li><li><a href="/wpf/release-notes/v20.1.0.51">v20.1.0.51</a></li><li><a href="/wpf/release-notes/v20.1.0.50">v20.1.0.50</a></li><li><a href="/wpf/release-notes/v20.1.0.48">v20.1.0.48</a></li></ul></li><li><a href="/wpf/release-notes/v20.1.0.55">v20.1.0.55 Service Pack Release</a></li><li><a href="/wpf/release-notes/v20.1.0.47">v20.1.0.47 Main Release</a></li></ul></li>
<li>2021 Volume 4 - v19.4.0.*<ul><li> Weekly Nuget Release <ul><li><a href="/wpf/release-notes/v19.4.0.56">v19.4.0.56</a></li><li><a href="/wpf/release-notes/v19.4.0.55">v19.4.0.55</a></li><li><a href="/wpf/release-notes/v19.4.0.54">v19.4.0.54</a></li><li><a href="/wpf/release-notes/v19.4.0.53">v19.4.0.53</a></li><li><a href="/wpf/release-notes/v19.4.0.52">v19.4.0.52</a></li><li><a href="/wpf/release-notes/v19.4.0.50">v19.4.0.50</a></li><li><a href="/wpf/release-notes/v19.4.0.47">v19.4.0.47</a></li><li><a href="/wpf/release-notes/v19.4.0.43">v19.4.0.43</a></li><li><a href="/wpf/release-notes/v19.4.0.42">v19.4.0.42</a></li><li><a href="/wpf/release-notes/v19.4.0.41">v19.4.0.41</a></li><li><a href="/wpf/release-notes/v19.4.0.40">v19.4.0.40</a></li></ul></li><li><a href="/wpf/release-notes/v19.4.0.48">v19.4.0.48 Service Pack Release</a></li><li><a href="/wpf/release-notes/v19.4.0.38">v19.4.0.38 Main Release</a></li></ul></li>
<li>2021 volume 3 - v19.3.0.*<ul><li> Weekly Nuget Release <ul><li><a href="/wpf/release-notes/v19.3.0.57">v19.3.0.57</a></li><li><a href="/wpf/release-notes/v19.3.0.56">v19.3.0.56</a></li><li><a href="/wpf/release-notes/v19.3.0.55">v19.3.0.55</a></li><li><a href="/wpf/release-notes/v19.3.0.54">v19.3.0.54</a></li><li><a href="/wpf/release-notes/v19.3.0.53">v19.3.0.53</a></li><li><a href="/wpf/release-notes/v19.3.0.48">v19.3.0.48</a></li><li><a href="/wpf/release-notes/v19.3.0.47">v19.3.0.47</a></li><li><a href="/wpf/release-notes/v19.3.0.46">v19.3.0.46</a></li><li><a href="/wpf/release-notes/v19.3.0.45">v19.3.0.45</a></li><li><a href="/wpf/release-notes/v19.3.0.44">v19.3.0.44</a></li></ul></li><li><a href="/wpf/release-notes/v19.3.0.53">v19.3.0.53 Service Pack Release</a></li><li><a href="/wpf/release-notes/v19.3.0.43">v19.3.0.43 Main Release</a></li></ul></li>
<li>2021 Volume 2 - v19.2.0.*<ul><li> Weekly Nuget Release <ul><li><a href="/wpf/release-notes/v19.2.0.62">v19.2.0.62</a></li><li><a href="/wpf/release-notes/v19.2.0.60">v19.2.0.60</a></li><li><a href="/wpf/release-notes/v19.2.0.59">v19.2.0.59</a></li><li><a href="/wpf/release-notes/v19.2.0.57">v19.2.0.57</a></li><li><a href="/wpf/release-notes/v19.2.0.56">v19.2.0.56</a></li><li><a href="/wpf/release-notes/v19.2.0.51">v19.2.0.51</a></li><li><a href="/wpf/release-notes/v19.2.0.49">v19.2.0.49</a></li><li><a href="/wpf/release-notes/v19.2.0.48">v19.2.0.48</a></li><li><a href="/wpf/release-notes/v19.2.0.47">v19.2.0.47</a></li><li><a href="/wpf/release-notes/v19.2.0.46">v19.2.0.46</a></li></ul></li><li><a href="/wpf/release-notes/v19.2.0.55">v19.2.0.55 Service Pack Release</a></li><li><a href="/wpf/release-notes/v19.2.0.44">v19.2.0.44 Main Release </a></li></ul></li>
Expand Down
14 changes: 1 addition & 13 deletions wpf/Pdf-Viewer/Acquiring-current-page-being-displayed.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@ PDF Viewer supports acquiring the index of the page being displayed in the PDF V
{% highlight C# %}

//Initialize PDF Viewer.

PdfViewerControl pdfViewer1 = new PdfViewerControl();



//Load the PDF.

pdfViewer1.Load("Sample.pdf");

// Acquiring the number of page being displayed in the Viewer

int pageCount = pdfviewer1.CurrentPageIndex;


Expand All @@ -35,17 +29,11 @@ int pageCount = pdfviewer1.CurrentPageIndex;
{% highlight vbnet %}

'Initialize PDF Viewer.

Private pdfViewer1 As New PdfViewerControl()



'Load the PDF.

pdfViewer1.Load("Sample.pdf")

' Acquiring the number of page being displayed in the Viewer

' Acquiring the number of page being displayed in the Viewer
Dim pageCount As Integer = pdfviewer1. CurrentPageIndex

{% endhighlight %}
Expand Down
12 changes: 0 additions & 12 deletions wpf/Pdf-Viewer/Acquiring-total-number-of-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@ PDF Viewer provides the total number of the pages in the PDF document that is be
{% highlight C# %}

//Initialize PDF Viewer.

PdfViewerControl pdfViewer1 = new PdfViewerControl();



//Load the PDF.

pdfViewer1.Load("Sample.pdf");

// Acquiring the total number of pages in the document being loaded

int pageCount = pdfviewer1.PageCount;


Expand All @@ -35,17 +29,11 @@ int pageCount = pdfviewer1.PageCount;
{% highlight vbnet %}

'Initialize PDF Viewer.

Private pdfViewer1 As New PdfViewerControl()



'Load the PDF.

pdfViewer1.Load("Sample.pdf")

'Acquiring the total number of pages in the document being loaded

Dim pageCount As Integer = pdfviewer1.PageCount
{% endhighlight %}
{% endtabs %}
7 changes: 0 additions & 7 deletions wpf/Pdf-Viewer/Bookmark-Navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ void GoToBookmark()
{
//Get the loadedDocument object from PDF Viewer
PdfLoadedDocument pdfLoadedDocument = pdfViewer.LoadedDocument;

//Get the complete bookmarks in the PDF.
PdfBookmarkBase bookmarks = pdfLoadedDocument.Bookmarks;

//In this example, we get the first bookmark in the PDF bookmarks collection at the index of 0.
PdfBookmark firstBookmark = bookmarks[0];

Expand All @@ -54,13 +52,10 @@ void GoToChildBookmark()
{
//Get the loadedDocument object from PDF Viewer
PdfLoadedDocument pdfLoadedDocument = pdfViewer.LoadedDocument;

//Get the complete bookmarks in the PDF.
PdfBookmarkBase bookmarks = pdfLoadedDocument.Bookmarks;

//Gets the fourth bookmark in the PDF bookmarks collection at the index of 3.
PdfBookmark fourthBookmark = bookmarks[3];

//Check whether it has child bookmarks.
if (fourthBookmark.Count > 0)
{
Expand All @@ -81,10 +76,8 @@ The user needs to call the above methods after the document is loaded. You can w
public MainWindow()
{
InitializeComponent();

//Wire the DocumentLoaded event of PDF Viewer
pdfViewer.DocumentLoaded += PdfViewer_DocumentLoaded;

//Load the PDF file in PDF Viewer.
pdfViewer.Load("../../LayerAndBookmarks.pdf");
}
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.
12 changes: 0 additions & 12 deletions wpf/Pdf-Viewer/Changing-the-color-of-the-Loading-Indicator.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@ PDF Viewer allows you to change the color of the loading indicator displayed whe
{% highlight C# %}

//Initialize PDF Viewer.

PdfViewerControl pdfViewer1 = new PdfViewerControl();



//Load the PDF.

pdfViewer1.Load("Sample.pdf");

// Changing the color of the loading indicator to Red

pdfviewer1.LoadingIndicator.LoaderColor = System.Windows.Media.Color.FromArgb(255, 255, 0, 0);
{% endhighlight %}

Expand All @@ -34,17 +28,11 @@ pdfviewer1.LoadingIndicator.LoaderColor = System.Windows.Media.Color.FromArgb(25
{% highlight vbnet %}

'Initialize PDF Viewer.

Private pdfViewer1 As New PdfViewerControl()



'Load the PDF.

pdfViewer1.Load("Sample.pdf")

'Changing the color of the loading indicator to Red

pdfviewer1.LoadingIndicator.LoaderColor = System.Windows.Media.Color.FromArgb(255, 255, 0, 0)

{% endhighlight %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ PDF Viewer allows you to change the text displayed in the loading indicator. The
{% highlight C# %}

// Changing the text displayed in the loading indicator

pdfviewer1. LoadingIndicator.LoadingMessage = "Document loading";
{% endhighlight %}

Expand All @@ -25,7 +24,6 @@ pdfviewer1. LoadingIndicator.LoadingMessage = "Document loading";
{% highlight vbnet %}

'Changing the text displayed in the loading indicator

pdfviewer1.LoadingIndicator.LoadingMessage = "Document loading"

{% endhighlight %}
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions wpf/Pdf-Viewer/Enabling-and-Disabling-Notification-bar.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,35 +15,23 @@ Notification bar is a part of the PDF Viewer that is used to display when an une
{% highlight C# %}

//Initialize PDF Viewer.

PdfViewerControl pdfViewer1 = new PdfViewerControl();



//Load the PDF.

pdfViewer1.Load("Sample.pdf");

// Hiding the scrollbar of the PDF Viewer

pdfviewer1.EnableNotificationBar= false;
{% endhighlight %}


{% highlight vbnet %}

'Initialize PDF Viewer.

Private pdfViewer1 As New PdfViewerControl()



'Load the PDF.

pdfViewer1.Load("Sample.pdf")

' Hiding the scrollbar of the PDF Viewer

pdfviewer1.EnableNotificationBar= False

{% endhighlight %}
Expand Down
8 changes: 0 additions & 8 deletions wpf/Pdf-Viewer/Exporting-PDF.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ if (image != null)
//Save the stream, so that the image will be generated in the output location
encoder.Save(stream);
}

//Dispose the document
loadedDocument.Dispose();
loadedDocument = null;
Expand Down Expand Up @@ -68,7 +67,6 @@ If image IsNot Nothing Then
'Save the stream, so that the image will be generated in the output location
encoder.Save(stream)
End If

'Dispose the document
loadedDocument.Dispose()
loadedDocument = Nothing
Expand All @@ -86,14 +84,12 @@ You can export a specific range of PDF pages into images by passing the start an
{% highlight C# %}

PdfViewerControl pdfViewer = new PdfViewerControl();

//Load the input PDF file
PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Sample.pdf");
pdfViewer.Load(loadedDocument);

//Export all the pages as images at the specific page range
BitmapSource[] image = pdfViewer.ExportAsImage(0, loadedDocument.Pages.Count - 1);

//Set up the output path
string output = @"..\..\Output\Image";
if (image != null)
Expand All @@ -110,7 +106,6 @@ if (image != null)
encoder.Save(stream);
}
}

//Dispose the document
loadedDocument.Dispose();
loadedDocument = null;
Expand All @@ -120,7 +115,6 @@ loadedDocument = null;
{% highlight vbnet %}

Dim pdfViewer As PdfViewerControl = New PdfViewerControl()

'Load the input PDF file
Dim loadedDocument As PdfLoadedDocument = New PdfLoadedDocument("Sample.pdf")
pdfViewer.Load(loadedDocument)
Expand All @@ -141,7 +135,6 @@ If image IsNot Nothing Then
encoder.Save(stream)
Next
End If

'Dispose the document
loadedDocument.Dispose()
loadedDocument = Nothing
Expand All @@ -158,7 +151,6 @@ You can export PDF pages as images with custom width and height by passing the r

//Export the particular PDF page as image at the page index of 0
BitmapSource image = pdfViewerControl.ExportAsImage(0, new SizeF(1836, 2372), false);

//Set up the output path
string output = @"..\..\Output\Image";
if (image != null)
Expand Down
3 changes: 1 addition & 2 deletions wpf/Pdf-Viewer/Getting-Started.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ N> From v16.3.0x onwards, PDF Viewer uses PDFium as a default rendering engine t
public class PdfReport : INotifyPropertyChanged
{
private Stream docStream;

public event PropertyChangedEventHandler PropertyChanged;

public Stream DocumentStream
{
get
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified wpf/Pdf-Viewer/Getting-Started_images/wpf-pdf-viewer-theme.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions wpf/Pdf-Viewer/Handwritten-Signature.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,9 @@ private void PdfViewer_HandwrittenSignatureChanged(object sender, HandwrittenSig

Private Sub PdfViewer_HandwrittenSignatureChanged(ByVal sender As Object, ByVal e As HandwrittenSignatureChangedEventArgs)
If e.Action = AnnotationChangedAction.Move Then
'Get the old location
'Get the old location
Dim oldLocation As PointF = e.OldBounds.Location
'Get the new location
'Get the new location
Dim newLocation As PointF = e.NewBounds.Location
ElseIf e.Action = AnnotationChangedAction.Resize Then
'Get the old size
Expand Down Expand Up @@ -292,11 +292,11 @@ private void PdfViewer_HandwrittenSignatureChanged(object sender, HandwrittenSig

Private Sub PdfViewer_HandwrittenSignatureChanged(ByVal sender As Object, ByVal e As HandwrittenSignatureChangedEventArgs)
If e.Action = AnnotationChangedAction.[Select] Then
'Get the page number
'Get the page number
Dim pageNumber As Integer = e.PageNumber
'Get the signature location
'Get the signature location
Dim location As PointF = e.NewBounds.Location
'Get the signature size
'Get the signature size
Dim size As SizeF = e.NewBounds.Size
End If
End Sub
Expand Down Expand Up @@ -328,8 +328,8 @@ private void button_Click(object sender, RoutedEventArgs e)

Private Sub button_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
Dim signature As System.Windows.Shapes.Path = New System.Windows.Shapes.Path()
'Note: Set your signature appearance as Data for the path here.
'Add signature in the first page of the PDF document at the location: X= 450, Y=750 and with the size: Width=100, Height=100.
'Note: Set your signature appearance as Data for the path here.
'Add signature in the first page of the PDF document at the location: X= 450, Y=750 and with the size: Width=100, Height=100.
pdfViewer.AddHandwrittenSignature(signature, 1, New RectangleF(450, 750, 100, 100))
End Sub

Expand Down
4 changes: 0 additions & 4 deletions wpf/Pdf-Viewer/How-To/Disable-toolbar-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ private void HideTextSearchTool()
{
//Get the instance of the toolbar using its template name.
DocumentToolbar toolbar = pdfViewer.Template.FindName("PART_Toolbar", pdfViewer) as DocumentToolbar;

//Get the instance of the open file button using its template name.
Button textSearchButton = (Button)toolbar.Template.FindName("PART_ButtonTextSearch", toolbar);

//Set the visibility of the button to collapsed.
textSearchButton.Visibility = System.Windows.Visibility.Collapsed;
}
Expand Down Expand Up @@ -225,10 +223,8 @@ private void HideOpenTool(object sender, RoutedEventArgs e)
{
//Get the instance of the toolbar using its template name.
DocumentToolbar toolbar = pdfViewer.Template.FindName("PART_Toolbar", pdfViewer) as DocumentToolbar;

//Get the instance of the file menu button using its template name.
ToggleButton FileButton = (ToggleButton)toolbar.Template.FindName("PART_FileToggleButton", toolbar);

//Get the instance of the file menu button context menu and the item collection.
ContextMenu FileContextMenu = FileButton.ContextMenu;
foreach (MenuItem FileMenuItem in FileContextMenu.Items)
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions wpf/Pdf-Viewer/How-To/Load-a-specific-page.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,21 @@ Navigation to a specific page, through code, is possible using [GoToPageAtIndex]
{% highlight c# %}

//Initialize PDF Viewer.

PdfViewerControl pdfViewer1 = new PdfViewerControl();



//Load the PDF.

pdfViewer1.Load("Sample.pdf");

pdfViewer1.GoToPageAtIndex(2);

{% endhighlight %}

{% highlight vbnet %}

'Initialize PDF Viewer.

Private pdfViewer1 As New PdfViewerControl()



'Load the PDF.

pdfViewer1.Load("Sample.pdf")

pdfViewer1.GoToPageAtIndex(2)


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.
4 changes: 2 additions & 2 deletions wpf/Pdf-Viewer/Localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public MainWindow()
{
Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("fr-FR");

// Set the Custom assembly and namespace for the localization.
LocalizationManager.SetResources(typeof(Custom_Class).Assembly, "ClassLibrary");
// Set the Custom assembly and namespace for the localization.
LocalizationManager.SetResources(typeof(Custom_Class).Assembly, "ClassLibrary");
InitializeComponent();
}
{% endhighlight %}
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.
Loading