### Quick Start Project Setup Source: https://docs.groupdocs.com/parser/net/installation Commands to initialize a new .NET Core project and install the necessary package. ```bash # 1. Create new project dotnet new console -n GroupDocsParserDemo cd GroupDocsParserDemo # 2. Install package dotnet add package GroupDocs.Parser # 3. Run the project dotnet run ``` -------------------------------- ### Setup and Execution Commands for GroupDocs.Redaction Examples Source: https://docs.groupdocs.com/redaction/python-net/how-to-run-examples Commands to clone the repository, install the required package, and run the example suite. ```bash git clone https://github.com/groupdocs-redaction/GroupDocs.Redaction-for-Python-via-.NET.git ``` ```bash cd ./GroupDocs.Redaction-for-Python-via-.NET/ ``` ```bash pip install groupdocs-redaction-net ``` ```bash cd ./Examples ``` ```bash python runExamples.py ``` -------------------------------- ### Clone and Setup GitHub Examples Source: https://docs.groupdocs.com/signature/python-net/how-to-run-examples Commands to clone the official repository and prepare the environment for running provided examples. ```bash git clone https://github.com/groupdocs-signature/GroupDocs.Signature-for-Python-via-.NET.git cd GroupDocs.Signature-for-Python-via-.NET ``` ```bash python -m venv venv # On Windows: venv\Scripts\activate # On macOS/Linux: source venv/bin/activate pip install -r requirements.txt ``` ```bash cd Examples python run_examples.py ``` -------------------------------- ### Run All Examples Source: https://docs.groupdocs.com/comparison/nodejs-java/how-to-run-examples Execute all available examples in the project using the npm start command. Output documents will be generated in the 'Output/' directory. ```bash npm start ``` -------------------------------- ### Install Dependencies for GroupDocs.Redaction Java Examples Source: https://docs.groupdocs.com/redaction/java/how-to-run-examples Navigate to the Examples directory and run this command to install all necessary dependencies and compile the example classes. ```bash cd Examples mvn clean install ``` -------------------------------- ### Clone and Run Examples via CLI Source: https://docs.groupdocs.com/metadata/nodejs-java/how-to-run-examples Commands to download the repository, install dependencies, and execute the example runner. ```bash git clone https://github.com/groupdocs-metadata/GroupDocs.Metadata-for-Node.js-via-Java.git ``` ```bash cd ./GroupDocs.Metadata-for-Node.js-via-Java/ ``` ```bash npm install ``` ```bash cd ./Examples ``` ```bash node runExamples.js ``` -------------------------------- ### Install NPM Packages Source: https://docs.groupdocs.com/merger/nodejs-java/how-to-run-examples Install the necessary Node.js packages for the examples. ```bash npm install ``` -------------------------------- ### Clone GroupDocs.Editor for .NET WebForms Repository Source: https://docs.groupdocs.com/editor/net/how-to-run-examples Clone the GroupDocs.Editor for .NET WebForms example repository from GitHub to get started with the WebForms application. ```bash git clone https://github.com/groupdocs-editor/GroupDocs.Editor-for-.NET-WebForms ``` -------------------------------- ### Create a folder for the example Source: https://docs.groupdocs.com/merger/python-net/developer-guide Create a new directory to house your code example and its dependencies. ```bash mkdir get-document-information cd get-document-information ``` -------------------------------- ### Clone GroupDocs.Editor for .NET MVC Repository Source: https://docs.groupdocs.com/editor/net/how-to-run-examples Clone the GroupDocs.Editor for .NET MVC example repository from GitHub to get started with the MVC application. ```bash git clone https://github.com/groupdocs-editor/GroupDocs.Editor-for-.NET-MVC ``` -------------------------------- ### Navigate to Examples Folder Source: https://docs.groupdocs.com/merger/nodejs-java/how-to-run-examples Navigate to the cloned examples directory. ```bash cd ./GroupDocs.Merger-for-Node.js-via-Java/ ``` -------------------------------- ### Navigate to Examples Folder Source: https://docs.groupdocs.com/search/nodejs-java/how-to-run-examples Change directory into the cloned repository's examples folder. ```bash cd ./GroupDocs.Search-for-Node.js-via-Java/ ``` ```bash cd ./Examples ``` -------------------------------- ### Install Python Package Dependencies Source: https://docs.groupdocs.com/comparison/python-net/getting-started/how-to-run-examples Install all required Python packages for the examples using the provided requirements file. ```bash pip install -r Examples/requirements.txt ``` -------------------------------- ### Navigate to the Project Folder Source: https://docs.groupdocs.com/comparison/python-net/getting-started/how-to-run-examples Change your current directory to the root of the cloned examples repository. ```bash cd GroupDocs.Comparison-for-Python-via-.NET ``` -------------------------------- ### Run All Examples (Linux/macOS) Source: https://docs.groupdocs.com/viewer/python-net/getting-started/how-to-run-examples Executes all available examples sequentially on Linux or macOS. ```bash python3 run_all_examples.py ``` -------------------------------- ### Get Document Information Source: https://docs.groupdocs.com/merger/nodejs-java/get-document-information Use this snippet to get the file type and page count of a document. Ensure you have the GroupDocs.Merger library installed. ```javascript const merger = new groupdocs.merger.Merger('c:/sample.vsdx'); const documentInformation = merger.getDocumentInfo(); const documentType = documentInformation.getType(); console.log(`Document info file format: ${documentType.getFileFormat()}`); console.log(`Document info page count: ${documentInformation.getPageCount()}`); ``` -------------------------------- ### Navigate to Examples Directory Source: https://docs.groupdocs.com/merger/nodejs-java/how-to-run-examples Navigate to the specific examples sub-directory. ```bash cd ./Examples ``` -------------------------------- ### Install Dependencies in Docker (.NET 8) Source: https://docs.groupdocs.com/comparison/net/non-windows-launch Example Dockerfile snippet for .NET 8, demonstrating updated package installation for libgdiplus and Microsoft core fonts. ```dockerfile FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 8080 # Add libgdiplus for graphics support RUN apt-get update && apt-get install -y libgdiplus RUN apt install software-properties-common -y RUN echo "deb http://deb.debian.org/debian bookworm contrib non-free" > /etc/apt/sources.list.d/contrib.list RUN apt update && apt upgrade # Add fonts RUN apt install ttf-mscorefonts-installer -y # This stage is used to build the service project FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build # etc ``` -------------------------------- ### Run Examples with Docker Source: https://docs.groupdocs.com/metadata/python-net/how-to-run-examples Builds a Docker image and runs the full example suite within a container, optionally mounting a license file. ```bash docker build -t groupdocs-metadata-examples . docker run --rm \ -e GROUPDOCS_LIC_PATH=/license/GroupDocs.Metadata.lic \ -v /path/to/your/license:/license:ro \ groupdocs-metadata-examples ``` -------------------------------- ### Install Dependencies in Docker (.NET 6) Source: https://docs.groupdocs.com/comparison/net/non-windows-launch Example Dockerfile snippet for .NET 6 to install libgdiplus and Microsoft core fonts for graphics support and rendering. ```dockerfile FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base WORKDIR /app EXPOSE 80 # Add libgdiplus for graphics support RUN apt-get update && apt-get install -y apt-utils libgdiplus # Add `contrib` archive area to package sources list RUN sed -i'.bak' 's/$/ contrib/' /etc/apt/sources.list # Add fonts RUN apt-get update; apt-get install -y ttf-mscorefonts-installer fontconfig RUN fc-cache -f -v FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build # etc ``` -------------------------------- ### Run Examples Source: https://docs.groupdocs.com/merger/nodejs-java/how-to-run-examples Execute the example scripts using Node.js. ```bash node runExamples.js ``` -------------------------------- ### Get File Info from Stream Source: https://docs.groupdocs.com/redaction/python-net/get-file-info This example demonstrates how to get document information from a file opened as a stream. This is useful for handling files in memory or from network sources. ```python import groupdocs.redaction as gr def run(): with open("source.docx", "rb") as stream: with gr.Redactor(stream) as redactor: info = redactor.get_document_info() print(f"File type: {info.file_type}") print(f"Number of pages: {info.page_count}") print(f"Document size: {info.size} bytes") ``` -------------------------------- ### Get PDF File Information in C# Source: https://docs.groupdocs.com/viewer/net/get-pdf-output-file-info Use this C# snippet to get the page count and dimensions for each page of a PDF document. Ensure you have the GroupDocs.Viewer library installed. ```csharp using System; using GroupDocs.Viewer; using GroupDocs.Viewer.Options; using GroupDocs.Viewer.Results; // ... using (Viewer viewer = new Viewer("sample.pdf")) { // Get file information. ViewInfoOptions viewInfoOptions = ViewInfoOptions.ForPdfView(); ViewInfo viewInfo = viewer.GetViewInfo(viewInfoOptions); // Display page count. Console.WriteLine("Pages count: " + viewInfo.Pages.Count); // Display width and height of each page. foreach (Page page in viewInfo.Pages) { Console.WriteLine($"Page: {page.Number}; Width: {page.Width}, pixels"); Console.WriteLine($"Page: {page.Number}; Height: {page.Height}, pixels"); } } ``` -------------------------------- ### Run Examples with Docker Source: https://docs.groupdocs.com/conversion/python-net/how-to-run-examples Builds a Docker image and runs the example suite in a containerized environment. ```bash docker build -t groupdocs-conversion-examples . docker run --rm \ -e GROUPDOCS_LIC_PATH=/license/GroupDocs.Conversion.lic \ -v /path/to/your/license:/license:ro \ groupdocs-conversion-examples ``` -------------------------------- ### Complete Example: Load Document with Options and Get Info Source: https://docs.groupdocs.com/editor/python-net/load-document This example demonstrates loading a DOCX document using WordProcessingLoadOptions and then retrieving its metadata. Ensure you have GroupDocs.Editor.lic licensed if applicable. ```python import os from groupdocs.editor import Editor, License from groupdocs.editor.options import WordProcessingLoadOptions def load_document(): # Optionally set a license license_path = os.path.abspath("./GroupDocs.Editor.lic") if os.path.exists(license_path): License().set_license(license_path) # Prepare load options for the WordProcessing family load_options = WordProcessingLoadOptions() # Load the document from a local file path with load options with Editor("./sample-document.docx", load_options) as editor: info = editor.get_document_info() print(f"Loaded: {info.format.name} - {info.page_count} page(s)") if __name__ == "__main__": load_document() ``` -------------------------------- ### Run Full Example Suite (Linux/macOS) Source: https://docs.groupdocs.com/conversion/python-net/how-to-run-examples Executes all Python examples using run_all_examples.py on Linux or macOS. ```bash python3 Examples/run_all_examples.py ``` -------------------------------- ### Clone Sample Repository Source: https://docs.groupdocs.com/llms-full.txt Clone the sample repository to get started with GroupDocs.Comparison for .NET. ```bash git clone https://github.com/groupdocs-comparison/net-excel-comparison-sample.git cd net-excel-comparison-sample/CompareExcelSpreadsheets ``` -------------------------------- ### Clone and Install Dependencies Source: https://docs.groupdocs.com/comparison/nodejs-java/legal-document-comparison Commands to set up the sample repository and install required Node.js packages. ```bash git clone https://github.com/groupdocs-comparison/nodejs-compare-word-documents-sample.git cd nodejs-compare-word-documents-sample ``` ```bash npm install ``` -------------------------------- ### AI Prompt for Individual Page Reference Source: https://docs.groupdocs.com/conversion/python-net/agents-and-llm-integration Guide your AI assistant to read a specific documentation page, such as the quick start guide, to help with a particular task like converting DOCX to PDF. ```text Read https://docs.groupdocs.com/conversion/python-net/getting-started/quick-start-guide.md and help me convert a DOCX to PDF in Python. ``` -------------------------------- ### Run a Single Example Source: https://docs.groupdocs.com/comparison/python-net/getting-started/how-to-run-examples Navigate to a specific example's directory and run it directly. This is useful for testing individual functionalities. ```bash cd Examples/developer-guide/comparing-documents/compare-documents python compare_documents.py ``` -------------------------------- ### Get Project File Information with Java Source: https://docs.groupdocs.com/viewer/java/render-ms-project-files Use this snippet to get the file type, page count, start date, and end date of a Project file. Ensure the necessary GroupDocs.Viewer classes are imported. ```java import com.groupdocs.viewer.Viewer; import com.groupdocs.viewer.options.ViewInfoOptions; import com.groupdocs.viewer.results.ProjectManagementViewInfo; // ... ViewInfoOptions viewInfoOptions = ViewInfoOptions.forHtmlView(); ProjectManagementViewInfo info; try (Viewer viewer = new Viewer("SoftwareDevelopmentPlan.mpp")) { info = (ProjectManagementViewInfo) viewer.getViewInfo(viewInfoOptions); } System.out.println("Document type is: " + info.getFileType()); System.out.println("Pages count: " + info.getPages().size()); System.out.println("Project start date: " + info.getStartDate()); System.out.println("Project end date: " + info.getEndDate()); ``` -------------------------------- ### Build Docker Image for Examples Source: https://docs.groupdocs.com/comparison/python-net/getting-started/how-to-run-examples Build a Docker image containing the .NET runtime, native dependencies, and Python, pre-configured for running the examples. ```bash docker build -t groupdocs-comparison-examples . ``` -------------------------------- ### POST /SearchDocsByGroupDocs Source: https://docs.groupdocs.com/mcp Searches across the GroupDocs Documentation to find relevant information, code examples, API references, and guides. ```APIDOC ## POST /SearchDocsByGroupDocs ### Description Search across the GroupDocs Documentation to find relevant information, code examples, API references, and guides. Use this tool when you need to answer questions about Docs by GroupDocs, find specific documentation, understand how features work, or locate implementation details. ### Method POST ### Endpoint /SearchDocsByGroupDocs ### Parameters #### Request Body - **query** (string) - Required - The search query string to find relevant documentation. ``` -------------------------------- ### Run All Examples Source: https://docs.groupdocs.com/comparison/python-net/getting-started/how-to-run-examples Execute all example scripts in the repository. This script reports pass/fail counts and exits with a non-zero status if any example fails. ```bash python Examples/run_all_examples.py ``` -------------------------------- ### Run All Examples (Windows) Source: https://docs.groupdocs.com/viewer/python-net/getting-started/how-to-run-examples Executes all available examples sequentially on Windows. ```powershell py run_all_examples.py ```