Skip to content

Commit c366b2c

Browse files
Added additional parameters to conversion examples in README.
1 parent a57a5ad commit c366b2c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ Redact sensitive information in a PDF:
280280

281281
```csharp
282282
var result = await convertApi.ConvertAsync("pdf", "redact",
283-
new ConvertApiFileParam(@"C:\files\document.pdf"));
283+
new ConvertApiFileParam(@"C:\files\document.pdf"),
284+
new ConvertApiParam("Preset", "gdpr"));
284285
await result.SaveFilesAsync(@"C:\output\");
285286
```
286287

@@ -301,7 +302,8 @@ Convert a PDF to PDF/A format for archiving:
301302

302303
```csharp
303304
var result = await convertApi.ConvertAsync("pdf", "pdfa",
304-
new ConvertApiFileParam(@"C:\files\document.pdf"));
305+
new ConvertApiFileParam(@"C:\files\document.pdf"),
306+
new ConvertApiParam("PdfaVersion", "pdfa2"));
305307
await result.SaveFilesAsync(@"C:\output\");
306308
```
307309

@@ -346,7 +348,8 @@ Extract images from a PDF:
346348

347349
```csharp
348350
var result = await convertApi.ConvertAsync("pdf", "extract-images",
349-
new ConvertApiFileParam(@"C:\files\document.pdf"));
351+
new ConvertApiFileParam(@"C:\files\document.pdf"),
352+
new ConvertApiParam("ImageOutputFormat", "png"));
350353
await result.SaveFilesAsync(@"C:\output\");
351354
```
352355

0 commit comments

Comments
 (0)