This repository contains 69+ complete, runnable examples demonstrating various features of GroupDocs.Conversion.LowCode for F# (.NET 6.0+). These examples provide practical implementations for document conversion scenarios.
- Package: GroupDocs.Conversion.LowCode
- Language: F# (.NET 6.0+)
- Docs: https://docs.groupdocs.net/conversion/
The examples are organized to mirror the official documentation structure:
groupdocs-conversion-lowcode-examples-fsharp/
βββ π Examples/
β βββ π developer-guide/
β β βββ π CopyTheCodeExample/
β β βββ π loading-source-documents/
β β β βββ π LoadFromFilePath/
β β β βββ π LoadFromStream/
β β β βββ π SetLoadOptions/
β β βββ π saving-converted-documents/
β β β βββ π SaveToFilePath/
β β β βββ π SaveToStream/
β β β βββ π SetConvertOptions/
β β βββ π using-doc-to-pdf-converter/
β β β βββ π BasicExample/
β β β βββ π DocToPasswordProtectedPdf/
β β β βββ π DocToPdfaFormat/
β β β βββ π DocWithCommentsToPdfWithoutComments/
β β β βββ π DocWithTrackedChangesToPdf/
β β β βββ π ProtectedDocToPdf/
β β β βββ π SpecificDocPagesToPdf/
β β βββ π using-docx-to-pdf-converter/
β β β βββ π BasicExample/
β β β βββ π DocxToPasswordProtectedPdf/
β β β βββ π DocxWithCommentsToPdfWithoutComments/
β β β βββ π DocxWithTrackedChangesToPdf/
β β β βββ π ProtectedDocxToPdf/
β β β βββ π SpecificDocxPagesToPdf/
β β βββ π using-html-to-pdf-converter/
β β β βββ π BasicExample/
β β β βββ π HtmlToPasswordProtectedPdf/
β β β βββ π HtmlToPdfWithSpecificPdfFormat/
β β β βββ π HtmlWithCustomCssStyling/
β β β βββ π HtmlWithZoomLevel/
β β β βββ π SkipExternalResourcesReferencedInHtml/
β β βββ π using-pdf-to-docx-converter/
β β β βββ π BasicExample/
β β β βββ π FlattenFieldsInFormFillablePdf/
β β β βββ π PdfToDocxWithA4PageSize/
β β β βββ π PdfToPasswordProtectedDocx/
β β β βββ π PdfWithAnnotationsToDocxWithoutAnnotations/
β β β βββ π ProtectedPdfToDocx/
β β βββ π using-pdf-to-md-converter/
β β β βββ π BasicExample/
β β β βββ π FlattenFieldsInFormFillablePdf/
β β β βββ π PdfWithAnnotationsToMarkdownWithoutAnnotations/
β β β βββ π ProtectedPdfToMarkdown/
β β β βββ π SkipImagesWhenConvertingPdfToMarkdown/
β β βββ π using-pdf-to-pdfa-converter/
β β β βββ π BasicExample/
β β β βββ π FlattenFieldsInFormFillablePdf/
β β β βββ π PdfToPasswordProtectedPdfa/
β β β βββ π PdfWithAnnotationsToPdfaWithoutAnnotations/
β β β βββ π ProtectedPdfToPdfa/
β β β βββ π SpecificPdfPagesToPdfa/
β β βββ π using-ppt-to-pdf-converter/
β β β βββ π BasicExample/
β β β βββ π PptToPasswordProtectedPdf/
β β β βββ π PptWithHiddenSlides/
β β β βββ π PptWithPreservedDocumentStructureForAccessiblePdf/
β β β βββ π ProtectedPptToPdf/
β β β βββ π SpecificPptSlidesToPdf/
β β βββ π using-pptx-to-pdf-converter/
β β β βββ π BasicExample/
β β β βββ π PptxToPasswordProtectedPdf/
β β β βββ π PptxWithHiddenSlides/
β β β βββ π PreserveDocumentStructureForAccessiblePdf/
β β β βββ π ProtectedPptxToPdf/
β β β βββ π SpecificPptxSlidesToPdf/
β β βββ π using-xls-to-pdf-converter/
β β β βββ π BasicExample/
β β β βββ π ProtectedXlsToPdf/
β β β βββ π SpecificSheetsFromXlsToPdf/
β β β βββ π XlsToPasswordProtectedPdf/
β β β βββ π XlsToPdfWithSpecificPdfFormat/
β β β βββ π XlsWithHiddenSheets/
β β βββ π using-xlsx-to-pdf-converter/
β β βββ π BasicExample/
β β βββ π ProtectedXlsxToPdf/
β β βββ π SpecificSheetsFromXlsxToPdf/
β β βββ π XlsxToPasswordProtectedPdf/
β β βββ π XlsxToPdfWithSpecificPdfFormat/
β β βββ π XlsxWithHiddenSheetsToPdf/
β βββ π licensing/
β βββ π SetLicenseFromFile/
β βββ π SetLicenseKeys/
βββ π GroupDocs.Conversion.LowCode.Examples.sln
βββ π LICENSE
βββ π README.md
βββ π run_all_examples.bat
βββ π run_all_examples.ps1
βββ π run_all_examples.sh
- Set License Keys: Programmatic license setup using keys
- Set License From File: License setup using license file
- Load From FilePath: Load documents using file paths
- Load From Stream: Load documents using file streams
- Set Load Options: Configure document loading options
- Save To FilePath: Save converted documents to file paths
- Save To Stream: Save converted documents to streams
- Set Convert Options: Configure conversion options
- DOC to PDF: Convert legacy Word documents to PDF
- DOCX to PDF: Convert modern Word documents to PDF
- HTML to PDF: Convert HTML files to PDF
- PDF to DOCX: Convert PDF to Word documents
- PDF to Markdown: Convert PDF to Markdown format
- PDF to PDF/A: Convert PDF to archival format
- PPT to PDF: Convert PowerPoint presentations to PDF
- PPTX to PDF: Convert modern PowerPoint presentations to PDF
- XLS to PDF: Convert legacy Excel spreadsheets to PDF
- XLSX to PDF: Convert modern Excel spreadsheets to PDF
- .NET 6.0 or later installed on your system
- Valid GroupDocs license (trial or commercial)
- Sample files (automatically included with examples)
# Windows
set GD_PUBLIC_KEY=your-public-key
set GD_PRIVATE_KEY=your-private-key
# Linux/macOS
export GD_PUBLIC_KEY=your-public-key
export GD_PRIVATE_KEY=your-private-keyEdit the Program.fs file and replace placeholder values:
let publicKey = "your-public-key"
let privateKey = "your-private-key"Note: Learn more about licensing at https://docs.groupdocs.net/conversion/licensing/.
-
Navigate to any example directory:
cd Examples/developer-guide/using-docx-to-pdf-converter/BasicExample -
Restore dependencies (first time only):
dotnet restore
-
Run the example:
dotnet run
-
Check the output:
- Look for generated files in the example directory (or an
outputsubfolder, if present) - Check console output for any errors or success messages
- Look for generated files in the example directory (or an
Use the provided scripts to run all examples sequentially:
run_all_examples.bat./run_all_examples.ps1./run_all_examples.sh- Examples are generated automatically from documentation
- Some examples may require specific sample files to be present
- Make sure to handle any exceptions that may occur during conversion
- Check the individual README files in each example directory for specific details
For issues with the examples or GroupDocs.Conversion.LowCode, please refer to: