Skip to content

Commit c21f263

Browse files
Merge pull request #2040 from syncfusion-content/1000370-previewSampleIssue
1000370: Resolved Preview sample Issues
2 parents 0d1489b + c1df6ac commit c21f263

27 files changed

Lines changed: 105 additions & 105 deletions

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in
9494
`public service: string = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`;
9595
Within the template, configure the PDF Viewer by adding the `[serviceUrl]='service'` attribute inside the div element.
9696

97-
{% previewsample "Document-Processing/samples/pdfviewer/anagular/addformfield-cs1/index.html" %}
97+
{% previewsample "/document-processing/samples/pdfviewer/anagular/addformfield-cs1" %}
9898

9999
## Edit/Update form field programmatically
100100

@@ -170,7 +170,7 @@ N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in
170170
`public service: string = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`;
171171
Within the template, configure the PDF Viewer by adding the `[serviceUrl]='service'` attribute inside the div element.
172172

173-
{% previewsample "Document-Processing/samples/pdfviewer/angular/updateformfield-cs1/index.html" %}
173+
{% previewsample "/document-processing/samples/pdfviewer/angular/updateformfield-cs1" %}
174174

175175
## Delete form field programmatically
176176

@@ -246,7 +246,7 @@ N> To configure the server-backed PDF Viewer, add the following `serviceUrl` in
246246
`public service: string = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`;
247247
Within the template, configure the PDF Viewer by adding the `[serviceUrl]='service'` attribute inside the div element.
248248

249-
{% previewsample "Document-Processing/samples/pdfviewer/angular/deleteformfield-cs1/index.html" %}
249+
{% previewsample "/document-processing/samples/pdfviewer/angular/deleteformfield-cs1" %}
250250

251251
The following code illustrates how to delete a signature from the signature field using the `retrieveFormFields` and `clearFormFields` APIs.
252252

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ platformBrowserDynamic().bootstrapModule(AppModule)
150150

151151
```
152152

153-
{% previewsample "Document-Processing/samples/pdfviewer/angular/getting-started-cs1/index.html" %}
153+
{% previewsample "/document-processing/samples/pdfviewer/angular/getting-started-cs1" %}
154154

155155
> For PDF Viewer serviceUrl creation, follow the steps provided in the [link](https://help.syncfusion.com/document-processing/pdf/pdf-viewer/javascript-es6/how-to/create-pdfviewer-service)
156156

Document-Processing/PDF/PDF-Viewer/angular/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ platformBrowserDynamic().bootstrapModule(AppModule)
215215
{% endhighlight %}
216216
{% endtabs %}
217217

218-
{% previewsample "Document-Processing/samples/pdfviewer/angular/getting-started-cs1-standalone/index.html" %}
218+
{% previewsample "/document-processing/samples/pdfviewer/angular/getting-started-cs1-standalone" %}
219219

220220
## Module injection
221221

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ domainurl: ##DomainURL##
1111
# Customize the context menu in PDF Viewer
1212

1313
PDF Viewer allows you to add custom option in context menu. It can be achieved by using the `addCustomMenu()` method and custom action is defined using the `customContextMenuSelect()`method.
14-
PDF Viewer supports adding custom options to the context menu using the `addCustomMenu()`(https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#addcustommenu)method. Define actions for custom items with the [customContextMenuSelect()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#customcontextmenuselect) method.
14+
PDF Viewer supports adding custom options to the context menu using the `addCustomMenu()`(https://ej2.syncfusion.com/angular/documentation/api/pdfviewer#addcustommenu)method. Define actions for custom items with the [customContextMenuSelect()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer#customcontextmenuselect) method.
1515

1616
### Add a custom option
1717

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

103103
#### show or hide custom items before opening
104104

105-
Use [customContextMenuBeforeOpen()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer/#customcontextmenubeforeopen) to hide or show custom options dynamically.
105+
Use [customContextMenuBeforeOpen()](https://ej2.syncfusion.com/angular/documentation/api/pdfviewer#customcontextmenubeforeopen) to hide or show custom options dynamically.
106106

107107
```js
108108
export class CustomContextMenuComponent implements OnInit {
@@ -227,6 +227,6 @@ Add the below serviceUrl in the `app.component.ts` file
227227
`public service: string = 'https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer'`;
228228
Within the template, configure the PDF Viewer by adding the `[serviceUrl]='service'` attribute inside the div element.
229229

230-
{% previewsample "Document-Processing/samples/pdfviewer/angular/custom-context-menu/index.html" %}
230+
{% previewsample "/document-processing/samples/pdfviewer/angular/custom-context-menu" %}
231231

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

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

Lines changed: 13 additions & 13 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,11 +61,11 @@ 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

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

7070
Example:
7171

@@ -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,11 +167,11 @@ 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

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

176176
Example:
177177

@@ -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,11 +273,11 @@ 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

280-
Programmatically add strikethrough using the [addAnnotation](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
280+
Programmatically add strikethrough using the [addAnnotation](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation#addannotation) method.
281281

282282
Example:
283283

@@ -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,11 +377,11 @@ 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

384-
Programmatically add squiggly using the [addAnnotation](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation/#addannotation) method.
384+
Programmatically add squiggly using the [addAnnotation](https://ej2.syncfusion.com/javascript/documentation/api/pdfviewer/annotation#addannotation) method.
385385

386386
Example:
387387

@@ -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: 4 additions & 4 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

@@ -1238,7 +1238,7 @@ pdfviewer.listBoxFieldSettings = {
12381238

12391239
### DropDown field settings
12401240

1241-
Using the [updateFormField](https://ej2.syncfusion.com/documentation/api/pdfviewer/#updateformfields) method, the form fields can be updated programmatically.
1241+
Using the [updateFormField](https://ej2.syncfusion.com/documentation/api/pdfviewer#updateformfields) method, the form fields can be updated programmatically.
12421242

12431243
The following example updates DropDown field properties on a button click.
12441244

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ This guide explains how to create the PDF Viewer component and configure its fea
3737
{% endhighlight %}
3838
{% endtabs %}
3939

40-
N> We have provided the support to dynamically change the [serviceURL](https://ej2.syncfusion.com/documentation/api/pdfviewer/#serviceurl). So, after changing the `serviceURL` dynamically, you need invoke the `pdfViewer.dataBind()` method to update the `serviceURL` quickly. This will effectively change the `serviceURL` dynamically. Ensure that this step is performed after version 23.1.36.
40+
N> We have provided the support to dynamically change the [serviceURL](https://ej2.syncfusion.com/documentation/api/pdfviewer#serviceurl). So, after changing the `serviceURL` dynamically, you need invoke the `pdfViewer.dataBind()` method to update the `serviceURL` quickly. This will effectively change the `serviceURL` dynamically. Ensure that this step is performed after version 23.1.36.
4141
document.getElementById('load').addEventListener('click', function () {
4242
pdfViewer.serviceUrl = "https://document.syncfusion.com/web-services/pdf-viewer/api/pdfviewer";
4343
pdfViewer.documentPath = "https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf";
@@ -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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ domainurl: ##DomainURL##
1010

1111
# Customize the context menu in JavaScript 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

@@ -106,7 +106,7 @@ pdfviewer.documentLoad = function (args) {
106106

107107
#### Show or hide custom items before opening
108108

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

111111
```js
112112
var pdfviewer = new ej.pdfviewer.PdfViewer({
@@ -273,9 +273,9 @@ The following is the output of the custom context menu with customization.
273273
{% endtabs %}
274274

275275
N> To set up the **server-backed PDF Viewer**,
276-
Add the below [serviceUrl](https://ej2.syncfusion.com/documentation/api/pdfviewer/#serviceurl) in the `index.ts` file
276+
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)

0 commit comments

Comments
 (0)