|
18 | 18 | - Run commands from this folder: |
19 | 19 | - `dotnet build` |
20 | 20 | - `dotnet run -- markdown-json /path/to/input.pdf` |
| 21 | + - `dotnet run -- rasterized-pdf /path/to/input.pdf` |
| 22 | + - `dotnet run -- pdf-multipart /path/to/input.html text/html` |
| 23 | + - `dotnet run -- merge-different-file-types image.png slides.ppt` |
| 24 | + - `dotnet run -- extracted-text /path/to/input.pdf` |
| 25 | + - `dotnet run -- extracted-images /path/to/input.pdf` |
| 26 | + - `dotnet run -- pdf-info /path/to/input.pdf` |
| 27 | + - `dotnet run -- merged-pdf file1.pdf file2.pdf` |
| 28 | + - `dotnet run -- split-pdf /path/to/input.pdf` |
| 29 | + - `dotnet run -- upload /path/to/input.pdf` |
| 30 | + - `dotnet run -- get-resource <id> [out]` |
| 31 | + - `dotnet run -- delete-resource <id>` |
| 32 | + - `dotnet run -- batch-delete <id1> [id2] [...]` |
21 | 33 | - `.env` loading: uses `DotNetEnv` (`Env.Load()`), matching VB.NET. |
22 | 34 |
|
23 | 35 | Note: The project currently compiles only `Program.cs` and `Endpoint Examples/JSON Payload/markdown.cs` to avoid top‑level statement conflicts. To enable more samples, add them explicitly to `DotNetSamples.csproj` under a `<Compile Include="..." />` item or refactor them into classes with `Execute(string[] args)`. |
@@ -47,9 +59,10 @@ Why no solution file? |
47 | 59 | - Base URL: `Environment.GetEnvironmentVariable("PDFREST_URL") ?? "https://api.pdfrest.com"` |
48 | 60 | - Input path: take from `args[0]` and use for `Content-Filename`. |
49 | 61 | - Opt the file into the project by adding `<Compile Include="…" />` to `DotNetSamples.csproj`. |
| 62 | +- Always insert the Sample Header Template at the very beginning of the file (before any `using` lines). |
50 | 63 |
|
51 | 64 | ## Sample Header Template |
52 | | -Use this comment block at the top of each sample file you adapt for dispatching (keep lines concise and include the GDPR info line): |
| 65 | +Use this comment block at the TOP of each sample file you adapt for dispatching — place it before any `using` directives or namespace (keep lines concise and include the GDPR info line): |
53 | 66 |
|
54 | 67 | ``` |
55 | 68 | /* |
|
0 commit comments