This project demonstrates the integration of jadice web viewer, a document viewing solution that enables viewing, annotating, and handling various document formats in web applications.
The jadice web viewer Getting Started project consists of two main components:
- Backend: A Spring Boot application that provides document processing capabilities
- Frontend: An Angular application that integrates the jadice web viewer components
- Test Storage Server with Basic Auth: A node http server that provides Basic Auth
Together, these components create a complete document viewing solution with features like annotation support, and format export.
- Document Viewing: Core functionality for rendering documents via Document Data Providers
- Annotation Handling: Support for creating, viewing, and saving annotations
- Authentication Support: Configure Basic or Bearer token authentication
- CORS Support: Comprehensive cross-origin configuration for web integration
- Document Display: Renders documents
- Toolbar Configuration: Customizable toolbar with various document operations
- Annotation Support: Create and manage document annotations
- Page Navigation: Navigate through multi-page documents
- Zoom Controls: Adjust document zoom levels
- Rotation Controls: Rotate document pages
- Export Options: Export documents to various formats
- Java 21
- Node.js 20+ and npm
- Needs to be configured for our private repositories @see: https://levigo.github.io/jadice-webtoolkit-documentation/ng-client/getting-started/
- Angular CLI
This test server is needed for the default document which is included in the getting started. As well as for saving annotations via the save action to the Basic Auth endpoint defined in the application.yml file of the backend.
@See README.md in test-server-basic-auth
@See README.md in jadice-web-viewer-gs-backend
- Navigate to the frontend directory
- Install dependencies:
npm install
- Start the development server:
npm run start
- Open your browser and navigate to
http://localhost:4200
The application can be configured via application.yml
. Key configuration options include:
- Annotation save settings
- Authentication settings
- CORS configuration
The Angular application can be configured through:
- Custom toolbar configurations
- Source document configuration
JadiceWebViewerApplicationGS
: Main application entry pointSaveJadiceAnnotationsHandler
: Handles saving annotations to a remote serverCorsConfig
: Configures cross-origin resource sharing
AppComponent
: Main application component integrating jadice web viewerWebviewerComponent
: Core component for document viewing
Users can add, edit, and save annotations to documents. The backend provides handlers for saving annotations to a configured server endpoint.
The toolbar can be customized with various actions:
- Navigation controls
- Zoom controls
- Rotation options
- Export options
- Annotation tools
For more detailed information, refer to the jadice web viewer documentation and API references.