Skip to content
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

SEO-177658 - PDF Viewer To HTML #424

Open
wants to merge 4 commits into
base: hotfix/hotfix-v23.1.36
Choose a base branch
from
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
3 changes: 2 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ if(currentBuild.result != 'FAILURE')
}

def files = findFiles(glob: '**/cireports/errorlogs/*.txt')


if(files.size() > 0)
{
Expand All @@ -74,7 +75,7 @@ if(currentBuild.result != 'FAILURE')

stage 'Delete Workspace'

def files = findFiles(glob: '**/cireports/spellcheck/*.*')
def files = findFiles(glob: '**/cireports/*.*')

if(files.size() > 0)
{
Expand Down
16 changes: 8 additions & 8 deletions js/PdfViewer/Getting-Started.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
---
layout: post
title: Getting started with JavaScript PDF viewer Control | Syncfusion
description: Learn here about getting started with Syncfusion Essential Studio JavaScript PDF viewer control, its elements, and more.
title: Getting Started with JavaScript PDF Viewer Control | Syncfusion
description: Learn here about getting started with Syncfusion Essential Studio JavaScript PDF Viewer control, its elements, and more.
platform: js
control: PDF viewer
documentation: ug
keywords: ejPdfViewer, PDF Viewer
api: /api/js/ejpdfviewer
---

# Getting Started with Javascript PDF viewer
# Getting Started with JavaScript PDF Viewer

This section explains how to create the PDF viewer in your web application using JavaScript.

**Create your first PDF viewer application in JavaScript**

Create a new project in the Visual Studio by selecting the ASP.NET Empty Web Application template. The following screenshot displays the Project Creation Wizard in Visual Studio 2012.

![GettingStarted](Getting-Started_images/Getting-Started_img1.jpeg)
![Getting Started with JavaScript PDF Viewer.](getting-started_images/javascript-pdf-viewer-getting-started.jpeg)

**Create HTML Page**

Right-click the project and select New Item option from the ‘Add’ menu to add a HTML page to the application. Name the page as **Default.html** and click OK.

![GettingStarted](Getting-Started_images/Getting-Started_img2.jpeg)
![Create HTMl page in JavaScript PDF Viewer.](getting-started_images/javascript-pdf-viewer-create-html-page.jpeg)

### Add References, Scripts, Styles

Expand Down Expand Up @@ -402,7 +402,7 @@ Add the following code in the <body> tag in the Default.html page. Here, the PDF

The PDF viewer uses Web API services to process the PDF file. Right-Click the Project, select Add and Web API Controller Class from the listed templates. Rename it as **PdfViewerAPIController.cs**.

![GettingStarted](Getting-Started_images/Getting-Started_img3.jpeg)
![Web API controller for PDF Viewer in JavaScript.](getting-started_images/javascript-pdf-viewer-web-api-controller.jpeg)

N> While adding WebAPI Controller Class, name it with the suffix “Controller” that is mandatory. For example, in the demo the controller is named as “PdfViewerAPIController”.

Expand Down Expand Up @@ -465,7 +465,7 @@ N> Create a folder named Data in the project location and add the PDF document t

Right-Click the Project, select Add and Global.asax file from the listed templates.

![GettingStarted](Getting-Started_images/Getting-Started_img4.jpeg)
![Web API routing in JavaScript PDF Viewer.](getting-started_images/javascript-pdf-viewer-web-api-routing.jpeg)

You can route the Web API in the Application_Start event into Global.asax file as follows.

Expand Down Expand Up @@ -519,7 +519,7 @@ Run the sample application and you can see the PDF Viewer on the page as display

<http://www.syncfusion.com/downloads/support/directtrac/general/ze/PdfViewer_GettingStarted-67533367>

![GettingStarted](Getting-Started_images/Getting-Started_img5.png)
![Display sample in JavaScript PDF Viewer.](getting-started_images/javascript-pdf-viewer-display-sample.png)

**Destroy**

Expand Down