PdfViewer is a WinCC Unified Custom Web Control that evolved into a media browser and viewer for PDFs, images, audio, and video, with a local helper backend.
deploy_cwc.bat: builds and copies the CWC ZIP to the WinCCCustomControlsfolder{A1B7F3B4-FD9F-40A0-80FC-69C20AE48E4B}/: CWC manifest and frontend assetspdf_local_server.ps1: local media helperstart_media_local_server.bat: starts the active media helperstart_pdf_local_server.bat: compatibility wrapper_ModuleTemplate_extract/: active module packaging source_ModuleTemplate_fresh/: clean template-derived reference copyMediaModule.zip: built module package
- browses files from a configured root folder
- previews PDF, image, audio, and video content
- restores the last selected item when configured
- supports custom PDF viewing behavior and navigation state
- serves local files through a localhost helper
- Start the helper with
start_media_local_server.bat - Deploy the CWC with
deploy_cwc.bat - Reload the WinCC screen or reimport the control if needed
- local media access depends on the localhost helper being active
- module artifacts are built from the template extract folder
- extra template ZIPs and build outputs are intentionally ignored by git