Skip to content

Commit da31c35

Browse files
1000370: Updated Preview Sample Issues and CI failures in javascript-es6
1 parent 9c05c9d commit da31c35

5 files changed

Lines changed: 35 additions & 35 deletions

File tree

Document-Processing/PDF/PDF-Viewer/javascript-es6/annotations/text-markup-annotation.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ N> To set up the **server-backed PDF Viewer**,
9191
Add the below `serviceUrl` in the `index.ts` file
9292
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
9393

94-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/highlight-mode-cs1/index.html" %}
94+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/highlight-mode-cs1" %}
9595

9696
Refer to the following code snippet to switch back to normal mode from highlight mode.
9797

@@ -152,12 +152,12 @@ N> To set up the **server-backed PDF Viewer**,
152152
Add the below `serviceUrl` in the `index.ts` file
153153
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
154154

155-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/highlight-normal-mode-cs1/index.html" %}
155+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/highlight-normal-mode-cs1" %}
156156

157157

158158
## Highlight text programmatically
159159

160-
Programmatically add highlights using the [addAnnotation](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#addannotation) method.
160+
Programmatically add highlights using the [addAnnotation](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation#addannotation) method.
161161

162162
Example:
163163

@@ -291,7 +291,7 @@ N> To set up the **server-backed PDF Viewer**,
291291
Add the below `serviceUrl` in the `index.ts` file
292292
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
293293

294-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/underline-mode-cs1/index.html" %}
294+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/underline-mode-cs1" %}
295295

296296
Refer to the following code snippet to switch back to normal mode from underline mode.
297297

@@ -352,11 +352,11 @@ N> To set up the **server-backed PDF Viewer**,
352352
Add the below `serviceUrl` in the `index.ts` file
353353
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
354354

355-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/underline-normal-mode-cs1/index.html" %}
355+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/underline-normal-mode-cs1" %}
356356

357357
## Underline text programmatically
358358

359-
Programmatically add underlines using the [addAnnotation](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation/#addannotation) method.
359+
Programmatically add underlines using the [addAnnotation](https://ej2.syncfusion.com/documentation/api/pdfviewer/annotation#addannotation) method.
360360

361361
Example:
362362

@@ -489,7 +489,7 @@ N> To set up the **server-backed PDF Viewer**,
489489
Add the below `serviceUrl` in the `index.ts` file
490490
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
491491

492-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/strikethrough-mode-cs1/index.html" %}
492+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/strikethrough-mode-cs1" %}
493493

494494
Refer to the following code snippet to switch back to normal mode from strikethrough mode.
495495

@@ -552,7 +552,7 @@ N> To set up the **server-backed PDF Viewer**,
552552
Add the below `serviceUrl` in the `index.ts` file
553553
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
554554

555-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/strikethrough-normal-mode-cs1/index.html" %}
555+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/strikethrough-normal-mode-cs1" %}
556556

557557
## Strikethrough text programmatically
558558

@@ -688,7 +688,7 @@ N> To set up the **server-backed PDF Viewer**,
688688
Add the below `serviceUrl` in the `index.ts` file
689689
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
690690

691-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/squiggly-mode-cs1/index.html" %}
691+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/squiggly-mode-cs1" %}
692692

693693
Refer to the following code snippet to switch back to normal mode from squiggly mode.
694694

@@ -751,7 +751,7 @@ N> To set up the **server-backed PDF Viewer**,
751751
Add the below `serviceUrl` in the `index.ts` file
752752
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
753753

754-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/squiggly-normal-mode-cs1/index.html" %}
754+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/squiggly-normal-mode-cs1" %}
755755

756756
## Add squiggly to text programmatically
757757

@@ -961,7 +961,7 @@ N> To set up the **server-backed PDF Viewer**,
961961
Add the below `serviceUrl` in the `index.ts` file
962962
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
963963

964-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/undo-redo-cs1/index.html" %}
964+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/text-markup-annotation/undo-redo-cs1" %}
965965

966966
## Save text markup annotations
967967

Document-Processing/PDF/PDF-Viewer/javascript-es6/getting-started-with-server-backed.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
3-
title: Getting started with TypeScript PDF Viewer (server-backed) | Syncfusion
4-
description: Learn how to set up and use the Syncfusion TypeScript PDF Viewer in server-backed mode using the EJ2 quickstart, including module injection and web service configuration.
3+
title: Getting started with server-backed TypeScript PDF Viewer | Syncfusion
4+
description: Learn how to set up and use the Syncfusion TypeScript PDF Viewer in server-backed mode, including module injection and web service configuration.
55
platform: document-processing
66
control: PDF Viewer
77
documentation: ug
@@ -10,13 +10,13 @@ domainurl: ##DomainURL##
1010

1111
# Getting started with TypeScript PDF Viewer (server-backed)
1212

13-
This guide explains how to create the PDF Viewer component and configure its features in TypeScript using the Essential JS 2 [quickstart](https://github.com/SyncfusionExamples/ej2-quickstart-webpack-) seed repository in server-backed mode.
13+
This guide explains how to create the PDF Viewer component and configure its features in TypeScript using the Essential JS 2 [quickstart](https://github.com/SyncfusionExamples/ej2-quickstart-webpack) seed repository in server-backed mode.
1414

15-
> This application is integrated with a webpack configuration (`webpack.config.js`) and uses the latest version of the [webpack-cli](https://webpack.js.org/api/cli/#commands). It requires Node.js `v14.15.0` or higher. For more information, refer to the [webpack getting started guide](https://webpack.js.org/guides/getting-started/).
15+
> This application is integrated with a webpack configuration (`webpack.config.js`) and uses the latest version of the [webpack-cli](https://webpack.js.org/api/cli#commands). It requires Node.js `v14.15.0` or higher. For more information, refer to the [webpack getting started guide](https://webpack.js.org/guides/getting-started).
1616
1717
## Set up the development environment
1818

19-
Open a command prompt in the target directory and run the following command to clone the Syncfusion JavaScript (Essential JS 2) quickstart project from [GitHub](https://github.com/SyncfusionExamples/ej2-quickstart-webpack-).
19+
Open a command prompt in the target directory and run the following command to clone the Syncfusion JavaScript (Essential JS 2) quickstart project from [GitHub](https://github.com/SyncfusionExamples/ej2-quickstart-webpack).
2020

2121
{% tabs %}
2222
{% highlight bash tabtitle="CMD" %}
@@ -152,7 +152,7 @@ document.getElementById('load').addEventListener('click', function () {
152152

153153
N> The Web API link https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/ used in the `serviceUrl` property is intended for demonstration and evaluation only. For production, host your own web service with the required server configuration. You can reuse the [GitHub web service example](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices) or [Docker image](https://hub.docker.com/r/syncfusion/pdfviewer-server). **Standalone mode is strongly recommended.**
154154

155-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/getting-started-cs1/index.html" %}
155+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/getting-started-cs1" %}
156156

157157
## Module injection
158158

@@ -198,7 +198,7 @@ Inject modules using the `PdfViewer.Inject` method.
198198
dotnet run
199199
```
200200

201-
6. The PDF Viewer server instance runs at `https://localhost:5001`. Navigate to `https://localhost:5001/pdfviewer` to see the default GET response. Bind this URL to the [serviceUrl](https://ej2.syncfusion.com/documentation/api/pdfviewer/#serviceurl) property of the PDF Viewer as shown below.
201+
6. The PDF Viewer server instance runs at `https://localhost:5001`. Navigate to `https://localhost:5001/pdfviewer` to see the default GET response. Bind this URL to the [serviceUrl](https://ej2.syncfusion.com/documentation/api/pdfviewer#serviceurl) property of the PDF Viewer as shown below.
202202

203203
{% tabs %}
204204
{% highlight ts tabtitle="app.ts" %}

Document-Processing/PDF/PDF-Viewer/javascript-es6/getting-started.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
3-
title: Getting started with TypeScript PDF Viewer (standalone) | Syncfusion
4-
description: Learn how to set up and use the Syncfusion TypeScript PDF Viewer in standalone mode using the EJ2 quickstart, including local resource configuration and module injection.
3+
title: Getting started with standalone TypeScript PDF Viewer | Syncfusion
4+
description: Learn how to set up and use the Syncfusion TypeScript PDF Viewer in standalone mode, including local resource configuration and module injection.
55
platform: document-processing
66
control: PDF Viewer
77
documentation: ug
@@ -10,13 +10,13 @@ domainurl: ##DomainURL##
1010

1111
# Getting started with TypeScript PDF Viewer (standalone)
1212

13-
This guide explains how to create the PDF Viewer component and configure its features in TypeScript using the Essential JS 2 [quickstart](https://github.com/SyncfusionExamples/ej2-quickstart-webpack-) seed repository.
13+
This guide explains how to create the PDF Viewer component and configure its features in TypeScript using the Essential JS 2 [quickstart](https://github.com/SyncfusionExamples/ej2-quickstart-webpack) seed repository.
1414

15-
> This application is integrated with a webpack configuration (`webpack.config.js`) and uses the latest version of the [webpack-cli](https://webpack.js.org/api/cli/#commands). It requires Node.js `v14.15.0` or higher. For more information, refer to the [webpack getting started guide](https://webpack.js.org/guides/getting-started/).
15+
> This application is integrated with a webpack configuration (`webpack.config.js`) and uses the latest version of the [webpack-cli](https://webpack.js.org/api/cli#commands). It requires Node.js `v14.15.0` or higher. For more information, refer to the [webpack getting started guide](https://webpack.js.org/guides/getting-started).
1616
1717
## Set up the development environment
1818

19-
Open a command prompt in the target directory and run the following command to clone the Syncfusion JavaScript (Essential JS 2) quickstart project from [GitHub](https://github.com/SyncfusionExamples/ej2-quickstart-webpack-).
19+
Open a command prompt in the target directory and run the following command to clone the Syncfusion JavaScript (Essential JS 2) quickstart project from [GitHub](https://github.com/SyncfusionExamples/ej2-quickstart-webpack).
2020

2121
{% tabs %}
2222
{% highlight bash tabtitle="CMD" %}
@@ -187,7 +187,7 @@ pdfviewer.appendTo('#PdfViewer');
187187
{% endhighlight %}
188188
{% endtabs %}
189189

190-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/getting-started-cs2/index.html" %}
190+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/getting-started-cs2" %}
191191

192192
## Module injection
193193

Document-Processing/PDF/PDF-Viewer/javascript-es6/how-to/custom-context-menu.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
1010

1111
# Customize the context menu in PDF Viewer
1212

13-
PDF Viewer supports adding custom options to the context menu using the [addCustomMenu()](https://ej2.syncfusion.com/documentation/api/pdfviewer/#addcustommenu) method. Define actions for custom items with the [customContextMenuSelect()](https://ej2.syncfusion.com/documentation/api/pdfviewer/#customcontextMenuselect) method.
13+
PDF Viewer supports adding custom options to the context menu using the [addCustomMenu()](https://ej2.syncfusion.com/documentation/api/pdfviewer#addcustommenu) method. Define actions for custom items with the [customContextMenuSelect()](https://ej2.syncfusion.com/documentation/api/pdfviewer#customcontextMenuselect) method.
1414

1515
### Add a custom option
1616

@@ -127,7 +127,7 @@ Toggle the display of the default context menu. When the addCustomMenu parameter
127127

128128
#### Show or hide custom items before opening
129129

130-
Use [customContextMenuBeforeOpen()](https://ej2.syncfusion.com/documentation/api/pdfviewer/#customcontextMenubeforeopen) to hide or show custom options dynamically.
130+
Use [customContextMenuBeforeOpen()](https://ej2.syncfusion.com/documentation/api/pdfviewer#customcontextMenubeforeopen) to hide or show custom options dynamically.
131131

132132
```ts
133133

@@ -293,4 +293,4 @@ N> To set up the **server-backed PDF Viewer**,
293293
Add the below [serviceUrl](https://ej2.syncfusion.com/documentation/api/pdfviewer/#serviceurl) in the `index.ts` file
294294
`viewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
295295

296-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/custom-context-menu/index.html" %}
296+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es5/custom-context-menu" %}

Document-Processing/PDF/PDF-Viewer/javascript-es6/toolbar.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ N> To set up the **server-backed PDF Viewer**,
118118
Add the below `serviceUrl` in the `index.ts` file
119119
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
120120

121-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/toolbar/toolbar-hide-cs1/index.html" %}
121+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/toolbar/toolbar-hide-cs1" %}
122122

123123
* **Show/Hide toolbar using showToolbar as in the following code snippet**
124124

@@ -177,10 +177,10 @@ document.getElementById('set').addEventListener('click', ()=> {
177177
{% endtabs %}
178178

179179
N> To set up the **server-backed PDF Viewer**,
180-
Add the below [serviceUrl](https://ej2.syncfusion.com/documentation/api/pdfviewer/#serviceurl) in the `index.ts` file
180+
Add the below [serviceUrl](https://ej2.syncfusion.com/documentation/api/pdfviewer#serviceurl) in the `index.ts` file
181181
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer';`
182182

183-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/toolbar/toolbar-method-cs1/index.html" %}
183+
{% previewsample "/document-Processing/code-snippet/pdfviewer/javascript-es6/toolbar/toolbar-method-cs1" %}
184184

185185
## Show/Hide the default toolbaritem
186186

@@ -243,7 +243,7 @@ N> To set up the **server-backed PDF Viewer**,
243243
Add the below `serviceUrl` in the `index.ts` file
244244
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
245245

246-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/toolbar/toolbar-items-cs1/index.html" %}
246+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/toolbar/toolbar-items-cs1" %}
247247

248248
* **Show/Hide toolbaritem using showToolbaritem as in the following code snippet**
249249

@@ -305,15 +305,15 @@ N> To set up the **server-backed PDF Viewer**,
305305
Add the below `serviceUrl` in the `index.ts` file
306306
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer/';`
307307

308-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es6/toolbar/toolbar-items-method-cs1/index.html" %}
308+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es6/toolbar/toolbar-items-method-cs1" %}
309309

310310
## Customize Built-In Toolbar
311311

312312
PDF Viewer allows you to customize(add, show, hide, enable, and disable) existing items in a toolbar.
313313

314-
* Add - New items can defined by [**CustomToolbarItemModel**](https://ej2.syncfusion.com/documentation/api/pdfviewer/customToolbarItemModel/) and with existing items in [**ToolbarSettings**](https://ej2.syncfusion.com/documentation/api/pdfviewer/toolbarSettings/) property. Newly added item click action can be defined in [`toolbarclick`](https://ej2.syncfusion.com/documentation/api/toolbar/clickEventArgs/).
314+
* Add - New items can defined by [**CustomToolbarItemModel**](https://ej2.syncfusion.com/documentation/api/pdfviewer/customToolbarItemModel) and with existing items in [**ToolbarSettings**](https://ej2.syncfusion.com/documentation/api/pdfviewer/toolbarSettings) property. Newly added item click action can be defined in [`toolbarclick`](https://ej2.syncfusion.com/documentation/api/toolbar/clickEventArgs).
315315

316-
* Show, Hide - Existing items can be shown or hidden using the [`ToolbarSettings`](https://ej2.syncfusion.com/documentation/api/pdfviewer/toolbarSettings/) property. Pre-defined toolbar items are available with [`ToolbarItem`](https://ej2.syncfusion.com/documentation/api/pdfviewer/toolbarItem/).
316+
* Show, Hide - Existing items can be shown or hidden using the [`ToolbarSettings`](https://ej2.syncfusion.com/documentation/api/pdfviewer/toolbarSettings) property. Pre-defined toolbar items are available with [`ToolbarItem`](https://ej2.syncfusion.com/documentation/api/pdfviewer/toolbarItem).
317317

318318
* Enable, Disable - Toolbar items can be enabled or disable using [`enabletoolbaritem`](https://ej2.syncfusion.com/documentation/api/pdfviewer/toolbar/#enabletoolbaritem)
319319

@@ -1527,7 +1527,7 @@ Sample :
15271527

15281528
## How to customize the default toolbar with desired tools
15291529

1530-
Customize the default toolbar with the required tools by using the [toolbarSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer/#toolbarsettings) class of the PDF viewer.
1530+
Customize the default toolbar with the required tools by using the [toolbarSettings](https://ej2.syncfusion.com/documentation/api/pdfviewer#toolbarsettings) class of the PDF viewer.
15311531

15321532
The following code illustrates how to render the default toolbar with specific tools.
15331533

0 commit comments

Comments
 (0)