A sample code demonstrating how the GroupDocs.Viewer for Java library can be integrated into PHP application.