Skip to content

1022959: Updated Environment Integration for ssr ionic nx vite Environments#2669

Open
SF4524LogeshKumar wants to merge 5 commits intodevelopmentfrom
1022959-ionicAngular
Open

1022959: Updated Environment Integration for ssr ionic nx vite Environments#2669
SF4524LogeshKumar wants to merge 5 commits intodevelopmentfrom
1022959-ionicAngular

Conversation

@SF4524LogeshKumar
Copy link
Copy Markdown
Collaborator

Description:

Updated Environment Integration for Syncfusion Angular PDF Viewer

  • Ionic Angular
  • Angular Vite
  • Angular Universal SSR
  • NX Angular

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

Build Status: INPROGRESS 🔃
Build Location: 1022959-ionicAngular

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

CI Status: FAILURE ❌
Source Compilation: SUCCESS ✅
Failure Reason: CI Failure with violation
Build Location: 1022959-ionicAngular
Technical Error(s): 0
Spelling Error(s): 21
Image Alt Text Error(s): 0
Image Size Error(s): 0
Image Name Error(s): 0
Front matter Error(s): 6
File Path Error(s): 0
CodeSnippet File Path Missing Error(s): 0
Toc Anchor Tags Validation Error(s): 0
MD Tag Validation Error(s): 0

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

Build Status: INQUEUE 🕒
Build Location: 1022959-ionicAngular

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

The running CI Job is terminated due to changes committed on the source branch for this Merge Request and CI triggered for latest commit.

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

CI Status: ABORTED ❌
Source Compilation: Not Started ❌
Build Location: 1022959-ionicAngular

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

Build Status: INQUEUE 🕒
Build Location: 1022959-ionicAngular

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

Build Status: INPROGRESS 🔃
Build Location: 1022959-ionicAngular

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

CI Status: FAILURE ❌
Source Compilation: SUCCESS ✅
Failure Reason: CI Failure with violation
Build Location: 1022959-ionicAngular
Technical Error(s): 0
Spelling Error(s): 18
Image Alt Text Error(s): 0
Image Size Error(s): 0
Image Name Error(s): 0
Front matter Error(s): 1
File Path Error(s): 0
CodeSnippet File Path Missing Error(s): 0
Toc Anchor Tags Validation Error(s): 0
MD Tag Validation Error(s): 0

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

Build Status: INPROGRESS 🔃
Build Location: 1022959-ionicAngular

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

CI Status: FAILURE ❌
Source Compilation: SUCCESS ✅
Failure Reason: CI Failure with violation
Build Location: 1022959-ionicAngular
Technical Error(s): 0
Spelling Error(s): 17
Image Alt Text Error(s): 0
Image Size Error(s): 0
Image Name Error(s): 0
Front matter Error(s): 0
File Path Error(s): 0
CodeSnippet File Path Missing Error(s): 0
Toc Anchor Tags Validation Error(s): 0
MD Tag Validation Error(s): 0

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

Build Status: INPROGRESS 🔃
Build Location: 1022959-ionicAngular

@SyncfusionBuild
Copy link
Copy Markdown
Contributor

CI Status: FAILURE ❌
Source Compilation: SUCCESS ✅
Failure Reason: CI Failure with violation
Build Location: 1022959-ionicAngular
Technical Error(s): 0
Spelling Error(s): 17
Image Alt Text Error(s): 0
Image Size Error(s): 0
Image Name Error(s): 0
Front matter Error(s): 0
File Path Error(s): 0
CodeSnippet File Path Missing Error(s): 0
Toc Anchor Tags Validation Error(s): 0
MD Tag Validation Error(s): 0

import { Component, PLATFORM_ID, Inject, OnInit, NO_ERRORS_SCHEMA } from '@angular/core';
import { isPlatformBrowser, CommonModule } from '@angular/common';
import {
PdfViewerModule,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make it three lines

Comment on lines +118 to +142
styles: [`
.pdf-viewer-container {
padding: 20px;
background: #f5f5f5;
border-radius: 8px;
margin-top: 20px;
}

.viewer-wrapper {
height: 650px;
border: 1px solid #ddd;
border-radius: 4px;
background: white;
overflow: hidden;
}

.ssr-placeholder {
height: 200px;
display: flex;
align-items: center;
justify-content: center;
background: white;
border: 1px solid #ddd;
border-radius: 4px;
color: #999;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need these style related code.

}

.no-documents {
display: flex;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why these much CSS code?


This guide explains how to create an Angular application powered by the Vite build system and integrate the Syncfusion Angular PDF Viewer using standalone components.

From Angular 17 onwards, the Angular CLI uses a Vite-based application builder by default for local development. This improves startup time, rebuild performance, and developer experience. The Syncfusion Angular PDF Viewer works seamlessly with this modern setup when integrated correctly.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can remove this content.

Comment on lines +28 to +33
Verify installations:

```bash
node --version
npm --version
ng version
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove verification commands


These imports ensure the PDF Viewer toolbar, buttons, menus, and all UI elements are properly styled using Syncfusion's Material Design theme.

## Create a PDF Service
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is application architecture, not PDF Viewer integration

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this section

Comment on lines +350 to +356
**Component Features:**
- Standalone component (no NgModule required)
- All 13 Syncfusion services registered as providers
- Dynamic resource URL calculation for runtime asset resolution
- RxJS subscriptions to service observables
- Proper event handling for load success/failure
- TypeScript strict mode compatible
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove feature bullets

{% endhighlight %}
{% endtabs %}

## Add Sample PDF Documents (Optional)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this section


# Syncfusion Angular PDF Viewer in Angular Universal (SSR)

This guide shows how to create an Angular Universal SSR application and integrate the Syncfusion Angular PDF Viewer component.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace conceptually with:

“This guide explains how to integrate the Syncfusion Angular PDF Viewer into an existing Angular Universal (SSR) application.”


## Step 1: Create Angular SSR Project

Create a new Angular application with Server-Side Rendering:
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Angular Universal setup belongs to Angular docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants