Skip to content

PDFCLOUD-5217 Runnable C# samples, part 1#113

Merged
datalogics-tsmith merged 14 commits into
pdfrest:mainfrom
datalogics-kam:pdfcloud-5217-runnable-csharp-samples-part-1
Sep 8, 2025
Merged

PDFCLOUD-5217 Runnable C# samples, part 1#113
datalogics-tsmith merged 14 commits into
pdfrest:mainfrom
datalogics-kam:pdfcloud-5217-runnable-csharp-samples-part-1

Conversation

@datalogics-kam

Copy link
Copy Markdown
Contributor

This is prologue to #110.

- Refined instructions for setting up and running samples with a .NET 8 dispatcher.
- Added `.env.example` usage and environment configuration tips for API keys and GDPR compliance.
- Updated coding conventions, testing guidelines, and sample adaptation steps.
- Enhanced headers to standardize example descriptions and setup details.
- Added `DotNetSamples.csproj` with a minimal dispatcher (`Program.cs`) for routing commands.
- Implemented `markdown-json` example: two-step upload and JSON-based Markdown conversion.
- Introduced `.env.example` for API key configuration and optional EU/GDPR endpoint setup.
- Updated `AGENTS.md` with setup, usage instructions, rationale for project structure, and coding conventions.
- Organized examples into `namespace Samples.EndpointExamples.JsonPayload` for logical grouping.
- Replaced hardcoded API keys and URLs with environment variables for enhanced security and configurability.
- Introduced input validation and error handling for required parameters and files.
- Standardized execution methods in all examples, aligning with updated coding conventions.
- Documented purpose, setup, usage, and output for each sample.
- Aligned all examples with established header format for consistency.
- Included GDPR compliance API call details and environment variable instructions.
… handling

- Added headers to new examples, documenting purpose, setup, usage, and output.
- Replaced hardcoded file paths, API keys, and URLs with environment variables.
- Enhanced input validation, error handling, and exception messages across samples.
- Updated `merge-different-file-types` and `pdf-multipart` examples for clarity and alignment with guidelines.
…proved error handling

- Introduced multipart handling for multiple formats: PNG, JPG, GIF, BMP, TIF, and Office files.
- Enhanced headers to include purpose, setup, usage, and GDPR API details.
- Standardized input validation, environment variable usage, and API key handling.
- Updated `Program.cs` to route new multipart commands.
- Expanded `Program.cs` to route new multipart payload commands.
- Implemented examples for multipart operations: encryption, decryption, text addition, image embedding, and more.
- Enhanced error handling, input validation, and logging for multipart samples.
- Updated `DotNetSamples.csproj` to include newly added multipart-specific implementations.
- Added detailed usage instructions, setup steps, and expected output headers to all multipart payload examples.
- Enhanced consistency by aligning with standardized header format.
- Included additional environment variable handling and GDPR API call details.
- Added detailed headers documenting the purpose, setup, usage, and output for complex flow examples.
- Refactored to use environment variables for API keys, URLs, and input paths.
- Enhanced input validation, error handling, and logging across all examples.
- Simplified repetitive code by introducing clearer patterns for request creation and execution.
- Implemented `exported-form-data.cs` under JSON payload examples for two-step upload and form data export.
- Enhanced headers with purpose, setup, usage, and output details for consistency.
- Added routing to `Program.cs` and updated dispatcher for new command.
- Enabled compilation in `DotNetSamples.csproj` by including new example.
- Improved input validation, error handling, and environment variable usage for secure API integration.
- Added multiple new command usage examples to AGENTS.md for improved clarity and reference.
- Refined explanations for sample adaptation steps, emphasizing header placement and formatting.
- Enhanced consistency and alignment with established documentation standards.
…, and examples

- Introduced a detailed README for .NET 8 C# pdfRest API samples covering setup, build, and usage instructions.
- Documented various sample categories: JSON payload, multipart payload, and complex workflows.
- Included regional API setup, environment variable usage, and handy runner scripts for enhanced usability.
- Provided example commands, output descriptions, and verification steps for end-users.
- Ensured alignment with standardized documentation practices for clarity and consistency.
@datalogics-tsmith datalogics-tsmith merged commit 0b49463 into pdfrest:main Sep 8, 2025
2 checks passed
@datalogics-kam datalogics-kam deleted the pdfcloud-5217-runnable-csharp-samples-part-1 branch September 15, 2025 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants