Skip to content

Commit c3207b4

Browse files
1000370: Preview Sample Issues Resolved in JS
1 parent 593fdeb commit c3207b4

6 files changed

Lines changed: 19 additions & 19 deletions

File tree

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ N> To set up the **server-backed PDF Viewer**,
4747
Add the below [serviceUrl](https://ej2.syncfusion.com/documentation/api/pdfviewer/#serviceurl) in the `index.html` file
4848
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
4949

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

5252
Refer to the following code snippet to switch back to normal mode from highlight mode.
5353

@@ -61,7 +61,7 @@ N> To set up the **server-backed PDF Viewer**,
6161
Add the below `serviceUrl` in the `index.html` file
6262
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
6363

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

6666
## Highlight text programmatically
6767

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

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

157157

158158
Refer to the following code snippet to switch back to normal mode from underline mode.
@@ -167,7 +167,7 @@ N> To set up the **server-backed PDF Viewer**,
167167
Add the below `serviceUrl` in the `index.html` file
168168
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
169169

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

172172
## Underline text programmatically
173173

@@ -259,7 +259,7 @@ N> To set up the **server-backed PDF Viewer**,
259259
Add the below `serviceUrl` in the `index.html` file
260260
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
261261

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

264264
Refer to the following code snippet to switch back to normal mode from strikethrough mode.
265265

@@ -273,7 +273,7 @@ N> To set up the **server-backed PDF Viewer**,
273273
Add the below `serviceUrl` in the `index.html` file
274274
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
275275

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

278278
## Strikethrough text programmatically
279279

@@ -363,7 +363,7 @@ N> To set up the **server-backed PDF Viewer**,
363363
Add the below `serviceUrl` in the `index.html` file
364364
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
365365

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

368368
Refer to the following code snippet to switch back to normal mode from squiggly mode.
369369

@@ -377,7 +377,7 @@ N> To set up the **server-backed PDF Viewer**,
377377
Add the below `serviceUrl` in the `index.html` file
378378
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
379379

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

382382
## Add squiggly to text programmatically
383383

@@ -531,7 +531,7 @@ N> To set up the **server-backed PDF Viewer**,
531531
Add the below `serviceUrl` in the `index.html` file
532532
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
533533

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

536536
## Save text markup annotations
537537

Document-Processing/PDF/PDF-Viewer/javascript-es5/form-designer/create-programmatically.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Use the addFormField method to add form fields programmatically. Pass the form f
3737
N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in the `index.html` file:
3838
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
3939

40-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/addformfield-cs1/index.html" %}
40+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es5/addformfield-cs1" %}
4141

4242
## Edit/Update form field programmatically
4343

@@ -55,7 +55,7 @@ Use the updateFormField method to modify a form field programmatically. Retrieve
5555
N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in the `index.html` file:
5656
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
5757

58-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/updateformfield-cs1/index.html" %}
58+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es5/updateformfield-cs1" %}
5959

6060
## Delete form field programmatically
6161

@@ -73,7 +73,7 @@ Use the deleteFormField method to remove a form field programmatically. Retrieve
7373
N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in the `index.html` file:
7474
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
7575

76-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/deleteformfield-cs1/index.html" %}
76+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es5/deleteformfield-cs1" %}
7777

7878
## Saving the form fields
7979

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ document.getElementById('load').addEventListener('click', function () {
4747

4848
N> The Web API hosted link https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer utilized in the PDF viewer's serviceUrl property is intended solely for demonstration and evaluation purposes. For production deployment, please host your own web service with your required server configurations. You can refer and reuse the [GitHub Web Service example](https://github.com/SyncfusionExamples/EJ2-PDFViewer-WebServices) or [Docker image](https://hub.docker.com/r/syncfusion/pdfviewer-server) for hosting your own web service and use for the serviceUrl property. **We strongly recommend using the standalone mode.**
4949

50-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-getting-started-cs1/index.html" %}
50+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es5/es5-getting-started-cs1" %}
5151

5252
## Run the application
5353

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The Essential JS 2 for JavaScript (global script) is an ES5 formatted pure JavaS
3737
{% endhighlight %}
3838
{% endtabs %}
3939

40-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-getting-started-cs2/index.html" %}
40+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es5/es5-getting-started-cs2" %}
4141

4242

4343
### Steps to Load PDF Viewer with Local Resources

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,6 @@ N> To set up the **server-backed PDF Viewer**,
276276
Add the below [serviceUrl](https://ej2.syncfusion.com/documentation/api/pdfviewer/#serviceurl) in the `index.ts` file
277277
`pdfviewer.serviceUrl = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer';`
278278

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

281281
[View sample in GitHub](https://github.com/SyncfusionExamples/javascript-pdf-viewer-examples/tree/master/How%20to/Custom%20Context%20Menu)

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ N> To set up the **server-backed PDF Viewer**,
6666
Add the below [serviceUrl](https://ej2.syncfusion.com/documentation/api/pdfviewer/#serviceurl) in the `index.html` file
6767
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
6868

69-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-toolbar/toolbar-hide-cs1/index.html" %}
69+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es5/es5-toolbar/toolbar-hide-cs1" %}
7070

7171
* **Show/Hide toolbar using showToolbar as in the following code snippet**
7272

@@ -80,7 +80,7 @@ N> To set up the **server-backed PDF Viewer**,
8080
Add the below `serviceUrl` in the `index.html` file
8181
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
8282

83-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-toolbar/toolbar-method-cs1/index.html" %}
83+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es5/es5-toolbar/toolbar-method-cs1" %}
8484

8585
## Show/Hide the default toolbaritem
8686

@@ -98,7 +98,7 @@ N> To set up the **server-backed PDF Viewer**,
9898
Add the below `serviceUrl` in the `index.html` file
9999
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
100100

101-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-toolbar/toolbar-items-cs1/index.html" %}
101+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es5/es5-toolbar/toolbar-items-cs1" %}
102102

103103
* **Show/Hide toolbaritem using showToolbaritem as in the following code snippet**
104104

@@ -112,7 +112,7 @@ N> To set up the **server-backed PDF Viewer**,
112112
Add the below `serviceUrl` in the `index.html` file
113113
`serviceUrl: 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`
114114

115-
{% previewsample "Document-Processing/code-snippet/pdfviewer/javascript-es5/es5-toolbar/toolbar-items-method-cs1/index.html" %}
115+
{% previewsample "/document-processing/code-snippet/pdfviewer/javascript-es5/es5-toolbar/toolbar-items-method-cs1" %}
116116

117117
## Customize Built-In Toolbar
118118

0 commit comments

Comments
 (0)